3Com Switch 8800 Advanced Software V5 Configuration Guide
Information Center Configuration Examples 1131
# 3Com configuration messages
local4.info /var/log/3Com/information
n
Be aware of the following issues while editing the /etc/syslog.conf file:
■ Comments must be on a separate line and must begin with the # sign.
■ The selector/action pair must be separated with a tab key, rather than a space.
■ No redundant spaces are allowed in the file name.
■ 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.
ole and displays it on the console.
Outputting Log
Information to a Linux
Log Host
Network requirements
■ Send log information to a Linux log host with an IP address of 1.2.0.1/16;
■ Log information with severity higher than informational will be output to the
log host;
■ All modules can output log information.
Network diagram
Figure 332 Network diagram for outputting log information to a Linux log host
Configuration procedure
1 Configuring the device
# Enable information center.
<Sysname> system-view
[Sysname] info-center enable
# Specify the channel to output log information to the log host (optional, loghost
by default).
[Sysname] info-center loghost 1.2.0.1 channel loghost
Internet
Device
PC
1.1.0.1/16 1.2.0 .1/16