After searching on the internet for the existing scripts for the WPS cluster status, I found Steve Robinson's site with Jython script. He suggested the user to enter the cluster name as a command line argument.I also found a jython script from IBM DeveloperWorks forums, where the script contains cell name hard-coded. To execute the script we need to know the cell name of their WPS environment. My idea here is to make a generic script, that is, without giving these two inputs after connecting to the DeploymentManager cannot we fetch the status of the cluster? Strugled for two hours to articulate the facts about the JMX runtime beans, that will gives us the status. This is initial step to monitor a WebSphere Process Server.
This automation Jython script will help WPS Developer/Administrators who wish to check the cluster status without connecting to WebSphere console.
Script File : clustrStat.py
Please replace user, password as per your environment,
Script File: clustrStat.sh
wsadmin.sh -lang jython -f clustrStat.py -user <user> -password <password>
Output resulted as follows:
Labels: WebSphere Cluster Status, Jython Script for Monitoring Cluster, IBM WebSphere Process Server, WebSphere Application Server