Example for Outputting Debugging Messages to the Console
Networking Requirements
As shown in Figure 9-10, the PC connects to SwitchA through a console interface. It is required that debugging messages of the ARP module be displayed on the PC.
Configuration Roadmap
The configuration roadmap is as follows:
Enable the information center.
Configure a channel and a rule for outputting debugging messages to the console so that the console can receive debugging messages generated by SwitchA.
Enable terminal display so that users can use the terminal to view debugging messages generated by SwitchA.
Procedure
- Enable the information center.
<HUAWEI> system-view [HUAWEI] sysname SwitchA [SwitchA] info-center enable
- Configure a channel and a rule for outputting debugging messages to the console.
# Configure a channel for outputting debugging messages to the console.
[SwitchA] info-center console channel console
# Configure a rule for outputting debugging messages to the console.
[SwitchA] info-center source arp channel console debug level debugging state on [SwitchA] quit
- Enable terminal display.
<SwitchA> terminal monitor <SwitchA> terminal debugging
- Debug the ARP module.
<SwitchA> debugging arp packet
- Verify the configuration.
# View debugging message output.
<SwitchA> display channel 0 channel number:0, channel name:console MODU_ID NAME ENABLE LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL ffff0000 default Y warning Y debugging Y debugging 416e0000 ARP Y warning Y debugging Y debugging