WLST script to change logging setting for all server in the domain
WLST script to change logging setting for all server in the domain


A continuation of previous post … with a logic which would make changes to all the servers in the domain

connect('weblogic','weblogic','t3://localhost:7001')
edit()
startEdit()
svrs = adminHome.getMBeansByType('Server')
for s in svrs:
   name = s.getName()
   cd('/Servers/' + name + '/Log/' + name)
   cmo.setNumberOfFilesLimited(true)
   cmo.setFileCount(100)
   cmo.setDomainLogBroadcastSeverity('Warning')
   cmo.setMemoryBufferSeverity('Warning')
   cmo.setLogFileSeverity('Warning')
   cmo.setStdoutSeverity('Warning')
activate()
disconnect()

Cheers:)

Unni

comments here

April 17, 2009
50 words


Categories
Tags
example hugo blog

Connect. Socialize.

Sponsors