%Sep 11 11:31:09:759 2023 H3C SHELL/4/SHELL_CMD_MATCHFAIL: -User=**-IPAddr=**; Command display interface GigabitEthernet 1/1/1 in view system failed to be matched.//由于打错命令导致出现SHELL_CMD_MATCHFAIL类型日志
%Aug 19 07:30:32:381 2023 H3C SHELL/6/SHELL_CMD: -Line=vty0-IPAddr=10.6.10.122-User=wangguan; Command is undo terminal monitor
需求:关闭shell模块的SHELL_CMD_MATCHFAIL和 SHELL_CMD_MATCHFAIL相关日志
不在logbuffer中出现 配置相关信息
SHELL_CMD,SHELL_CMD_MATCHFAIL,CFGMAN_CFGCHANGED:都是助记符
增加如下命令
info-center logging suppress module SHELL mnemonic SHELL_CMD
info-center logging suppress module SHELL mnemonic SHELL_CMD_MATCHFAIL
不想看到所有web模块日志直接info-center source禁掉就行
[S10508-V-1]info-center source WEB ?
console Specify the output rules for the console destination
logbuffer Specify the output rules for the log buffer destination
logfile Specify the output rules for the log file destination
loghost Specify the output rules for the log host destination
monitor Specify the output rules for the monitor destination
[S10508-V-1]info-center source WEB log
[S10508-V-1]info-center source WEB logbuffer deny
该案例暂时没有网友评论
✖
案例意见反馈
亲~登录后才可以操作哦!
确定你的邮箱还未认证,请认证邮箱或绑定手机后进行当前操作