Log Output To A Linux Log Host - H3C S7500 Series Operation Manual

Hide thumbs Also See for S7500 Series:
Table of Contents

Advertisement

Operation Manual – Information Center
H3C S7500 Series Ethernet Switches

1.4.2 Log Output to a Linux Log Host

I. 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 a severity higher than
"errors".
II. Network diagram
Switch
Figure 1-2 Network diagram for log output to a Linux log host
III. Configuration procedure
1)
Configure the switch:
# Enable the information center.
<H3C> system-view
[H3C] 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 a severity higher
than "error" to the log host.
[H3C] info-center loghost 202.38.1.10 facility local7 language english
[H3C] 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 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
local7.info
Network
/var/log/H3C/information
1-16
Chapter 1 Information Center
PC

Advertisement

Table of Contents
loading

Table of Contents