Skip to content

Instantly share code, notes, and snippets.

@AKSarav
Created December 20, 2017 17:53
Show Gist options
  • Save AKSarav/2e0c9b507b32fe99e1d78dcf29f1c4d5 to your computer and use it in GitHub Desktop.
Save AKSarav/2e0c9b507b32fe99e1d78dcf29f1c4d5 to your computer and use it in GitHub Desktop.
get_wls_serverstate.py
#connect([username],[password],[admin url])
connect('weblogic','weblogic1','t3://mwi-vm01:17001')
servers=cmo.getServers()
print "-------------------------------------------------------"
print "\t"+cmo.getName()+" domain status"
print "-------------------------------------------------------"
for server in servers:
state(server.getName(),server.getType())
print "-------------------------------------------------------"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment