
52
To do…
Use the command…
Remarks
Display the information about each
output destination
display info-center
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the state of the log buffer
and the log information recorded
display logbuffer
[
reverse
] [
level
severity
|
size
buffersize
|
slot
slot-number
] * [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display a summary of the log
buffer
display logbuffer summary
[
level
severity
| slot
slot-number
] * [
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the content of the log file
buffer
display logfile buffer
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the configuration of the log
file
display logfile summary
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Display the state of the trap buffer
and the trap information recorded
display trapbuffer
[
reverse
] [
size
buffersize
]
[
|
{
begin
|
exclude
|
include
}
regular-expression
]
Available in any view
Reset the log buffer
reset logbuffer
Available in user view
Reset the trap buffer
reset trapbuffer
Available in user view
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 higher than or equal to informational will be output to the log host;
•
The source modules are ARP and IP.
Figure 18
Network diagram
Configuration procedure
Before the configuration, make sure that there is a route 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