Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>In order to accurately determine whether the application is partially started/stopped, you must first determine the deployment targets against which the application is deployed, and then determine whether or not the application is running on that server:</p> <pre><code>def isApplicationRunning(applicationName, serverName, nodeName) : return AdminControl.completeObjectName("type=Application,name=%s,process=%s,node=%s,*" % (applicationName, serverName, nodeName)) != "" def printApplicationStatus(applicationName) : servers = started = 0 targets = AdminApplication.getAppDeploymentTarget(applicationName) for target in targets : type = AdminConfig.getObjectType(target) if (type == "ClusteredTarget") : clusterName = AdminConfig.showAttribute(target, "name") members = AdminUtilities.convertToList(AdminConfig.getid("/ServerCluster:%s/ClusterMember:/" % clusterName)) for member in members : serverName = AdminConfig.showAttribute(target, "name") nodeName = AdminConfig.showAttribute(member, "nodeName") started += isApplicationRunning(applicationName, serverName, nodeName) servers += 1 elif (type == "ServerTarget") : serverName = AdminConfig.showAttribute(target, "name") nodeName = AdminConfig.showAttribute(target, "nodeName") started += isApplicationRunning(applicationName, serverName, nodeName) servers += 1 if (started == 0) : print "The application [%s] is NOT RUNNING." % applicationName elif (started != servers) : print "The application [%s] is PARTIALLY RUNNING." % applicationName else : print "The application [%s] is RUNNING." % applicationName if (__name__ == "__main__"): printApplicationStatus(sys.argv[0]); </code></pre> <p>Note that the <a href="http://publib.boulder.ibm.com/infocenter/wasinfo/v7r0/topic/com.ibm.websphere.nd.doc/info/ae/ae/rxml_7libapp1.html#rxml_7libapp1__scr3" rel="nofollow"><code>AdminApplication</code> script library</a> only exists for WAS 7+, so if you are running an older version, you will need to obtain the deployment targets yourself.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload