# kill -HUP 147
After all the above operations, the switch can make records in the corresponding log file.
Through combined configuration of the device name (facility), information severity level threshold
the file “syslog.conf”, you can sort information precisely for filtering.
(severity), module name (filter) and
Log Output to a
nts
g host whose IP address is 202.38.1.10:
s”.
Linux Log Host
Network requireme
The switch sends the following log information to the Linux lo
All modules' log information, with severity higher than “error
Network diagram
Figure 59-2
Network diagram for log output to a Linux log host
Configuration procedure
r than error to the log host.
ug state off trap
on
ser (root user) to add the following selector/action
airs.
# Switch configuration messages
local7.info /var/log/Switch/information
1) Configure the switch:
# Enable the information center.
<Switch> system-view
[Switch] info-center enable
# Configure the host whose IP address is 202.38.1.10 as the log host. Permit all modules to output log
information with severity level highe
[Switch] info-center loghost 202.38.1.10 facility local7
[Switch] info-center source default channel loghost log level errors deb
state off
2) Configure the log host:
Step 1: Execute the following commands as a super user (root user).
# mkdir /var/log/Switch
# touch /var/log/Switch/informati
Step 2: Edit the file “/etc/syslog.conf” as the super u
p
59-17