wlst script to check application status
Could someone please advise how to correct below script to make it work on weblogic 12.2.1.4 ?
I have tried few items but could not fix it. I have tried some changes like
after connect added
cd('AppDeployments')
than in the loop for app in myapps:
added domainConfig()
replace bean=getMBean('/AppDeployments/'+app.getName()+'/Targets/') with
cd ('/AppDeployments/'+app.getName()+'/Targets')
bean = ls(returnMap='true')
but still got errors with last loop and not sure how to fix it.
Thanks
Andrew
username = '<USERNAME>'
password = '<PASSWORD>'
url='t3://<HOSTNAME>:<PORT>'
connect(<USERNAME>,<PASSWORD>,<URL>)