Monitoring Scripts using wlst.sh
I found this script on the internet and it works great:
connect('weblogic','weblogic','t3://localhost:7002')
servers=cmo.getServers()
print "-------------------------------------------------------"
print "\t"+cmo.getName()+" domain status"
print "-------------------------------------------------------"
for server in servers:
state(server.getName(),server.getType())
print "-------------------------------------------------------"
It returns the current state of the managed servers. How can I tweak it to return the health state of the managed servers?
Thank you!
Nancy