3Com Switch 7750 Configuration Guide

Information Center Configuration Examples 827
configured in the commands info-center loghost and info-center source.
Otherwise, log information may not be output to the log host normally.
Step 3: After the log file “information” is created and the file “/etc/syslog.conf” is
modified, run the following command to send a HUP signal to the system daemon
“syslogd”, so that it reads its new configuration file “/etc/syslog.conf”.
# ps -ae | grep syslogd
147
# kill -HUP 147
After all the above operations, the switch can make records in the corresponding
log file.
n
Through combined configuration of the device name (facility), information severity
level threshold (severity), module name (filter) and file “syslog.conf”, you can sort
information precisely for filtering.
Log Output to a Linux
Log Host
Network requirements
The switch sends the following log information in English to the Linux log host
whose IP address is 202.38.1.10: All modules’ log information, with severity
higher than “errors”.
Network diagram
Figure 211 Network diagram for log output to a Linux log host
Configuration procedure
1 Configure the switch:
# Enable the information center.
<SW7750> system-view
[SW7750] info-center enable
# Configure the host whose IP address is 202.38.1.10 as the log host. Set the
output language to English. Permit all modules to output information with severity
level higher than error to the log host.
[SW7750] info-center loghost 202.38.1.10 facility local7 language english
[SW7750] info-center source default channel loghost log level errors debug state
off trap state off
2 Configure the log host:
Step 1: Execute the following commands as the superuser (root user).
# mkdir /var/log/3Com
# touch /var/log/3Com/information
Network
Linux loghostSwitch
202.38.1.10