Operation Manual - System Management
Quidway S6500 Series Ethernet Switches Chapter 4 System Maintenance and Debugging
Huawei Technologies Proprietary
4-31
4.5.12 Configuration examples of sending log to Linux loghost
I. Networking Requirement
The networking requirement are as follows:
z Sending the log information of the switch to Linux loghost
z The IP address of the loghost is 202.38.1.10
z The information with the severity level above informational will be sent to the
loghost
z The output language is English
z All modules are allowed to output information
II. Networking diagram
Switch
PC
Network
SwitchSwitch
PC
Network
Figure 4-3 Schematic diagram of configuration
III. Configuration steps
1) Configuration steps
# Enabling info-center
[Quidway] info-center enable
# Set the host with the IP address of 202.38.1.10 as the loghost; set the severity level
threshold value as informational, set the output language to English; set all the modules
are allowed output information.
[Quidway] info-center loghost 202.38.1.10 facility local7 language english
[Quidway] info-center source default channel loghost log level informational
2) Configuration on the loghost
This configuration is performed on the loghost.
Step 1: Perform the following command as the super user (root).
# mkdir /var/log/Quidway
# touch /var/log/Quidway/information
Step 2: Edit file /etc/syslog.conf as the super user (root), add the following
selector/actor pairs.