ASR9000 longging报文过滤
  lHsWkjQSrEp1 2023年11月13日 34 0

在日常运维的过程中设备常常会打印很多的log报文来,间隙刷新导致很多有用的打印无法看到,但是该类报文不影响设备的正常运行。这时候可以使用下面的命令对报文进行过滤让他不打印出来

LC/2/7/CPU0:Oct 9 22:33:52.985 GMT: plim_xge[284]: %PLATFORM-CIH-5-ASIC_ERROR_SCRUB_THRESH : pla[1]: A sbe error has occurred causing data corrected. 0x10050005 Threshold has been exceeded

Explain the suppress configuration:

(config)#logging suppress rule ABC

(config-suppr-rule)#alarm PLATFORM CIH ASIC_ERROR_SCRUB_THRESH.    <<<<<<<<<<这个地方 分3段

(config-suppr-rule)#logging suppress apply rule ABC

(config-suppr-apply-rule)#all-of-router

(config-suppr-apply-rule)#commit

 

 

For example, you want to filter the following logs:

RP/0/RSP0/CPU0:Nov  3 04:07:51.235 beijing: PPP-MA[392]: %L2-PPP_MA-4-ERR_IMC_IF : Unknown Interface ID 08f6dca0: Unexpected IfMgr error encountered whilst defining ppp base capsulation: 'uidb_server' detected the 'warning' condition 'Interface already exists.'

 

The configuration commands are as follows:

logging suppress rule PPP-MA

alarm L2 PPP_MA MA-4-ERR_IMC_IF

!

logging suppress apply rule PPP-MA

all-of-router

!

end

【版权声明】本文内容来自摩杜云社区用户原创、第三方投稿、转载,内容版权归原作者所有。本网站的目的在于传递更多信息,不拥有版权,亦不承担相应法律责任。如果您发现本社区中有涉嫌抄袭的内容,欢迎发送邮件进行举报,并提供相关证据,一经查实,本社区将立刻删除涉嫌侵权内容,举报邮箱: cloudbbs@moduyun.com

  1. 分享:
最后一次编辑于 2023年11月13日 0

暂无评论

推荐阅读