华为交换机6730 Logbuff看不到日志

S6730-S24X6Q
VRP ® software, Version 5.170 (S6730 V200R024C00SPC500)

display logbuff 看不到日志

检查

未开启日志,以及Logbuff设置级别错误

修改配置如下:

info-center enable
info-center source default channel 4 log level informational

修改完成后display logbuff 就能看到日志了

Jul 15 2025 09:09:08+08:00 Huawei-6730 %%01HWCM/5/TRAPLOG(s)[18]:OID 1.3.6.1.4.1.2011.6.10.2.1 configure changed. (EventIndex=33, CommandSource=1, ConfigSource=2, ConfigDestination=4)
Jul 15 2025 09:09:07+08:00 Huawei-6730 %%01CFM/4/SAVE(s)[19]:The user chose Y when deciding whether to save the configuration to the device.
Jul 15 2025 09:09:07+08:00 Huawei-6730 %%01SHELL/6/CMDCONFIRM_UNIFORMRECORD(s)[20]:Record command information. (Task=VT0, IP=100.64.1.1, VpnName=management, User=HiAdmin, Command="save", PromptInfo="The current configuration will be written to flash:/vrpcfg.zip.Are you sure to continue?[Y/N]", UserInput=Y)
Jul 15 2025 09:09:06+08:00 Huawei-6730 %%01SHELL/5/CMDRECORD(s)[21]:Recorded command information. (Task=VT0, Ip=100.64.1.1, VpnName=management, User=HiAdmin, AuthenticationMethod="Local-user", Command="save")
Jul 15 2025 09:09:05+08:00 Huawei-6730 %%01INFO/4/RST_LOGB(s)[22]:When deciding whether to reset the logbuffer, the user chose Y.
Jul 15 2025 09:09:05+08:00 Huawei-6730 %%01SHELL/6/CMDCONFIRM_UNIFORMRECORD(s)[23]:Record command information. (Task=VT0, IP=100.64.1.1, VpnName=management, User=HiAdmin, Command="reset logbu", PromptInfo="Warning: This command will reset the log buffer. Logs in the buffer will be lost. Continue? [Y/N]:", UserInput=Y)

不过最后的级别一般设置为notification(5级)就可以了。

日志级别对应如下:

  alert          Immediate action needed           (severity=1)
  critical       Critical conditions               (severity=2)
  debugging      Debugging messages                (severity=7)
  emergencies    System is unusable                (severity=0)
  error          Error conditions                  (severity=3)
  informational  Informational messages            (severity=6)
  notification   Normal but significant conditions (severity=5)
  warning        Warning conditions                (severity=4)
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值