Followers

Friday, January 3, 2014

Setting the StdoutSeverity(info,error,debug) for weblogic server

from java.util import *
from javax.management import *
import javax.management.Attribute

print 'Starting the script .... '

connect('weblogic','weblogic1','t3://localhost:7001')

print 'Changing to edit mode...'
edit()

print 'Changing to the Servers/ms1/Log/ms1 MBean directory...'
cd('Servers')
cd('ms1')
cd('Log')
cd('ms1')
startEdit()

print 'Setting the StdoutSeverity attribute to Info'
set('StdoutSeverity','Info')
save()
activate()
disconnect()

print 'End of script, exiting WLST...'
exit()

No comments:

Post a Comment