3Com Switch 8800 Advanced Software V5 Configuration Guide

1132 CHAPTER 88: INFORMATION CENTER CONFIGURATION
# Disable the output of log, trap, and debug information of all modules to the log
host.
[Sysname] info-center source default channel loghost debug state off
log state off trap state off
c
CAUTION:
As the default system configurations for different channels vary, ensure that
the output of log, trap, and debug information for the specified channel
(loghost in this example) of all modules is disabled before the system
information can be output to meet the current network requirements.
Use the display channel command to display the state of a channel.
# Set the host with an IP address of 1.2.0.1/16 to be the log host, set the severity
to informational, language to English, and the source modules to be all modules.
[Sysname] info-center loghost 1.2.0.1 facility local7 language english
[Sysname] info-center source default channel loghost log level informational
2 Configuring the log host
Step 1: issue the following commands as a root user.
# mkdir /var/log/3Com
# touch /var/log/3Com/information
Step 2: Edit the file /etc/syslog.conf as a root user and add the following
selector/action pair.
# 3Com configuration messages
local7.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 the 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 /etc/syslog.conf
file has been modified, issue the following commands to display the process ID of
syslogd, terminate a syslogd process, and to restart syslogd using the -r option.
# ps -ae | grep syslogd
147
# kill -9 147
# syslogd -r &
n
Ensure that the syslogd process is started with the -r option on a Linux log host.
After the above configurations, the system will be able to keep log information in
the related file.