Wednesday, June 11, 2014

WLST Script for Enable OR Disable Debug Flags


EnableORDisableDFlags.py

adminURL='t3://localhost:8000'
adminUserName='weblogic'
adminPassword='welcome1'
connect(adminUserName, adminPassword, adminURL)

edit()
startEdit()
serverNames=cmo.getServers()
for name in serverNames:
 cd('/Servers/'+name.getName()+'/ServerDebug/'+name.getName())
 set('DebugSSL','true')
 print 'Modified the DFlag for '+name.getName()
save()
activate()
disconnect()

Execute the script.
cd %WLS_HOME%\common\bin
wlst.sh EnableORDisableDFlags.py

No comments:

Post a Comment