Log Output To A Linux Log Host - Huawei Quidway S3100 Series Operation Manual

Table of Contents

Advertisement

Operation Manual – Information Center
Quidway S3100 Series Ethernet Switches
Note:
Through combined configuration of the device name (facility), information severity level
threshold (severity), module name (filter) and file "syslog.conf", you can sort
information precisely for filtering.

1.4.2 Log Output to a Linux Log Host

I. Network requirements
The switch sends the following log information in English to the Linux log host whose IP
address is 202.38.1.10: All modules' log information, with severity higher than
"informational".
II. Network diagram
Switch
Switch
Switch
Figure 1-2 Networking for log output to a Linux log host
III. Configuration procedure
1)
Configure the switch:
# Enable the information center.
<Quidway> system-view
[Quidway] info-center enable
# Configure the host whose IP address is 202.38.1.10 as the log host. Set the severity
level threshold to informational and language to English. Permit information output from
all modules.
[Quidway] info-center loghost 202.38.1.10 facility local7 language english
[Quidway] info-center source default channel loghost log level informational
2)
Configure the log host:
Step 1: Execute the following commands as the superuser (root user).
# mkdir /var/log/Quidway
# touch /var/log/Quidway/information
Network
Network
Huawei Technologies Proprietary
1-15
Chapter 1 Information Center
PC
PC

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents