配置Debug信息输出到控制台

操作步骤
- 启用信息管理功能。
<HUAWEI> system-view [HUAWEI] sysname DeviceA [DeviceA] info-center enable
- 配置向控制台发送Debug信息的信息通道和输出规则。# 配置Debug信息输出到控制台所使用的通道为0。
[DeviceA] info-center console channel 0
# 配置向信息通道输出Debug信息的规则,允许ARP模块的Debug信息在控制台输出,并且严重等级限制为debugging。
[DeviceA] info-center source arp channel console debug level debugging [DeviceA] quit
- 打开终端显示开关,并打开Debug信息显示功能。
<DeviceA> terminal monitor <DeviceA> terminal debugging
- 打开ARP模块的调试开关。
<DeviceA> debugging arp packet
检查配置结果
# 查看配置的通道信息。
<DeviceA> display info-center channel 0 channel number:0, channel name:console ModuID Name Enable LogLevel Enable TrapLevel Enable DebugLevel ffffffff default Y warning Y debugging Y debugging 00000859 ARP Y warning Y debugging Y debugging
配置脚本
# sysname DeviceA # info-center console channel 0 info-center source arp channel console debug level debugging # return
阅读剩余
版权声明:
作者:SE_YT
链接:https://www.cnesa.cn/2829.html
文章版权归作者所有,未经允许请勿转载。
THE END