How to configure a switch to send debugging information to the log server

20

To configure a switch to send debugging information to the log server, run the following commands in the system view.

[HUAWEI] info-center source default channel 2 debug state on
[HUAWEI] info-center loghost x.x.x.x
By default, a switch sends only logs and traps to the log server.

Other related questions:
How to configure an AR to send log information to the log host
For details about how to configure an AR to send log information to the log host, see Example for Outputting Log Information to a Log Host.

How to configure a CE switch to send logs to a server
You can configure the switch to export logs to the log server so that you can view them on the log server to monitor device running. For example, to export all logs with a level higher than "notification" to the log server 10.1.1.1, run:
<HUAWEI> system-view
[~HUAWEI] info-center loghost 10.1.1.1 channel loghost level notification
[*HUAWEI] commit

How to send information based on log severity on S series switches
For S series switches (except the S1700), run the following commands in the system view to configure an information channel to send only logs with a specified log severity: - Log: info-center source (specifies the module) channel (specifies the channel) log level (specifies the severity of output logs) - Trap: info-center source (specifies the module) channel (specifies the channel) trap level (specifies the severity of output traps) - Debug: info-center source (specifies the module) channel (specifies the channel) debug level (specifies the severity of output debug messages)

How to enable or disable display of debugging, log, and alarm information sent from the information center
The terminal monitor, terminal debugging, terminal logging, and terminal trapping commands enable a terminal to display debugging, log, and alarm information sent from the information center. The undo terminal monitor, undo terminal debugging, undo terminal logging, and undo terminal trapping commands disable a terminal from displaying debugging, log, and alarm information sent from the information center.

If you have more questions, you can seek help from following ways:
To iKnow To Live Chat
Scroll to top