Date Created: Thu 07-Feb-2008

Related Document Categories:

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


How to ripple start a WebSphere cluster using JACL

ripplestart_clusters.jacl

#---------------------------------------------------------------------------------
# This script recycle the cluster by ripple starting it.
# If cluster is already stopped then this script starts it.
# If cluster is in the process of starting then no action is taken by this script.
# Pass one or more cluster names as command line argument to this script.
# Usage: wsadmin.sh -f cc_ripplestart_clusters.jacl clusterName1 clusterName2 ..........
#---------------------------------------------------------------------------------

if {$argc > 0} {
set i 0
while {$i < $argc} {
#set clusterName [$props getProperty sib.cluster.name]
set clusterName [lindex $argv $i]
set clusterId [$AdminControl completeObjectName type=Cluster,name=$clusterName,*]
puts "ClusterName is: $clusterName"
if {[llength $clusterId] == 1} {
puts "Cluster '$clusterName' exists."
puts "Checking cluster status"
set clusterStatus [$AdminControl getAttribute $clusterId state]
puts "Current status of $clusterName is $clusterStatus"
set starting "websphere.cluster.starting"
if {[string compare $clusterStatus $starting] == 0} {
puts "Cluster is in the process of starting. No Action is taken. Let cluster start first then invoke this command again to ripple start the cluster."
} else {
puts "Ripple Starting cluster"
$AdminControl invoke $clusterId rippleStart
puts "Cluster being started. Please check server log or admin console for cluster start status."
}
} else {
puts "Cluster '$clusterName' doesnot exist."
}
unset clusterName
unset clusterId
incr i
}
} else {
puts "Please supply cluster names as command line argument."
puts "Usage: wsadmin.sh -f ccs_ripplestart_clusters.jacl clusterName1 clusterName2 .........."
}

Get my WebSphere Application Server course here >> http://www.themiddlewareshop.com/products/


Steve Robinson - IBM Champion 2013

About Me

Steve Robinson has been working in IT for over 20 years and has provided solutions for many leading brands around the world. Steve specialises in JEE, DevOps and Thought Leadership.

In January 2013, I was awarded the prestigous 'IBM Champion' accolade.


  • Linked In
  • Twitter
  • About Me
  • Contact Me

Read my books?

IBM WebSphere Application Server 8.0 Administration Guide

IBM WebSphere Application Server 8.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

WebSphere Application Server 7.0 Administration Guide

Courses

  • WebSphere Courses

Articles

WebSphere Categories

Other Categories