Monitoring Weblogic Servers
We are on 12.2.5 and I wrote a script to monitor our WLS servers based on this note:
How to Monitor Heap Size Usage of Weblogic Servers Using WLST (Doc ID 2699454.1)
The script is simple and worked great until I applied a patch and did a cutover. Now the port is wrong. How do I dynamically set the port based on the current run envionment?
Here is my script:
connect('weblogic','password','t3://server:7002')
servers=cmo.getServers()
print "-------------------------------------------------------"
print "\t"+cmo.getName()+" domain status"
print "-------------------------------------------------------"
for server in servers:
state(server.getName(),server.getType())
print "-------------------------------------------------------"