Outputting Log Information To The Console - HP 6125G Configuration Manual

Network management and monitoring configuration guide
Hide thumbs Also See for 6125G:
Table of Contents

Advertisement

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.
Display the process ID of syslogd, kill the syslogd process, and restart syslogd by using the -r
d.
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 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
# Use channel console to output log information to the console. (This step is optional because it is the
default setting.)
[Sysname] info-center console channel console
# Disable the output of log, trap, and debugging information of all modules on channel console.
[Sysname] info-center source default channel console debug state off log state off trap
state off
To avoid outputting unnecessary information, disable the output of log, trap, and debugging information
of all modules on the specified channel (console in this example), and then configure the output rule as
needed.
50

Advertisement

Table of Contents
loading

This manual is also suitable for:

6125 blade switch series

Table of Contents