
61
By default, the time stamp format for system information sent to the log host is
date
.
Related commands:
info-center timestamp
.
Examples
# Configure that the system information output to the log host does not include the year information.
<Sysname> system-view
[Sysname] info-center timestamp loghost no-year-date
info-center trapbuffer
Syntax
info-center trapbuffer
[
channel
{
channel
-
number | channel
-
name
}
|
size
buffersize
] *
undo info-center trapbuffer
[
channel
|
size
]
View
System view
Default level
2: System level
Parameters
size
buffersize
: Specifies the maximum number of trap messages in a trap buffer, which ranges from 0 to
1,024, and defaults to 256.
channel
-
number
: Specifies a channel number, which ranges from 0 to 9.
channel
-
name
: Specifies a channel name, which could be a default name or a self-defined name. The
user needs to specify a channel name first before using it as a self-defined channel name. For more
information, see the
info-center channel name
command.
Description
Use the
info-center trapbuffer
command to enable information output to the trap buffer and set the
corresponding parameters.
Use the
undo info-center trapbuffer
command to disable information output to the trap buffer.
By default, information output to the trap buffer is enabled with channel 3 (trapbuffer) as the default
channel and a maximum buffer size of 256.
Note that the
info
-
center trapbuffer
command takes effect only after the information center is enabled
with the
info-center enable
command.
Examples
# Configure the system to output information to the trap buffer through the default channel, and set the
trap buffer size to 30.
<Sysname> system-view
[Sysname] info-center trapbuffer size 30
logfile save
Syntax
logfile save