Maintaining and Debugging the System 261
For the above configuration, the log host is not configured on the switch. All other
configurations will take effect after enabling the logging function.
Enabling and Disabling the Logging Function
You can use the following commands to enable or disable the logging function.
Perform the following operation in system view.
By default, syslog is disabled. When syslog is enabled, system performance is
affected by the information classification and the output, especially when there is
a large amount of information to be processed.
Setting the Output Channel of the Log
The syslog of the Ethernet switch has six possible output destinations. Use the
configuration commands to specify the required channels for syslog output. All
the information will be filtered by the specified channel and then transmitted to
the configured destination. You can configure the channel and filtering
information for every destination to implement the filtering and redirection of
different information.
Use the following commands to configure the output channel of the log.
Perform the following configuration in system view.
Tabl e 291 Enable/Disable the Logging Function
Operation Command
Enable the logging function. info-center enable
Disable the logging function. undo info-center enable
Tabl e 292 Log Output
Operation Command
Configure to output the information to the
Console
info-center console channel {
channel-number | channel-name }
Disable the output of the information to the
Console
undo info-center console channel
Configure to output the information to the
Telnet terminal or monitor
info-center monitor channel {
channel-number | channel-name }
Disable the output of the information to the
Telnet terminal or monitor
undo info-center monitor channel
Configure to output the information to the
logging buffer.
info-center logbuffer [ size
buffersize ] [ channel {
channel-number | channel-name } ]
Disable the output of the information to the
logging buffer.
undo info-center logbuffer [
channel | size ]
Configure to output the information to the
info-center loghost.
info-center loghost host-ip-addr
[ channel { channel-number |
channel-name } ] [ facility
local-number ] [ language {
chinese | english } ]
Disable the output of the information to the
info-center loghost.
undo info-center loghost
host-ip-addr