Monitoring availability Admin and managed servers in WebLogic 11g

Michel Schildmeijer
0 0
Read Time:45 Second
Here an simple example how to monitor if your AdminServer and managed servers are up and running with WLST

Run 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)

Property file(properties.py):
admin_server=<name adminserver>
admin_server_port=
wluser=weblogic
wlpassword=<password>
clustername=[name]
domain=<domain_name>
 

script:

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()

About Post Author

Michel Schildmeijer

Started in pharmacy, I made the change to IT in 1996. I am an Oracle Fusion Middleware Architect at AMIS, with focus on technical infrastructure, Serverside solutions, installing, administering, configuring the Oracle Fusion Middleware stack. My experience is from integrations at telco´s using Oracle AIA, Oracle Portal, OID, Forms&Reports, Discoverer upto the latest Oracle WebLogic 11g releases with practically all Oracle products running on top of it
Happy
Happy
0 %
Sad
Sad
0 %
Excited
Excited
0 %
Sleepy
Sleepy
0 %
Angry
Angry
0 %
Surprise
Surprise
0 %
Next Post

Got lost in several locations of Oracle installations?

Ever wondered what to find in which directoy, in for example an Oracle SOA Suite 11g installation? (patchset 2) Well, here´s the general rule: – The toplevel layer –> Called the Middleware home; toplevel of all components, usually something like /app/oracle/weblogic/Middleware (or make your own choice) – The WebLogic Server layer–> Location […]
%d bloggers like this: