lshaservers
Use the lshaservers command to show the status of each active and standby management server.
Syntax
Parameters
- -help | -h | -?
- Lists help for the command. If you specify additional parameters and arguments, those parameters and arguments are ignored.
- -l | -s
- Displays detailed information for each management server, including:
Column label Details Server The domain or IP address of the management server Role The role of management server: Active or Standby Status The status of the relationship Port The standby management server port number. This port is used for communication between the active and standby management server. This port number is initially set at installation time.
Important: The port number for the standby management server must be the same on both the management server and the standby management server in a high-availability relationship. If you change the standby management server port number on either the management server or the standby management server, you must also change the port number on the other server. - -fmt { default | xml | delim | stanza }
- Specifies the format of the output. You can specify one of these values:
- default
- Specifies that the output is displayed in tabular format using spaces as delimiters between columns. This is the default value.
- xml
- Specifies that the output is displayed in XML format.
- delim
- Specifies that output is displayed in a tabular format using commas as delimiters between columns.
- stanza
- Specifies that the output is displayed as one keyword-value pair per line.
- -p { on | off }
- Specifies whether to display one page of text at a time or all text at once.
- on
- Displays one page of text at a time. Pressing any key displays the next page. This is the default value when the command is run in interactive mode.
- off
- Displays all text at once. This is the default value when the command is run in single-shot mode.
- -hdr { on | off }
- Specifies whether to display the table header. You can specify one of these values:
- on
- Displays the table header. This is the default value.
- off
- Hides the table header.
- -r number
- Specifies the number of rows per page to display when the -p parameter is specified. You can specify a value of 1 - 100. The default value is 22.
- -v { on | off }
- Specifies whether to enable verbose mode. You can specify one of these values:
- on
- Enables verbose mode.
- off
- Disables verbose mode. This is the default value.
Example: Listing management server status
The following command lists the status of the active and standby management servers.
csmcli> lshaservers
The following output is returned:
Server Role Status Port ======================================================== system1.csm.example.com ACTIVE Synchronized 5120 system2.csm.example.com STANDBY Synchronized 5120