WebSphere Extended Deployment, Version 6.0.x
             Operating Systems: AIX, HP-UX, Linux, Solaris, Windows, z/OS


Creating and deleting dynamic clusters with scripts

WebSphere Extended Deployment provides Jacl scripts that you can use as scripting options to create or delete dynamic clusters.

Create a dynamic cluster

The createDynamicCluster.jacl script is provided with the product. At installation time the script is copied onto the installation target machines in the <install_root>\bin directory. The createDynamicCluster.jacl script creates a dynamic cluster and associates it with a node group.
Tip: By default, the DefaultNodeGroup node group is created during installation. Never attempt to associate a dynamic cluster with the DefaultNodeGroup node group.
To run createDynamicCluster.jacl script with the wsadmin utility, use this command:
wsadmin -profile createDynamicCluster.jacl node_group_name dynamic_cluster_name
In place of node_group_name and dynamic_cluster_name use the name of the node group that you want to associate with your new dynamic cluster. You might have to modify the wsadmin command to wsadmin.sh or wsadmin.bat, depending upon your operating environment.
You might be more comfortable with launching the scripting client first. Use the Getting started with scripting topic if you require assistance. In the wsadmin utility, type:
wsadmin> source createDynamicCluster.jacl
wsadmin> createDynamicCluster node_group_name dynamic_cluster_name
In place of node_group_name and dynamic_cluster_name , use the name of the node group that you want to associate with your new dynamic cluster.

Delete a dynamic cluster

The deleteDynamicCluster.jacl script is provided with the product. At installation time the script is copied onto the installation target machines in the <install_root>\bin directory. The deleteDynamicCluster.jacl script deletes a dynamic cluster.
To launch the deleteDynamicCluster.jacl script with the wsadmin utility, use this command:
wsadmin -f deleteDynamicCluster.jacl node_group_name dynamic_cluster_name
In place of node_group_name and dynamic_cluster_name, use the name of the node group that you want to disassociate with your deleted dynamic cluster. You might have to modify the wsadmin command to wsadmin.sh or wsadmin.bat, depending upon your operating environment.
You might be more comfortable with launching the scripting client first. Use the Getting started with scripting topic if you require assistance. In the wsadmin utility, type:
wsadmin> source deleteDynamicCluster.jacl
wsadmin> deleteDynamicCluster node_group_name dynamic_cluster_name
In place of node_group_name and dynamic_cluster_name use the name of the node group that you want to disassociate with your deleted dynamic cluster.



Related tasks
Creating dynamic clusters
Reference topic    

Terms of Use | Feedback

Last updated: Nov 30, 2007 4:05:14 PM EST
http://publib.boulder.ibm.com/infocenter/wxdinfo/v6r0/index.jsp?topic=/com.ibm.websphere.xd.doc/info/reference/toddcscript.html