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.

Table 291 Enable/Disable the Logging Function

Operation

Command

 

 

Enable the logging function.

info-center enable

Disable the logging function.

undo info-center enable

 

 

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 292 Log Output

Operation

Command

 

 

Configure to output the information to the

info-center console channel {

Console

channel-number channel-name }

Disable the output of the information to the

undo info-center console channel

Console

 

Configure to output the information to the

info-center monitor channel {

Telnet terminal or monitor

channel-number channel-name }

Disable the output of the information to the

undo info-center monitor channel

Telnet terminal or monitor

 

Configure to output the information to the logging buffer.

Disable the output of the information to the logging buffer.

Configure to output the information to the info-center loghost.

info-center logbuffer [ size buffersize ] [ channel { channel-number channel-name } ]

undo info-center logbuffer [ channel size ]

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

undo info-center loghost

info-center loghost.

host-ip-addr

Page 261
Image 261
3Com 10014298 manual Enabling and Disabling the Logging Function, Setting the Output Channel of the Log