Written by Unni on Fri 17 Apr 06:30(IST)
download
- 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()
Time to sleep... Gud Nite :)
Unni

download the code : http://pastebin.com/pastebin.php?dl=m6b1f16f8
ReplyDeleteIn python Indentations matter. If proper spacing is not there the loop may misbehave
It is working Unni. Thanks alot.
ReplyDeleteKrishna.
Using adminHome is a good idea??
ReplyDeleteIt might be depricated rt??
I wan to know more details about the logging levels for WebLogic Server. Better you give in clear content with full description would be much scope to reuse your scripr in many domains.
Hey Pavan,
ReplyDeleteWill keep ur suggestions in mind.
Right the ->adminHome<- is depreciated but it works fine with with most of the versions as of now.
Anyway you said you want to know more about logging ; I would be glad to help if I know the answers.
Happy scripting :)
Unni
Hi Unni
ReplyDeleteI just want to konw what is the difference between weblogic portal domain and Weblogic server domain.
Is they any WLST script to create weblogic portal domain and configure all the resource like cluster,machines,oracle JDBC resource,Run Database scripts and configure JMS stores etc
thanks
Santhosh
Hi Santu,
ReplyDeletehttp://forums.oracle.com/forums/thread.jspa?messageID=3431235�
hopefully this should help u..
Cheers :)
Unni
Hi Santu,
ReplyDeleteThe main difference between a Weblogic domain and Portal domain is provides a 'portal application development framework' , In addition to a powerful portal framework and its J2EE security foundation, WebLogic Portal provides many business services, such as content management, communities, personalization, search, and user management.
WebLogic Portal provides a virtual content repository that lets you federate external content management systems into a single management interface. You can then build portals using content in those external resource. WebLogic Portal also provides a WLP content repository for creating and managing content.
Portal is completely a new ball game for me ;)
sayonara:)
Unni
hey unni Marcos needs expanantion on
ReplyDeleteserverConfig() and serverRuntime()
need some help !. .