H3C S7500E Series Ethernet Switches Operation Manual

Operation Manual – Information Center
H3C S7500E Series Ethernet Switches Chapter 1 Information Center Configuration
1-18
# MyDevice configuration messages
local4.info /var/log/MyDevice/information
Note:
Be aware of the following issues while editing the /etc/syslog.conf file:
z Comments must be on a separate line and must begin with the # sign.
z The selector/action pair must be separated with a tab key, rather than a space.
z No redundant spaces are allowed in the file name.
z The device name and the accepted severity of log information specified by the
/etc/syslog.conf file must be identical to those configured on the device using the
info-center loghost or info-center source command; otherwise the log
information may not be output properly to the log host.
Step three: After the log file information has been created and the configuration file
/etc/syslog.conf has been modified, ensure that the configuration file /etc/syslog.conf is
reread:
# ps -ae | grep syslogd
147
# kill -HUP 147
After the above configurations, the system will be able to keep log information in the
related file.
1.4.2 Outputting Log Information to a Linux Log Host
I. Network requirements
z Send log information to a Linux log host with an IP address of 1.2.0.1/16;
z Log information with severity higher than informational will be output to the log
host;
z All modules can output log information.
II. Network diagram
Figure 1-2 Network diagram for outputting log information to a Linux log host
III. Configuration procedure
Before configuration, make sure that there is a route between Device and PC.