Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3565567
  • 博文数量: 715
  • 博客积分: 1860
  • 博客等级: 上尉
  • 技术积分: 7745
  • 用 户 组: 普通用户
  • 注册时间: 2008-04-07 08:51
个人简介

偶尔有空上来看看

文章分类

全部博文(715)

文章存档

2023年(75)

2022年(134)

2021年(238)

2020年(115)

2019年(11)

2018年(9)

2017年(9)

2016年(17)

2015年(7)

2014年(4)

2013年(1)

2012年(11)

2011年(27)

2010年(35)

2009年(11)

2008年(11)

最近访客

分类: Oracle

2023-10-18 17:45:25

随着资源越来越多,有时需要关注哪些集群资源offline了,往往会考虑直接grep,但看不到资源名

-w 可以解决
  1. crsctl stat res |grep "TYPE=" |uniq

  2. crsctl stat res -t -w "(TARGET != ONLINE) AND (TYPE != ora.proxy_advm.type)"

  3. crsctl stat res -t -w "(TARGET != ONLINE) AND (TYPE co ora.proxy_advm)"

  4.                 co --> contains 包含
  5.                 st --> starts with 开始
  6.                 en --> ends with 截止
  7.                 nc --> does not contain 不包含
  8.                 coi --> contains, case-insensitive 包含,不分大小写
  9.                 nci --> does not contain, case-insensitive 不包含 不分大小写
  10.                 eqi --> equals, case-insensitive

  11. crsctl stat res -t -w "(TARGET != ONLINE) AND (TYPE coi ORA.proxy_advm)"

  12. crsctl stat res -t -h 看详细说明

阅读(267) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~