Engineering Lifecycle Management Wiki - Deployment
Deployment Web
Planning and design
Installing and upgrading
Migrating and evolving
Integrating
Administering
Monitoring
Troubleshooting
Community information and contribution guidelines
Create new topic
Topic list
Search
Advanced search
Notify
RSS
Atom
Changes
Statistics
Web preferences
Edit
Attach
P
rintable
TWiki
>
Deployment Web
>
ApproachesToImplemetingHAAndDR
>
ImplementingApplicationRecoveryExampleScript
Revision 1 - 2014-03-12 - 20:24:32 - Main.msdelarg
<div id="header-title" style="padding: 10px 15px; border-width:1px; border-style:solid; border-color:#FFD28C; background-image: url(<nop>https://jazz.net/wiki/pub/Deployment/WebPreferences/TLASE.jpg); background-size: cover; font-size:120%"> ---+!! <img src="https://jazz.net/wiki/pub/Deployment/WebPreferences/todo.png" alt="todo.png" width="50" height="50" align="right"> Implementing Application Recovery Example Script for a CLM Deployment on WebSphere. %DKGRAY% Authors: MikeDelargy, JeffBabylon <br> Build basis: Build basis: Jazz applications in CLM+ and SSE+ %ENDCOLOR%</div></sticky> <!-- Page contents top of page on right hand side in box --> <sticky><div style="float:right; border-width:1px; border-style:solid; border-color:#DFDFDF; background-color:#F6F6F6; margin:0 0 15px 15px; padding: 0 15px 0 15px;"> %TOC{title="Page contents"}% </div></sticky> <sticky><div style="margin:15px;"></sticky> 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=swg21440555 ---+++ Using 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: [[DeploymentWebHome][Deployment web home]], [[DeploymentWebHome][Deployment web home]] ---+++++!! External links: * [[https://www.ibm.com][IBM]] ---+++++!! Additional contributors: Main.TWikiUser, Main.TWikiUser <sticky></div></sticky>
Edit
|
Attach
|
P
rintable
|
V
iew topic
|
Backlinks:
We
b
,
A
l
l Webs
|
H
istory
:
r8
|
r4
<
r3
<
r2
<
r1
|
More topic actions...
Copyright © by IBM and non-IBM contributing authors. All material on this collaboration platform is the property of the contributing authors.
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
.