H3C S7500 Series Operation Manual page 879

Hide thumbs Also See for S7500 Series:
Table of Contents

Advertisement

Operation Manual – Information Center
H3C S7500 Series Ethernet Switches
The operations here are performed on SunOS 4.0. The operations on other
manufacturers' Unix operation systems are similar.
Step 1: Execute the following commands as a superuser (root user).
# mkdir /var/log/H3C
# touch /var/log/H3C/information
Step 2: Edit the file "/etc/syslog.conf" as a superuser (root user) to add the following
selector/action pair.
# H3C configuration messages
local4.info
Note:
When you edit the file "/etc/syslog.conf", note that:
A note must start in a new line following a "#" sign.
In each pair, a tab rather than a space should be used to separate the pair.
No space is allowed at the end of a file name.
The facility and received log information severity level specified in the file
"/etc/syslog.conf" must be the same as those corresponding parameters 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.
Note:
Through combined configuration of the device name (facility), information severity
threshold (severity), module name (filter) and file "syslog.conf", you can sort
information precisely for filtering.
/var/log/H3C/information
1-15
Chapter 1 Information Center

Advertisement

Table of Contents
loading

Table of Contents