随着资源越来越多,有时需要关注哪些
集群资源offline了,往往会考虑直接grep,但看不到资源名
-w 可以解决
-
crsctl stat res |grep "TYPE=" |uniq
-
-
crsctl stat res -t -w "(TARGET != ONLINE) AND (TYPE != ora.proxy_advm.type)"
-
-
crsctl stat res -t -w "(TARGET != ONLINE) AND (TYPE co ora.proxy_advm)"
-
-
co --> contains 包含
-
st --> starts with 开始
-
en --> ends with 截止
-
nc --> does not contain 不包含
-
coi --> contains, case-insensitive 包含,不分大小写
-
nci --> does not contain, case-insensitive 不包含 不分大小写
-
eqi --> equals, case-insensitive
-
-
crsctl stat res -t -w "(TARGET != ONLINE) AND (TYPE coi ORA.proxy_advm)"
-
-
crsctl stat res -t -h 看详细说明
阅读(392) | 评论(0) | 转发(0) |