Managing Serviceguard Eighteenth Edition, September 2010

Checking Cluster Operation with Serviceguard Commands
Serviceguard also provides several commands for control of the cluster:
cmviewcl checks status of the cluster and many of its components. A non-root
user with the role of Monitor can run this command from a cluster node or see
status information in Serviceguard Manager.
On systems that support CFS, the Veritas Cluster File System,cfscluster status
gives information about the cluster;cfsdgadm display gives information about
the clusters disk groups.
cmrunnode is used to start Serviceguard on a node. A non-root user with the role
of Full Admin can run this command from a cluster node or through Serviceguard
Manager.
cmhaltnode is used to manually stop a running node. (This command is also
used by shutdown(1m).) A non-root user with the role of Full Admin can run
this command from a cluster node or through Serviceguard Manager.
cmruncl is used to manually start a stopped cluster. A non-root user with Full
Admin access can run this command from a cluster node, or through Serviceguard
Manager.
cmhaltcl is used to manually stop a cluster. A non-root user with Full Admin
access, can run this command from a cluster node or through Serviceguard
Manager.
You can use these commands to test cluster operation, as in the following:
1. If the cluster is not already running, start it. From the Serviceguard Manager menu,
choose Run Cluster. From the command line, use cmruncl -v.
By default, cmruncl will check the networks. Serviceguard will probe the actual
network configuration with the network information in the cluster configuration.
If you do not need this validation, use cmruncl -v -w none instead, to turn off
validation and save time
2. When the cluster has started, make sure that cluster components are operating
correctly. you can use Serviceguard Manager to do this, or use the command
cmviewcl -v.
Make sure that all nodes and networks are functioning as expected. For more
information, see Chapter 7: “Cluster and Package Maintenance” (page 321).
3. Verify that nodes leave and enter the cluster as expected using the following steps:
Halt the node. You can use Serviceguard Manager or use the cmhaltnode
command.
Check the cluster membership to verify that the node has left the cluster. You
can do this in Serviceguard Manager, or use the cmviewcl command.
Managing the Running Cluster 273