R3303-HP HSR6800 Routers Network Management and Monitoring Configuration Guide

172
Task Command
Remarks
Display the state and the trap
information of the trap buffer.
display trapbuffer [ reverse ] [ size
buffersize ] [ | { begin | exclude |
include } regular-expression ]
Available in any view.
Clear the log buffer. reset logbuffer Available in user view.
Clear the trap buffer. reset trapbuffer Available in user view.
Information center configuration examples
Outputting log information to the console
Network requirements
Configure the router to send ARP and IP log information that has a severity level of at least informational
to the console.
Figure 58 Network diagram
Configuration procedure
# Enable the information center.
<Sysname> system-view
[Sysname] info-center enable
# Use channel console to output log information to the console. (This step is optional because it is the
default setting.)
[Sysname] info-center console channel console
# Disable the output of log, trap, and debugging information of all modules on channel console.
[Sysname] info-center source default channel console debug state off log state off trap
state off
To avoid output of unnecessary information, disable the output of log, trap, and debugging information
of all modules on the specified channel (console in this example), and then configure the output rule as
needed.
# Configure an output rule to enable the device to send ARP and IP log information that has a severity
level of at least informational to the console.
[Sysname] info-center source arp channel console log level informational state on
[Sysname] info-center source ip channel console log level informational state on
[Sysname] quit
# Enable the display of log information on the console. (This function is enabled by default.)
<Sysname> terminal monitor
Info: Current terminal monitor is on.
<Sysname> terminal logging
Info: Current terminal logging is on.