Posts tagged admin
Monitoring availability Admin and managed servers in WebLogic 11g
0Run it with $WL_HOME/ common/bin/wlst.sh -loadProperties <property_file> <script_name>
  ($WL_HOME is the location of your WebLogic server directory, like /opt/oracle/Middleware/wlserver_10.3)script:Property file(properties.py): admin_server=<name adminserver> admin_server_port= wluser=weblogic wlpassword=<password> clustername=[name] domain=<domain_name> Â
import os
#Definition to print a running servers state def printState(AdminServer): connect(wluser, wlpassword, ‘t3://’+ admin_server + ‘:’ + admin_server_port) serverConfig() state(“AdminServer”) state(“[name of managed server1]“) state(“[name_of managed_server2]“)
#Definition to disconnect from a server def disconnectFromServer(): disconnect() exit()
#Calling connectToServer definition with no arguments #connectToServer()
#Calling printstateDetails with arguments printState(‘AdminServer’)
#Calling disconnectFromServer definition with no arguments #disconnectFromServer()
Recent Comments