Implementing Application Recovery Example Script for a CLM Deployment on WebSphere.
Authors: MikeDelargy, JeffBabylon Build basis: Build basis: Jazz applications in CLM+ and SSE+
Whether your CLM is deployed on PowerHA, VMWareHA, a dedicated standalone machine, or a VM server, listed below is an example of a script that can be used in a "cron Job" or "scheduled task" that detects whether the CLM application(s) is/are available or not.
In the example given below, the script checks whether each of the applications (JTS, RQM, RTC / ccm, and RRC) are returning a good http response. (A 200 response) If any of the applications return anything other than a 200 response, the script then restarts the WebSphere Application Server.
The attached script is platform independent
Our example assumes all four applications are running and are deployed in the same JVM. You can customize the script so it meets your deployment topology.
Files needed for this example
There are two files needed for our example to work successfully. (You can find them at the bottom of this page.) 1.) checkCLM.pl 2.) checkCLM.properties checkCLM.pl is a PERL script that first reads the checkCLM.properties file to obtain information about your deployment. It then invokes curl to check the http response. If the response is anything other than 200, it invokes a server shutdown and then a server startup. checkCLM.properties Is a file that is called by the checkCLM.pl script. The file contains:- The public URI
- The application context roots in your deployment
- The path to the WebSphere profile on your system
- The WAS service name. (typically server1)
Tools necessary for the script to work.
In order for the script to work, it is assumed that you have both PERL and curl installed and the directory containing these are in your PATH. So as to avoid having to pass WAS credentials to the shutdown command, it is necessary to store these credentials as outlined in the technote: http://www-01.ibm.com/support/docview.wss?uid=swg21440555Using the script
You can create a cron job or scheduled task that starts the checkCLM.pl script every five minutes (or whatever meets your needs) The checkCLM.pl and the checkCLM.properties files must be located in the same directory. The checkCLM.pl script will create / append a log file in the same directory called checkCLM.log.Heading 1
Related topics: Deployment web home, Deployment web home
External links:
Additional contributors: TWikiUser, TWikiUser
Contributions are governed by our Terms of Use. Please read the following disclaimer.
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.