Get Cluster Status


In IBM WebSphere Application Server Network Deployment Version 8.5.5, Liberty profile has introduced the Liberty collective feature. Refer to information about collectives in the WebSphere Application Server Version 8.5.5 information center for more specifics. The sample demonstrates how to call the ClusterManager MBean from a Jython script to get the status of a cluster.
  • The ClusterManager MBean operation used:
    • getStatus script

The getClusterStatus sample script demonstrates how to obtain the status of a given cluster. A connection is made to the collective controller located at the given host and port, and the request to get the cluster status is passed to the ClusterManager MBean.

This sample can be installed onto runtime version ${bvt.prop.appliesto.minimum.version}.


Required parameters

First parameter The cluster name.
--truststore The path to the truststore to be used when establishing a connection to the collective controller.
--truststorePassword The password for the truststore specified by the --truststore parameter.
--host The host name where the collective controller is running.
--port The https port where the collective controller is listening.
--user The user name to use when connecting to the collective controller.
--password The password to use when connecting to the collective controller.

Optional parameters

--help Displays help text.
--debug Displays additional details when an error occurs.

Sample use and resulting messages

>> jython defaultCluster --host=localhost --port=9443 --user=admin --password=password --truststore=c:\wlp\usr\servers\controller1\resources\security\trust.jks --truststorePassword=tsPassword
Connecting to the server...
Successfully connected to the server "localhost:9443"
Status for cluster defaultCluster: STARTED


The following additional sample scripts provide shared code which is used by this sample:

Sample Structure

  • Copyright.txt
  • lib
  • readme.html