Managing HP Serviceguard A.12.00.00 for Linux, June 2014
8.1 Simulating the Cluster
This section describes how to create, import, halt, run, and delete the cluster in the simulator view.
You can simulate a cluster in two ways:
• Create a cluster using cmapplyconf in a simulation environment
• Create a cluster by importing the existing cluster into simulation environment
Session name is same as the cluster name. For information about how to create cluster configuration
file, see Cluster Configuration Parameters and the cmsimulatecl (1m) manpage.
For example, assume that you have cluster configuration file test_cluste.ascii and package
config files PKG1.conf and PKG2.conf. The following sections describe how to create a simulated
cluster using these configuration files.
8.1.1 Creating the Simulated Cluster
To create the simulated cluster:
1. Edit the cluster configuration file and apply the changes to the configuration file using
cmapplyconf command.
#cmsimulatecl cmapplyconf -C test_cluster.ascii
2. View the status of the cluster:
#cmsimulatecl --session cmviewcl
8.1.2 Importing the Cluster State
You can import the cluster state in three ways and view the status of the cluster in the simulation
environment:
• “Import Existing Local Cluster State into Simulation Environment” (page 258)
• “Import Existing Remote Cluster State into Simulation Environment” (page 258)
• “Import the Status of the Cluster State Stored in a File” (page 259)
8.1.2.1 Import Existing Local Cluster State into Simulation Environment
You can import the existing local cluster into simulator on any one of the cluster nodes. You can
view the status of the imported simulated cluster by executing the following command:
#cmsimulatecl importcluster
Cluster test_cluster is imported. Please use cmviewcl to view the cluster
NOTE: The importcluster command can import only the state of a cluster of same Serviceguard
version.
8.1.2.2 Import Existing Remote Cluster State into Simulation Environment
You can import the state of the cluster using -c option, including the state of all its packages into
the simulator.
If you do not specify any option, the importcluster command imports the state of the cluster
configured on the node where simulator is running. You can also view the status of the cluster using
cmviewcl command.
#cmsimulatecl importcluster -c test_cluster
Cluster test_cluster is imported. Please use cmviewcl to view the cluster
258 Simulating a Serviceguard Cluster