Maintaining and Debugging the System 319
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.
Table 37 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
Set the address of the interface specified by
interface-name as the source address for
packets sent to loghost
info-center loghost source interface-name
Cancel the source address setting for the
packets sent to loghost
undo info-center loghost source
Configure to output the information to the
trap buffer.
info-center trapbuffer [ size buffersize ] [
channel { channel-number | channel-name } ]
Disable the output of the information to the
trap buffer.
undo info-center trapbuffer [ channel |
size ]
Configure to output the information to SNMP. info-center snmp channel { channel-number
| channel-name }
Disable the output of the information to
SNMP.
undo info-center snmp channel
Rename a channel specified by
channel-number as channel-name
info-center channel channel-number name
channel-name