Operation Manual - System Management
Quidway S3000-EI Series Ethernet Switches
Chapter 4 System Maintenance and Debugging
Huawei Technologies Proprietary
4-27
4.5.11 Configuration examples of sending log to Unix loghost
I. Networking Requirement
The networking requirement are as follows:
z
Sending the log information of the switch to Unix 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
The modules that allowed to output information are ARP and IP
II. Networking diagram
Switch
PC
Network
Switch
Switch
PC
Network
Figure 4-2
Schematic diagram of configuration
III. Configuration steps
1)
Configuration on the switch
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 that the
modules which are allowed to output information are ARP and IP.
[Quidway] info-center loghost 202.38.1.10 facility local4 language english
[Quidway] info-center source arp channel loghost log level informational
[Quidway] info-center source ip channel loghost log level informational
2)
Configuration on the loghost
This configuration is performed on the loghost. The following example is performed on
SunOS 4.0 and the operation on Unix operation system produced by other
manufactures is generally the same to the operation on SunOS 4.0.
Step 1: Perform the following command as the super user (root).
# mkdir /var/log/Quidway
# touch /var/log/Quidway/information