beautypg.com

4 information center configuration examples, 1 log output to a unix log host, I. network requirements – H3C Technologies H3C S3100 Series Switches User Manual

Page 566: Ii. network diagram, Iii. configuration procedure, 4 information center configuration examples -15, 1 log output to a unix log host -15

background image

Operation Manual – Information Center

H3C S3100-52P Ethernet Switch

Chapter 1 Information Center

1-15

1.4 Information Center Configuration Examples

1.4.1 Log Output to a UNIX Log Host

I. Network requirements

The switch sends the following log information in English to the UNIX log host whose IP
address is 202.38.1.10: the log information of the two modules ARP and IP, with
severity higher than “informational”.

II. Network diagram

Network

Network

Switch

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

Network

UNIX 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

UNIX host

t

Figure 1-1

Network diagram for log output to a Unix log hos

III. Configuration procedure

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

system-view

[H3C] info-center enable

# Disable the function of outputting information to log host channels.

[H3C] undo info-center source default channel loghost

# Configure the host whose IP address is 202.38.1.10 as the log host. Set the output
language to English. Permit ARP and IP modules to output information with severity
level higher than informational to the log host.

[H3C] info-center loghost 202.38.1.10 facility local4 language english

[H3C] info-center source arp channel loghost log level informational debug

state off trap state off

[H3C] info-center source ip channel loghost log level informational debug state

off trap state off

2) Configure the log host:
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 the super user (root user).

# mkdir /var/log/H3C

# touch /var/log/H3C/information