Operating Systems: i5/OS
             Personalize the table of contents and search results

 

Querying cluster state using scripting

 

You can query cluster states using the wsadmin tool and scripting. Before starting this task, the wsadmin tool must be running. See the Starting the wsadmin scripting client article for more information.

 

Overview

Perform the following steps to query cluster state:

 

Procedure

  1. Identify the Cluster MBean and assign it to the cluster variable.

    This command returns the Cluster MBean.Example output:

    WebSphere:cell=mycell,name=cluster1,mbeanIdentifier=Cluster,type=Cluster,process=cluster1

  2. Query the cluster state.

    This command returns the value of the run-time state attribute.




}
Using the AdminControl object for scripted administration

 

Related Reference


Commands for the AdminControl object

  Â