Log Commands
463
View
System view
Parameter
None
Description
Use the
command to enable the system log function. Use
info-center enable
the
command to disable system log function.
undo info-center enable
By default, system log function is enabled.
Only after the system log function is enabled can the system output the log
information to the info-center loghost and console, etc.
For the related commands, see
,
,
info-center loghost
info-center logbuffer
,
,
info-center console channel
info-center monitor channel
display
.
info-center
Example
Enable the system log function.
<SW5500>system-view
System View: return to User View with Ctrl+Z.
[SW5500]info-center enable
info-center logbuffer
Syntax
info-center logbuffer [ channel {
channel-number
|
channel-name
} |
size
buffersize
]
undo info-center logbuffer [ channel | size ]
View
System view
Parameter
: Configure the channel to output information to buffer.
channel
Channel number, ranging from 0 to 9, that is, system has ten
channel-number:
channels.
Specify the channel name. The name can be
channel-name:
channel6,
channel7, channel8, channel9, console, logbuffer, loghost, monitor,
snmpagent, trapbuffer.
Configure the size of buffer.
size:
Size of buffer (number of messages which can be kept); The default
buffersize:
size of the buffer is 512.