RAC 管理工具之 olsnodes

olsnodes 显示集群节点列表

本文使用的是 rac 11.2.0.3.0 版本下自带的 olsnodes 工具
查看帮助信息
[grid@rac2 ~]$ olsnodes -help
Usage: olsnodes [ [-n] [-i] [-s] [-t] [ | -l [-p]] | [-c] ] [-g] [-v]
        where
                -n print node number with the node name
                -p print private interconnect address for the local node
                -i print virtual IP address with the node name
                print information for the specified node
                -l print information for the local node
                -s print node status - active or inactive
                -t print node type - pinned or unpinned
                -g turn on logging
                -v Run in debug mode; use at direction of Oracle Support only.
                -c print clusterware name
[grid@rac2 ~]$

-n 显示节点编号和节点名称
[grid@rac2 ~]$ olsnodes -n
rac1  1
rac2  2
-i 显示VIP名称
[grid@rac2 ~]$ olsnodes -n -i
rac1  1       rac1-vip
rac2  2       rac2-vip
[grid@rac2 ~]$ olsnodes -n -i -s
-s 显示节点状态
rac1  1       rac1-vip      Active
rac2  2       rac2-vip      Active
-t 显示节点类型 pinned or unpinned
[grid@rac2 ~]$ olsnodes -n -i -s -t
rac1  1       rac1-vip      Active  Unpinned
rac2  2       rac2-vip      Active  Unpinned

-l 显示本地节点信息
[grid@rac2 ~]$ olsnodes -l
rac2
-p 显示本地节点的内联地址
[grid@rac2 ~]$ olsnodes -l -p
rac2  100.100.10.11
[grid@rac2 ~]$
-c 显示集群名称
[grid@rac2 ~]$ olsnodes  -c
rac-cluster

-g 集群的更多的信息
[grid@rac2 ~]$ olsnodes  -g
rac1
rac2

-g -v 显示更多的详细的信息
[grid@rac2 ~]$ olsnodes   -g -v
lang init : Initializing LXL global
main: Initializing CLSS context
memberlist: No of cluster members configured = 256
memberlist: Allocated mem for lease node vector.
memberlist: Leased NodeList entries used = 2.
memberlist: Getting information for nodenum = 1
memberlist: node_name = rac1
memberlist: ctx->lsdata->node_num = 1
print data: Printing the node data
rac1
memberlist: Getting information for nodenum = 2
memberlist: node_name = rac2
memberlist: ctx->lsdata->node_num = 2
print data: Printing the node data
rac2
main: olsnodes executed successfully
term: Terminating LSF
[grid@rac2 ~]$
[grid@rac2 ~]$

我们可以使用该工具查看集群节点的信息的信息。


关于该工具的 官方文档:
http://docs.oracle.com/cd/E11882_01/rac.112/e16794/olsnodes.htm#CWADD91126

 

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/25475140/viewspace-748040/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/25475140/viewspace-748040/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值