在日常运维的过程中设备常常会打印很多的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