Outputting Log Information To The Console - HP 5500 EI Series Configuration Manual

Hide thumbs Also See for 5500 EI Series:
Table of Contents

Advertisement

# mkdir /var/log/Device
# touch /var/log/Device/info.log
c.
Edit the file /etc/syslog.conf and add the following contents.
# Device configuration messages
local5.info
In this configuration, local5 is the name of the logging facility that the log host uses to receive logs. The
information level is info. The Linux system records the log information that has a severity level of at least
informational to the file /var/log/Device/info.log.
NOTE:
Be aware of the following issues while editing the file /etc/syslog.conf:
Comments must be on a separate line and must begin with a pound 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 may not be output properly to the log host.
d.
Display the process ID of syslogd, kill the syslogd process, and restart syslogd by using the -r
option to make the modified configuration take effect.
# ps -ae | grep syslogd
147
# kill -9 147
# syslogd -r &
Make sure the syslogd process is started with the -r option on the Linux log host.
Now, the system can record log information into the log file.

Outputting log information to the console

Network requirements
Configure the device to send ARP and IP log information that has a severity level of at least informational
to the console.
Figure 20 Network diagram
Configuration procedure
# Enable the information center.
<Sysname> system-view
[Sysname] info-center enable
/var/log/Device/info.log
56

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5500 si series

Table of Contents