464
C
HAPTER
40: I
NFORMATION
C
ENTER
# Configure the host whose IP address is 202.38.1.10 as the log host. Permit ARP
and IP modules to output information with severity level higher than informational
to the log host.
[Switch] info-center loghost 202.38.1.10 facility local4
[Switch] info-center source arp channel loghost log level informational debug
state off trap state off
[Switch] info-center source ip channel loghost log level informational debug
state off trap state off
2
Configure the log host:
The operations here are performed on SunOS 4.0. The operations on other
manufacturers’ Unix operation systems are similar.
Step 1: Execute the following commands as the super user (root user).
# mkdir /var/log/Switch
# touch /var/log/Switch/information
Step 2: Edit the file "/etc/syslog.conf" as the super user (root user) to add the
following selector/action pairs.
# Switch configuration messages
local4.info /var/log/Switch/information
n
When you edit the file "/etc/syslog.conf", note that:
■
A note must start in a new line, starting with a "#" sign.
■
In each pair, a tab should be used as a separator instead of a space.
■
No space is allowed at the end of a file name.
■
The device name (facility) and received log information severity level specified
in the file "/etc/syslog.conf" must be the same as those corresponding
parameters configured in the commands
info-center loghost
and
info-center source
. Otherwise, log information may not be output to the log
host normally.
Step 3: After the log file "information" is created and the file "/etc/syslog.conf" is
modified, execute the following command to send a HUP signal to the system
daemon "syslogd", so that it can reread its configuration file "/etc/syslog.conf".
# ps -ae | grep syslogd
147
# kill -HUP 147
After all the above operations, the switch can make records in the corresponding
log file.
n
Through combined configuration of the device name (facility), information severity
level threshold (severity), module name (filter) and the file "syslog.conf", you can
sort information precisely for filtering.
Log Output to a Linux
Log Host
Network requirements
The switch sends the following log information to the Linux log host whose IP
address is 202.38.1.10: All modules’ log information, with severity higher than
"errors".
Summary of Contents for Switch 4210 9-Port
Page 22: ...20 CHAPTER 1 CLI CONFIGURATION ...
Page 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT ...
Page 84: ...82 CHAPTER 5 VLAN CONFIGURATION ...
Page 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION ...
Page 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION ...
Page 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION ...
Page 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT ...
Page 234: ...232 CHAPTER 17 802 1X CONFIGURATION ...
Page 246: ...244 CHAPTER 20 AAA OVERVIEW ...
Page 270: ...268 CHAPTER 21 AAA CONFIGURATION ...
Page 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION ...
Page 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION ...
Page 340: ...338 CHAPTER 30 CLUSTER ...
Page 362: ...360 CHAPTER 33 SNMP CONFIGURATION ...
Page 368: ...366 CHAPTER 34 RMON CONFIGURATION ...
Page 450: ...448 CHAPTER 39 TFTP CONFIGURATION ...
Page 451: ......
Page 452: ...450 CHAPTER 39 TFTP CONFIGURATION ...
Page 470: ...468 CHAPTER 40 INFORMATION CENTER ...
Page 496: ...494 CHAPTER 44 DEVICE MANAGEMENT ...