
Information Center Configuration Examples
465
Network diagram
Figure 154
Network diagram for log output to a Linux log host
Configuration procedure
1
Configure the switch:
# Enable the information center.
<Switch> system-view
[Switch] info-center enable
# Configure the host whose IP address is 202.38.1.10 as the log host. Permit all
modules to output log information with severity level higher than error to the log
host.
[Switch] info-center loghost 202.38.1.10 facility local7
[Switch] info-center source default channel loghost log level errors
debug state off trap state off
2
Configure the log host:
Step 1: Execute the following commands as a 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
local7.info /var/log/Switch/information
n
Note the following items when you edit file "/etc/syslog.conf".
■
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 permitted at the end of the file name.
■
The device name (facility) and received log information severity specified in file
"/etc/syslog.conf" must be the same with those corresponding parameters
configured in 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 commands to view the process ID of the system
daemon "syslogd", stop the process, and then restart the daemon "syslogd" in
the background with the "-r" option.
# ps -ae | grep syslogd
147
# kill -9 147
# syslogd -r &
In case of Linux log host, the daemon "syslogd" must be started with the "-r"
option.
Internet
PC
Switch
Содержание 4210 PWR
Страница 10: ...Password Control Configuration 556 Displaying Password Control 563 Password Control Configuration Example 564...
Страница 22: ...20 CHAPTER 1 CLI CONFIGURATION...
Страница 74: ...72 CHAPTER 3 CONFIGURATION FILE MANAGEMENT...
Страница 84: ...82 CHAPTER 5 VLAN CONFIGURATION...
Страница 96: ...94 CHAPTER 8 IP PERFORMANCE CONFIGURATION...
Страница 108: ...106 CHAPTER 9 PORT BASIC CONFIGURATION...
Страница 122: ...120 CHAPTER 11 PORT ISOLATION CONFIGURATION...
Страница 140: ...138 CHAPTER 13 MAC ADDRESS TABLE MANAGEMENT...
Страница 234: ...232 CHAPTER 17 802 1X CONFIGURATION...
Страница 246: ...244 CHAPTER 20 AAA OVERVIEW...
Страница 270: ...268 CHAPTER 21 AAA CONFIGURATION...
Страница 292: ...290 CHAPTER 26 DHCP BOOTP CLIENT CONFIGURATION...
Страница 318: ...316 CHAPTER 29 MIRRORING CONFIGURATION...
Страница 340: ...338 CHAPTER 30 CLUSTER...
Страница 362: ...360 CHAPTER 33 SNMP CONFIGURATION...
Страница 368: ...366 CHAPTER 34 RMON CONFIGURATION...
Страница 450: ...448 CHAPTER 39 TFTP CONFIGURATION...
Страница 451: ......
Страница 452: ...450 CHAPTER 39 TFTP CONFIGURATION...
Страница 470: ...468 CHAPTER 40 INFORMATION CENTER...
Страница 496: ...494 CHAPTER 44 DEVICE MANAGEMENT...