Configuring the Device to Output Traps to the Console
Context
After traps are output to the console, you can view traps on the console (host from which you can log in to the device through the console interface) to monitor device running.
Procedure
- Run system-view
The system view is displayed.
- Run info-center console channel { channel-number | channel-name }
A channel through which traps are output to the console is specified.
By default, the device uses channel 0 to output traps to the console.
- Run info-center source { module-name | default } channel { channel-number | channel-name } trap { state { off | on } | level severity } *
A rule for outputting traps to a channel is set.
By default, channel 0 is enabled to output traps and the lowest severity is debugging.
- Run quit
Return to the user view.
- Run terminal monitor
Display of logs, traps, and debugging message output is enabled on the user terminal.
By default, console display is enabled and terminal display is disabled.
- Run terminal trapping
Traps display is enabled on the user terminal.
By default, trap display is enabled on the user terminal.