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)