beautypg.com

Outputting log information to the console, Network requirements – H3C Technologies H3C WX3000E Series Wireless Switches User Manual

Page 78

background image

69

# Configure an output rule to output to the log host the log information that has a severity level of

at least informational.

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

on

2.

Configure the log host:

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
Device 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

local5.info /var/log/AP/info.log

In the above configuration, local5 is the name of the logging facility used by the log host to receive

logs. info is the information level. The Linux system will record the log information with severity

level equal to or higher than informational to file /var/log/AP/info.log.

NOTE:

Be aware of the following issues while editing file /etc/syslog.conf:

Comments must be on a separate line and begin with the # sign.

No redundant spaces are allowed after the file name.

The logging facility name and the information level specified in the /etc/syslog.conf file must be
identical to those configured on the device by using the info-center loghost and info-center source

commands. Otherwise, the log information might not be output properly to the log host.

d.

Display the process ID of syslogd, kill the syslogd process, and restart syslogd using the -r
option to make the modified configuration take effect.

# ps -ae | grep syslogd

147

# kill -9 147

# syslogd -r &

Make sure that the syslogd process is started with the -r option on a Linux log host.
Now, the system can record log information into the log file.

Outputting log Information to the Console

Network requirements

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

Figure 26 Network diagram

AP

PC

Console

This manual is related to the following products: