OLSNODES provides information related RAC nodes.
1. List of nodes in the cluster
olsnodes
prod54-1
prod55-1
2.Nodes with node number
olsnodes -n
prod54-1 1
prod55-1 2
3.Node with vip
olsnodes -i
prod54-1 prod54-1-vip
prod55-1 prod55-1-vip
4. Nodes with status
olsnodes -s -t
prod54-1 Active Unpinned
prod55-1 Active Unpinned
5.Leaf or Hub
olsnodes -a
prod54-1 Hub
prod55-1 Hub
6.Getting private ip details of the local node
olsnodes -l -p
prod54-1 162.168.1.1,162.168.2.1
7. Get cluster name
olsnodes -c
prodd-cluster