Setting up Syslog on Huawei Quidway

As an example, I will set up sending logs from the Huawei Quidway S2326TP-EI switch to the syslog server.

Let’s go into configuration mode:

system-view

Let’s specify the syslog server and logging level (note that not all models allow you to specify the log level):

info-center loghost 192.168.5.5 channel 2 log level error

If log level cannot be specified, then we will simply specify the syslog server and configure log level for channel 2:

info-center loghost 192.168.5.5 channel 2
info-center source default channel 2 log level error
info-center loghost ixnfo.com channel ?
  INTEGER<0-9>  Mask table number <0-9>
  channel6      6 channel's name is channel6
  channel7      7 channel's name is channel7
  channel8      8 channel's name is channel8
  channel9      9 channel's name is channel9
  console       0 channel's name is console
  logbuffer     4 channel's name is logbuffer
  loghost       2 channel's name is loghost
  monitor       1 channel's name is monitor
  snmpagent     5 channel's name is snmpagent
  trapbuffer    3 channel's name is trapbuffer

Let’s specify the switch hostname, as it will be displayed on the syslog server:

sysname IXNFO.COM

You can disable the output of informative messages to the switch log buffer (it will probably not be useful):

info-center source default channel 0 log level warning

Example of viewing the configuration:

display current-configuration | include info-center
display channel 2
display trapbuffer

Let’s exit the configuration mode and save the settings:

quit
save

See also my article:
Installing Rsyslog + Loganalyzer + MySQL

Leave a comment

Leave a Reply