# -----------------------------------------------------
# Jython script to ripplestart the cluster from a command line.
# Usage:
# CD to Deployment Manager's bin directory.
# execute ./wsadmin.sh -lang jython -f /opt/AECall/WAS_Config/ripplestart.py
# -conntype SOAP
# -----------------------------------------------------
# Variable Definitions
# -----------------------------------------------------
cellName = AdminControl.getCell()
clusterName = 'ourcluster'
#
#
clusterMgr = AdminControl.completeObjectName("cell=" + cellName + ",type=ClusterMgr,*")
AdminControl.invoke(clusterMgr, 'retrieveClusters')
cluster = AdminControl.completeObjectName("cell=" + cellName + ",type=Cluster,name=" + clusterName + ",*")
AdminControl.invoke(cluster, 'rippleStart')
Otherwise, how do you want to start a Cluster without telling its name ?
Example:
wsadmin>$AdminConfig list ServerCluster
SampleAppC1(cells/Cell01/clusters/SampleAppC1|cluster.xml#ServerCluster_1138735862373)
wsadmin>set cluster
SampleAppC1(cells/Cell01/clusters/SampleAppC1|cluster.xml#ServerCluster_1138735862373)
wsadmin>$AdminConfig showAttribute $cluster {name}
SampleAppC1
You can translate this to Jython syntax :)
-Dexthor.
wsadmin>$AdminConfig list ServerCluster
SampleAppC1(cells/Cell01/clusters/SampleAppC1|cluster.xml#ServerCluster_1138735862373)
wsadmin>set cluster
SampleAppC1(cells/Cell01/clusters/SampleAppC1|cluster.xml#ServerCluster_1138735862373)
wsadmin>$AdminConfig showAttribute $cluster {name}
SampleAppC1
wsadmin>$AdminConfig showAttribute $cluster {members}
{server1(cells/Cell01/clusters/SampleAppC1|cluster.xml#ClusterMember_1138735862733)
C1M1(cells/Cell01/clusters/SampleAppC1|cluster.xml#ClusterMember_1138735876517)
C1M2(cells/Cell01/clusters/SampleAppC1|cluster.xml#ClusterMember_1138735890725)}
# Once you have configID(Reference) to the Cluster, you can use
'$AdminConfig showAttribute ##ClusterID## {members}' call. If you use
above approach, you dont have to hardcode your Cluster Names, unless
you want to carry out an operation on a specific Cluster.
HTH
Dexthor.
The following "completeObjectName" will return all of them and thus the only
one in your case:
"cell=<MyCell>,type=Cluster,*"