342
C
12: F
S
HAPTER
ILE
Configuration Examples
for Sending Log to Linux
Loghost
M
YSTEM
ANAGEMENT
(3) No redundant space after file name.
(4) 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.
c After the establishment of information (log file) and the revision of
/etc/syslog.conf
daemon), through the following command, to make syslogd reread its
configuration file
# ps -ae | grep syslogd
147
# kill -HUP 147
After the above operation, the Switch system can record information in related
log files.
To configure facility, severity, filter and the file syslog.conf synthetically, you can
get classification in great detail and filter the information.
Networking Requirement
The networking requirements are as follows:
Sending the log information of the Switch to Linux loghost
■
The IP address of the loghost is 202.38.1.10
■
The information with the severity level above informational will be sent to the
■
loghost
The output language is English
■
All modules are allowed to output information
■
Networking diagram
Figure 87 Schematic Diagram of Configuration
Switch
Switch
Switch
Configuration Procedure
1 Enabling info-center
[SW5500]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.
, you should send a HUP signal to
.
/etc/syslog.conf
Network
Network
(system
syslogd
PC
PC