Skip to content

Instantly share code, notes, and snippets.

@AKSarav
Created March 28, 2018 16:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save AKSarav/dfb014b920c2d151e559faa9325c4fe9 to your computer and use it in GitHub Desktop.
Save AKSarav/dfb014b920c2d151e559faa9325c4fe9 to your computer and use it in GitHub Desktop.
WLST-AppStatus.py
connect('weblogic','weblogic1','t3://web.mwinventory.in:33011')
myapps=cmo.getAppDeployments()
print "--"*40
print " \t\t\tAPPLICATION STATUS WEBLOGIC\t\t"
print "--"*40
print " %-50s%20s" %("APPLICATION NAME","STATUS")
print "--"*40
for app in myapps:
bean=getMBean('/AppDeployments/'+app.getName()+'/Targets/')
targetsbean=bean.getTargets()
for target in targetsbean:
domainRuntime()
cd('AppRuntimeStateRuntime/AppRuntimeStateRuntime')
appstatus=cmo.getCurrentState(app.getName(),target.getName())
print " %-50s%20s" %(app.getName(),appstatus)
serverConfig()
print "--"*40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment