[ Bottom of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]
Commands Reference, Volume 3, i - m
lsrpnode Command
Purpose
Displays information about one or more of the nodes that are defined
in the online peer domain.
Syntax
lsrpnode [ -o | -O | -L ] [ -l | -t | -d | -D delimiter ] [-x] [-h] [-TV] [node_name]
lsrpnode [ -l | -t | -d | -D delimiter ] [-x] -p peer_domain [-h] [-TV]
Description
The lsrpnode command displays information about one or more of
the nodes that are defined in the online peer domain. Use the command's flags and parameters
to specify which information you want to display and how you want to display
it. When you specify a node name, the command displays information about
that node only. The -o, -O, and -L flags also limit the information
this command displays. The -o flag displays information about nodes that are online. The -O flag displays
information about nodes that are offline. The -Lflag displays information
about the local node, which is the node the command runs on.
By default, the lsrpnode command displays information in table
format (-t).
Some of the node information that is displayed follows:
- Field
- Description
- Name
- The name of the node in the peer domain
- OpState
- The operational state of the node
- RSCTVersion
- The version of RSCT that is active in the node
Flags
- -o
- Displays information about the nodes that are online in the peer domain.
- -O
- Displays information about the nodes that are offline in the peer domain.
- -L
- Displays information about the local node only, which is the node that
the command runs on.
- -p peer_domain
- Displays information about nodes defined in an offline peer domain that the local node belongs to. (By default, the lsrpnode command displays information about the nodes that are defined in the
domain where you are currently online.) However,
this information might not reflect changes that are made to the domain after
the local node is taken offline, because an offline node might not have the
latest configuration.
The -p flag ignores the CT_CONTACT environment variable.
- -l
- Displays the information on separate lines (long format).
- -t
- Displays the information in separate columns (table format). This
is the default format.
- -d
- Displays the information using delimiters. The default delimiter is
a colon (:). Use the -D flag if you want to change the default delimiter.
- -D delimiter
- Displays the information using the specified delimiter. Use this flag to specify a delimiter
other than the default colon (:) -- when the information you
want to display contains colons, for example. You can use this flag to specify a delimiter of one or
more characters.
- -x
- Excludes the header (suppresses header printing).
- -h
- Writes the command's usage statement to standard output.
- -T
- Writes the command's trace messages to standard error. For your software
service organization's use only.
- -V
- Writes the command's verbose messages to standard output.
Parameters
- node_name
- Specifies the name of the node about which you want to display information.
You can specify a node name or a substring of a node name for this parameter.
If you specify a substring, the command displays information about any defined
node with a name that contains the substring.
Security
The user of the lsrpnode command needs read permission for the IBM.PeerNode resource class on the node this command runs on. By default, root on any node in the peer domain has read and write access to this
resource class through the configuration resource manager.
Exit Status
- 0
- The command ran successfully.
- 1
- An error occurred with RMC.
- 2
- An error occurred with a command-line interface script.
- 3
- An incorrect flag was entered on the command line.
- 4
- An incorrect parameter was entered on the command line.
- 5
- An error occurred that was based on incorrect command-line input.
Environment Variables
- CT_CONTACT
- Determines the system where the session with the resource monitoring
and control (RMC) daemon occurs. When CT_CONTACT is set to a host name or
IP address, the command contacts the RMC daemon on the specified host. If
CT_CONTACT is not set, the command contacts the RMC daemon on the local system
where the command is being run. The target of the RMC daemon session and
the management scope determine the resource classes or resources that are
processed.
Restrictions
This command must be run on a node that is online in the peer domain.
Standard Input
When the -f "-" flag is specified, this command reads one or more node names from standard
input.
Standard Output
When the -h flag is specified, this command's usage statement is written to standard
output. All verbose messages are written to standard output.
Standard Error
All trace messages are written to standard error.
Examples
- To display general information about the nodes in the online peer domain
that nodeA belongs to, run this command on nodeA:
lsrpnode
The output will look like this:
Name OpState RSCTVersion
nodeA online 2.3.3.0
nodeB online 2.3.3.0
nodeC offline 2.3.3.0
- To display general information about the nodes in the online peer domain
that nodeA belongs to, with the default delimiter (but without the
heading), run this command on nodeA:
lsrpnode -xd
The output will look like this:
nodeA:online:2.3.3.0:
nodeB:online:2.3.3.0:
nodeC:offline:2.3.3.0:
- To display general information about the nodes in the online peer domain
that nodeA belongs to, in long format, run this command on nodeA:
lsrpnode -l
The output will look like this:
Name = nodeA
OpState = online
RSCTVersion = 2.3.3.0
Name = nodeB
OpState = online
RSCTVersion = 2.3.3.0
Name = nodeC
OpState = offline
RSCTVersion = 2.3.3.0
Location
- /usr/sbin/rsct/bin/lsrpnode
- Contains the lsrpnode command
Related Information
Commands: addrpnode, preprpnode, startrpnode, stoprpnode
Files: rmccli, for general information about RMC-related commands
[ Top of Page | Previous Page | Next Page | Contents | Index | Library Home |
Legal |
Search ]