Oracle® Clusterware Administration and Deployment Guide 11g Release 2 (11.2) Part Number E10717-04 |
|
|
View PDF |
This appendix describes the syntax and command options for the olsnodes
command.
This appendix contains the following topics:
This section contains topics which relate to using the OLSNODES command.
The olsnodes
command provides the list of nodes and other information for all nodes participating in the cluster.
You can use this command to quickly check that your cluster is operational, and all nodes are registered as members of the cluster. This command also provides an easy method for obtaining the node numbers.
Usage Information
This command is used by the Cluster Verification Utility (CLUVFY) to obtain a list of node names when the -n all
option is used.
This command utility is located in the $ORA_CRS_HOME/bin
directory. You can only use this command if the CRS daemon is started.
Privileges and Security
You must run this command as the root
user.
The olsnodes
command does not use keywords, but accepts one or more options. The available options are described in Table C-1.
Syntax
olsnodes [node_name] [-g] [-i] [-l] [-n] [-p] [-s] [-t] [-v]
If you issue the olsnodes
command without any command parameters, the command returns a listing of the nodes in the cluster:
[root@node1]# olsnodes node1 node2 node3 node4
Table C-1 OLSNODES Command Options
Command | Description |
---|---|
|
Displays information for a particular node |
|
Logs cluster verification information with more details |
|
Lists all nodes participating in the cluster and includes the Virtual Internet Protocol (VIP) address assigned to each node |
|
Displays information for the local node |
|
Lists all nodes participating in the cluster and includes the assigned node numbers |
|
Lists all nodes participating in the cluster and includes the private interconnect assigned to each node |
|
Displays the status of the node: |
|
Displays node type: pinned or unpinned |
|
Logs cluster verification information in verbose mode |
Usage Notes
Examples
Include here the most common uses of this command. For example:
Example 1: List the VIP addresses for all nodes currently in the cluster
To list the VIP addresses for each node that is currently a member of the cluster, use the command:
[root@node1]# olsnodes -i node1 168.92.1.1 node2 168.192.2.1 node3 168.192.3.1 node4 168.192.4.1
Example 2: List the node names and node numbers for cluster members
To list the node name and the node number for each node in the cluster, use the command:
[root@node1]# olsnodes -n node1 1 node2 2 node3 3 node4 4