beautypg.com

Ii. network diagram, Iii. configuration procedure – H3C Technologies H3C S3100 Series Switches User Manual

Page 568

background image

Operation Manual – Information Center

H3C S3100-52P Ethernet Switch

Chapter 1 Information Center

1-17

II. Network diagram

Network

Network

Switch

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Linux host

Network

Network

Network

Network

Switch

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Linux host

t

Figure 1-2

Network diagram for log output to a Linux log hos

III. Configuration procedure

1) Configure the switch:
# Enable the information center.

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 severity level 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 super user (root user).

# mkdir /var/log/H3C

# touch /var/log/H3C/information

Step 2: Edit the file “/etc/syslog.conf” as the super user (root user) to add the following
selector/action pairs.

# H3C configuration messages

local7.info /var/log/H3C/information