Information center configuration examples, Outputting log information to a unix log host, Network requirements – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 76: Configuration procedure

Advertising
background image

67

Information Center Configuration Examples

Outputting Log Information to a UNIX Log Host

Network requirements

Configure the AP to send ARP and IP log information that has a severity level of at least informational to

the UNIX log host at 1.2.0.1/16.

Figure 24 Network diagram

Configuration procedure

Before the configuration, make sure that AP and PC can reach each other. (Details not shown.)

1.

Configure the AP:
# Enable the information center.

<Sysname> system-view

[Sysname] info-center enable

# Specify the log host 1.2.0.1/16, use channel loghost to output log information (optional,
loghost by default), and use local4 as the logging facility.

[Sysname] info-center loghost 1.2.0.1 channel loghost facility local4

# Disable the output of log, trap, and debugging information of all modules on channel loghost.

[Sysname] info-center source default channel loghost debug state off log state off

trap state off

To avoid outputting unnecessary information, disable the output of log, trap, and debugging
information on the specified channel (loghost in this example) before you configure an output rule.
# Configure an output rule to output to the log host ARP and IP log information that has a severity
level of at least informational.(Note that the source modules allowed to output information depend

on the AP model.)

[Sysname] info-center source arp channel loghost log level informational state on

[Sysname] info-center source ip channel loghost log level informational state on

2.

Configure the log host:
The following configurations were performed on SunOS 4.0 which has similar configurations to
the UNIX operating systems implemented by other vendors.

a.

Log in to the log host as a root user.

b.

Create a subdirectory named AP under directory /var/log/, and create file info.log under the
AP directory to save logs of AP.

# mkdir /var/log/AP

# touch /var/log/AP/info.log

c.

Edit file /etc/syslog.conf and add the following contents.

# Device configuration messages

local4.info /var/log/AP/info.log

Advertising
This manual is related to the following products: