Operation Manual - System Management
Quidway S3000-EI Series Ethernet Switches
Chapter 4 System Maintenance and Debugging
Huawei Technologies Proprietary
4-28
Step 2: Edit file /etc/syslog.conf as the super user (root), add the following
selector/actor pairs.
# Quidway configuration messages
local4.info /var/log/Quidway/information
Note:
Note the following points when editing /etc/syslog.conf:
z
The note must occupy a line and start with the character #.
z
There must be a tab other than a space as the separator in selector/actor pairs.
z
No redundant space after file name.
z
The device name and the acceptant log information level specified in
/etc/syslog.conf must be consistent with info-center loghost and info-center loghost
a.b.c.d facility configured on the switch. Otherwise, the log information probably
cannot be output to the loghost correctly.
Step 3: After the establishment of information (log file) and the revision of
/etc/syslog.conf, you should send a HUP signal to syslogd (system daemon), through
the following command, to make syslogd reread its configuration file /etc/syslog.conf.
# ps -ae | grep syslogd
147
# kill -HUP 147
After the above operation, the switch system can record information in related log files.
Note:
To configure facility, severity, filter and the file syslog.conf synthetically, you can get
classification in great detail and filter the information.
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