To do...
Display a summary of the log
buffer
Display the state of the trap
buffer and the trap information
recorded
Reset the log buffer
Reset the trap buffer
Information Center Configuration Examples
Outputting Log Information to a Unix Log Host
Network requirements
Send log information to a Unix log host with an IP address of 1.2.0.1/16.
Log information with severity informational or higher than informational is output to the log
host.
The source modules are ARP and IP.
Figure 16-2 Network diagram for outputting log information to a Unix log host
Configuration procedure
Before the configuration, make sure that an available route exists between Device and PC.
1)
Configure the device
# Enable information center.
<Sysname> system-view
[Sysname] info-center enable
# Specify the host with IP address 1.2.0.1/16 as the log host, use channel loghost to output log
information (optional, loghost by default), and use local4 as the logging facility.
[Sysname] info-center loghost 1.2.0.1 channel loghost facility local4
# Disable the output of log, trap, and debugging information of all modules on channel loghost.
[Sysname] info-center source default channel loghost debug state off log state off trap
state off
Use the command...
display logbuffer summary
[ level severity | slot
slot-number ] *
display trapbuffer [ reverse ]
[ size buffersize ]
reset logbuffer
reset trapbuffer
16-19
Remarks
Available in any view
Available in any view
Available in user view
Available in user view