Created
March 28, 2018 16:04
-
-
Save AKSarav/dfb014b920c2d151e559faa9325c4fe9 to your computer and use it in GitHub Desktop.
WLST-AppStatus.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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