Outputting log information to a linux log host, Network requirements, Network diagram – H3C Technologies H3C WX6000 Series Access Controllers User Manual
Page 555: Configuration procedure

59-13
[Sysname] info-center source ip channel loghost log level informational state on
2) Configuring the log host
The following configurations were performed on SunOS 4.0 which has similar configurations to the Unix
operating systems implemented by other vendors.
Step 1: Issue the following commands as a root user.
# mkdir /var/log/MyDevice
# touch /var/log/MyDevice/information
Step 2: Edit the file /etc/syslog.conf as a root user and add the following selector/action pair.
# MyDevice configuration messages
local4.info /var/log/MyDevice/information
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.
Outputting Log Information to a Linux Log Host
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.
Network diagram
Figure 59-2
Network diagram for outputting log information to a Linux log host
Configuration procedure
Before configuration, make sure that there is a route between AC and PC.