ConfigToScript The WLST command ConfigToScript converts an existing server configuration (config directory) to an executable WLST python script.The syntax for
Continue readingCategory: WLST
this category contains posts related to WLST
WLST Script to Monitor Throughput and HeapSize of Weblogic Server
In this simple example ill demonstrate how to browse to ThreadPoolRuntime and JVMRuntime Mbeans of Weblogic Server and monitor their
Continue readingSending E-Mail Alert on Weblogic Server Shutdown using WLST
I had to develop a simple script to send e-mail alert when the Managed Server goes down. From whatever time
Continue readingShell Script to send alert on HighCPU Usage on Solaris
Find below a sample script which you can use to send a mail when the there is a High CPU.I
Continue readingWLST Script to add users, groups and modify roles
connect(‘weblogic’,’weblogic’,’t3://localhost:7001′)edit()startEdit(-1,-1,’false’)serverConfig()cd(‘/SecurityConfiguration/First_Domain/Realms/myrealm/AuthenticationProviders/DefaultAuthenticator’)cmo.createUser(‘faisal’,’weblogic’,”)cmo.groupExists(‘TestGrp’)cmo.createGroup(‘TestGrp’,”)cmo.addMemberToGroup(‘testgrp’,’faisal’)cd(‘/SecurityConfiguration/First_Domain/Realms/myrealm/RoleMappers/XACMLRoleMapper’)cmo.setRoleExpression(”,’Admin’,’Grp(TestGrp)|Grp(Administrators)’)edit()undo(defaultAnswer=’y’, unactivatedChanges=’true’)stopEdit(‘y’)
Continue readingImport and Export users from Embedded LDAP using WLST
Export connect(‘weblogic’,’weblogic’, ‘t3://localhost:8003′) domainRuntime() cd(‘/DomainServices/DomainRuntimeService/DomainConfiguration/DomainA/SecurityConfiguration/DomainA/DefaultRealm/myrealm/AuthenticationProviders/DefaultAuthenticator’) cmo.exportData(‘DefaultAtn’,’c:/export.ldif’, Properties()) Import connect(‘weblogic’,’weblogic’, ‘t3://localhost:8003′) domainRuntime() cd(‘/DomainServices/DomainRuntimeService/DomainConfiguration/DomainB/SecurityConfiguration/DomainB/DefaultRealm/myrealm/AuthenticationProviders/DefaultAuthenticator’) cmo.importData(‘DefaultAtn’,’c:/export.ldif’, Properties())
Continue reading