Single-cluster ASCII display mode

In single-cluster ASCII display mode, the clstat utility displays information about only one cluster.

To invoke the clstat utility in single-cluster (non-interactive) mode, enter:

/usr/es/sbin/cluster/clstat

A panel similar to the following appears:

clstat - PowerHA SystemMirror Cluster Status Monitor
      -------------------------------------

Cluster: myctestcluster   (1044370190)
Tue Mar 11 14:19:50 EST 2004
      State: UP     Nodes: 2
      SubState: STABLE

 Node: holmes  State: UP
 Interface: holmes_en1svc (0)  Address: 192.168.90.40
 State:   UP
 Resource Group: econrg1  State:  online

 Node: u853    State: UP
 Interface: u853_en1svc (0) Address: 192.168.90.50
 State:   UP
 Resource Group: econrg1  State:  online
***************** f/forward, b/back, r/refresh, q/quit ***************

clstat single-cluster ASCII display mode

The cluster information displayed shows the cluster ID and name. (Note that PowerHA® SystemMirror® assigns the cluster ID number; this is not user-defined.) In this example, the cluster is up and has two nodes, both of which are up. Each node has one network interface. Note that the forward and back menu options apply when more than one page of information is available to display.

If more than one cluster exists when you run the clstat command, the utility notifies you of this fact and requests that you retry the command specifying one of the following options:

usage: clstat [-c cluster ID] [-n cluster name][ -r seconds] [-i] [-a] [-o] [-s]

where:

Table 1. clstat flags
Flag Description
-c cluster ID Displays information about the cluster with the specified ID if that cluster is active (PowerHA SystemMirror generates this number). This option cannot be used with the -n option.

If the cluster is not available, the clstat utility continues looking for it until it is found or until the program is canceled. Note that this option cannot be used if the -i option (for multi-cluster mode) is used.

-n name The cluster name. This option cannot be used with the -c option
-r seconds Updates the cluster status display at the specified number of seconds. The default is 1 second; however, the display is updated only if the cluster state changes.
-i Displays information about clusters interactively. Only valid when running clstat in ASCII mode.
-a Causes clstat to display in ASCII mode.
-o (once) Provides a single snapshot of the cluster state and exits. This flag can be used to run clstat out of a cron job. Must be run with the -a option; ignores -i or -r flags.
-s Displays service labels for serial networks and their state (up or down).

To see cluster information about a specific cluster, enter:

clstat [-n name]