Managing HP Serviceguard A.12.00.00 for Linux, June 2014

NOTE: If no nodes are set by the user, the first node in the cluster configuration file will be
chosen to run all the simulator commands.
To return an active node to the cluster, on which all the simulator commands can be executed.
For example, to check on which node in "test_cluster" you can run the simulator commands:
#cmsimulatecl --session test_cluster getnode
test1 is active node for session test_cluster.
To start the node you can use cmrunnode command:
#cmsimulatecl --session <sessionName> cmrunnode -n <node_name>
For example,
#cmsimulatecl --session test_cluster cmrunnode test1
Cluster successfully formed
cmrunnode: Completed successfully
To halt the node you can use cmhaltnode command:
#cmsimulatecl --session <sessionName> cmhaltnode -n <node_name> ...
[-f]
For example,
#cmsimulatecl --session test_cluster cmhaltnode -f
Disabling all packages from starting on nodes to be halted
Warning: Do not modify or enable packages until the halt operation is completed
Waiting for nodes to halt ..... done
Successfully halted all nodes specified
Halt operation complete
8.2 Simulation Scenarios for the Package
This section describes how to create, halt, and run the package in the simulator view. For more
information about how to create a package configuration file, see Configuring Packages and Their
Services and the cmsimulate (1m) manpage.
8.2.1 Creating a Simulated Package
To create a simulated package:
1. Edit the cluster configuration file and apply the changes to the configuration file using
cmapplyconf command.
#cmsimulatecl cmapplyconf -P PKG1.conf
2. View the status of the package:
#cmsimulatecl --session test_cluster cmviewcl
Limitation
During package reconfiguration, you can only add the packages but cannot perform any
other operations.
You cannot add nodes once the cluster is created.
You cannot modify the configuration of cluster, node, or package once you have added.
8.2.2 Running a Package
You can use cmrunpkg to run the package on a particular node. For more information,
#cmsimulatecl --session test_cluster cmrunpkg PKG1
260 Simulating a Serviceguard Cluster