Managing HP Serviceguard A.12.00.00 for Linux, June 2014
8.1.2.3 Import the Status of the Cluster State Stored in a File
You can import the state of the cluster stored in the <cluster_state_file> file using -l option.
The state of any cluster can be saved on a file by redirecting the output of the cmviewcl -v -f
line command to <cluster_state_file> file.
#cmsimulatecl importcluster -l test_cluster_cmviewcl_line
Cluster test_cluster is imported. Please use cmviewcl to view the cluster
8.1.2.4 Listing the Existing Session
Lists all the sessions available in the current node. You can also list the session in the simulator
prompt mode.
To list the existing session:
#cmsimulatecl listsession
db_cluster
test_cluster
data_cluster
8.1.3 Managing the Cluster
This section describes how to manage the Serviceguard cluster in the simulated environment.
Non-root users with the appropriate privileges can perform these tasks.
• To start the cluster you can use cmruncl command:
#cmsimulatecl --session test_cluster cmruncl
Waiting for cluster to form ..... done
Cluster successfully formed
For more information, see the cmruncl (1m) manpage.
• To halt the cluster you can use cmhaltcl command:
#cmsimulatecl --session test_clsuter cmhaltcl
Waiting for nodes to halt ..... done
Successfully halted all nodes specified
For more information, see the cmhaltcl (1m) manpage.
• To delete the cluster you can use cmdeleteconf command:
#cmsimulatecl cmdeleteconf -c test_cluster
Delete cluster sim1_cluster ([y]/n)y
Completed the cluster deletion
For more information, see the cmdeleteconf (1m) manpage.
8.1.4 Managing the Nodes in the Simulated Cluster
This section describes how to manage the nodes in the Serviceguard cluster in the simulated
environment. Once the node is set as active all further commands can be run on that node. The
-n option is not required.
• To set the active node in the cluster, on which all the simulator commands can be run:
#cmsimulatecl --session test_cluster setnode test1
Node test1 is set as active node for session test_cluster.
8.1 Simulating the Cluster 259