I'm having issues getting the status of an Application on a specific Application Server inside of IBM's WebSphere product. I can get into the wsadmin
scripting console, and issue:
print AdminApp.list("WebSphere:cell=MYCELL,node=NODE01,server=WPS00")
and get a list of applications installed on the AppServer itself, however, when I issue the command:
print AdminApp.isAppReady("Application01")
its obviously looking through the whole cell. Then I attempted to use:
print AdminControl.completeObjectName("WebSphere:type=Application,name=Application01,*")
it won't return anything because its in partial start. So I tested this against an application that was already fully running, and it showed all of my mBeans that it corresponded to. Specifying a server in the completeObjectName
option doesn't work even with the fully running application.
How do I reliably get the status of an application on a specific application server so I can restart just what needs to be restarted and not the application across the whole AppTarget?