Outputting Log Information to a Linux Log Host 313

Outputting Log

Information to a Linux

Log Host

Network Diagram Figure 106

Network diagram for outputting log information to a Linux log host

 

Network

Switch

Unix host

Networking and Send log information to a Linux log host with an IP address of 202.38.1.10; Log Configuration information with severity higher than errors will be output to the log host; The Requirements information source modules are all modules.

Applicable Products

Product series

Software version

Hardware version

 

 

 

Switch 5500

Release V03.02.04

All versions

Switch 5500G

Release V03.02.04

All versions

Switch 4500

Release V03.03.00

All versions

Switch 4210

Release V03.01.00

All versions

 

 

 

Configuration Procedure Configuration on the switch.

# Enable the information center.

<3Com> system-view

[3Com] info-center enable

#Set the host with an IP address of 202.38.1.10 to be the log host, set the severity to errors, and the information source modules to all modules.

[3Com] info-center loghost 202.38.1.10 facility local7

[3Com] info-center source default channel loghost log level errors d ebug state off trap state off

Configuration on the log host.

#Execute the following commands as a root user.

#mkdir /var/log/3Com

#touch /var/log/3Com/information

#Edit the file /etc/syslog.conf as a root user and add the following selector/action pairs.

#3Com configuration messages

local7.info /var/log/3Com/information

#After the log file information has been created and the /etc/syslog.conf file has been modified, execute the following commands to display the process ID of syslogd, terminate a syslogd process, and restart syslogd using the -r option.

Page 313
Image 313
3Com 5500G, 4210, 4200G manual Outputting Log Information to a Linux Log Host