Managing Serviceguard 12th Edition, March 2006

Cluster and Package Maintenance
Reviewing Cluster and Package Status
Chapter 7312
Reviewing Cluster and Package States with the
cmviewcl Command
Information about cluster status is stored in the status database, which
is maintained on each individual node in the cluster. You can display
information contained in this database by issuing the cmviewcl
command:
# cmviewcl -v
You can issue the cmviewcl command with non-root access. To allow
access, clusters with Serviceguard version A.11.16 or later grant access
by adding a Monitor role in the cluster configuration file. Earlier
versions allow access by adding a pair (
<nodename> <nonrootuser>
) to
their cmclnodelist file.
The cmviewcl command, when issued with the -v option, displays
information about all the nodes and packages in a running cluster,
together with the settings of parameters that determine failover
behavior.
TIP Some commands take longer to complete in large configurations. In
particular, you can expect Serviceguard’s CPU usage to increase during
cmviewcl -v as the number of packages and services increases.
You can also specify that the output should be formatted as it was in a
specific earlier release by using the -r option indicating the release
format you wish. Example:
# cmviewcl -r A.11.09
The formatting options lets you choose a style. The tabulated format is
designed for viewing. The line format is designed for scripting, and is
easily parsed.
See the man page for a detailed description of other cmviewcl options.
Viewing multi-node Information
To see multi-node package configuration information, status, and
dependencies in a CFS cluster, you can use the cfs commands, such as
cfsdgadm show_package
<diskgroup>
, cfsmntadm show_package
<mountpoint>
, getconf -p
<mnpkg>
| grep DEPENDENCY.