- Table of Contents
-
- H3C Low-End Ethernet Switches Configuration Guide(V1.01)
- 01-Login Configuration Guide
- 02-VLAN Configuration Guide
- 03-IP Address Configuration Guide
- 04-Voice VLAN Configuration Guide
- 05-GVRP Configuration Guide
- 06-Ethernet Interface Basic Configuration Guide
- 07-Link Aggregation Configuration Guide
- 08-Port Isolation Configuration Guide
- 09-Port Security Configuration Guide
- 10-Port Binding Configuration Guide
- 11-MAC Address Table Management Configuration Guide
- 12-DLDP Configuration Guide
- 13-Auto Detect Configuration Guide
- 14-MSTP Configuration Guide
- 15-Routing Configuration Guide
- 16-Multicast Configuration Guide
- 17-802.1x Configuration Guide
- 18-AAA Configuration Guide
- 19-MAC Authentication Configuration Guide
- 20-VRRP Configuration Guide
- 21-ARP Configuration Guide
- 22-DHCP Configuration Guide
- 23-ACL Configuration Guide
- 24-QoS-QoS Profile Configuration Guide
- 25-Web Cache Redirection Configuration Guide
- 26-Mirroring Configuration Guide
- 27-IRF Configuration Guide
- 28-Cluster Configuration Guide
- 29-PoE-PoE Profile Configuration Guide
- 30-UDP Helper Configuration Guide
- 31-SNMP-RMON Configuration Guide
- 32-NTP Configuration Guide
- 33-SSH Configuration Guide
- 34-FTP and TFTP Configuration Guide
- 35-Information Center Configuration Guide
- 36-VLAN-VPN Configuration Guide
- 37-HWPing Configuration Guide
- 38-DNS Configuration Guide
- 39-Access Management Configuration Guide
- 40-Web Authentication Configuration Guide
- 41-IPv6 Management Configuration Guide
- 42-Smart link - Monitor Link Configuration Guide
- 43-VLAN Mapping Configuration Guide
- Related Documents
-
Title | Size | Download |
---|---|---|
35-Information Center Configuration Guide | 537.84 KB |
1 Information Center Configuration Guide
Outputting Log Information to a Unix Log Host
Networking and Configuration Requirements
Outputting Log Information to a Linux Log Host
Networking and Configuration Requirements
Outputting Log and Trap Information to a Log Host Through the Same Channel
Networking and Configuration Requirements
Outputting Log Information to the Console
Networking and Configuration Requirements
Displaying the Time Stamp with the UTC Time Zone
Networking and Configuration Requirements
Use of the Facility Argument in Log Information Output
Networking and Configuration Requirements
Outputting Log Information to a Unix Log Host
Network Diagram
Figure 1-1 Network diagram for outputting log information to a Unix log host
Networking and Configuration Requirements
Send log information with severity higher than informational to a Unix log host with an IP address of 202.38.1.10. The information source modules are ARP and IP.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
l Configuration on the switch.
# Enable the information center.
<H3C> system-view
[H3C] info-center enable
# By default, the system outputs information of all modules to the loghost channel. To obtain the system information of the ARP and IP modules, you need to disable the output of information of all modules to the log host.
[H3C] undo info-center source default channel loghost
# Set the host with an IP address of 202.38.1.10 to be the log host, set the severity to informational, and the information source modules to ARP and IP.
[H3C] info-center loghost 202.38.1.10 facility local4
[H3C] info-center source arp channel loghost log level informational debug state off trap state off
[H3C] info-center source ip channel loghost log level informational debug state off trap state off
l Configuration on the log host.
The following configurations were performed on SunOS 4.0 which has similar configurations with the Unix operating systems implemented by other vendors.
# Execute the following commands as a root user.
# mkdir /var/log/H3C
# touch /var/log/H3C/information
# Edit the file /etc/syslog.conf as a root user and add the following selector/action pairs.
# H3C configuration messages
local4.info /var/log/H3C/information
# After the log file information has been created and the configuration file /etc/syslog.conf has been modified, ensure that the configuration file /etc/syslog.conf is reread by executing the following commands:
# ps -ae | grep syslogd
147
# kill -HUP 147
Complete Configuration
l Configuration on the switch.
#
info-center source ARP channel 2 trap state off
info-center source IP channel 2 trap state off
undo info-center source default channel 2
info-center loghost 202.38.1.10 facility local4
l Configuration on the log host.
#
# mkdir /var/log/H3C
# touch /var/log/H3C/information
# H3C configuration messages
local4.info /var/log/H3C/information
#
# ps -ae | grep syslogd
147
# kill -HUP 147
Precautions
Note the following issues while editing the /etc/syslog.conf file:
l Comments must be on a separate line and must begin with the # sign.
l The selector/action pair must be separated with a tab key, rather than a space.
l No redundant spaces are allowed in the file name.
l The device name and the accepted severity of log information specified by the /etc/syslog.conf file must be identical to those configured on the device using the info-center loghost and info-center source commands; otherwise the log information may not be output properly to the log host.
Outputting Log Information to a Linux Log Host
Network Diagram
Figure 1-2 Network diagram for outputting log information to a Linux log host
Networking and Configuration Requirements
Send log information to a Linux log host with an IP address of 202.38.1.10; Log information with severity higher than errors will be output to the log host; The information source modules are all modules.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
l Configuration on the switch.
# Enable the information center.
<H3C> system-view
[H3C] 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.
[H3C] info-center loghost 202.38.1.10 facility local7
[H3C] info-center source default channel loghost log level errors debug state off trap state off
l Configuration on the log host.
# Execute the following commands as a root user.
# mkdir /var/log/H3C
# touch /var/log/H3C/information
# Edit the file /etc/syslog.conf as a root user and add the following selector/action pairs.
# H3C configuration messages
local7.info /var/log/H3C/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.
# ps -ae | grep syslogd
147
# kill -9 147
# syslogd -r &
Complete Configuration
l Configuration on the switch.
#
info-center source default channel 2 log level error trap state off
info-center loghost 202.38.1.10
l Configuration on the log host.
#
# mkdir /var/log/H3C
# touch /var/log/H3C/information
# H3C configuration messages
local7.info /var/log/H3C/information
#
# ps -ae | grep syslogd
147
# kill -9 147
# syslogd -r &
Precautions
Ensure that the syslogd process is started with the -r option on a Linux log host.
Note the following issues while editing the /etc/syslog.conf file:
l Comments must be on a separate line and must begin with the # sign.
l The selector/action pair must be separated with a tab key, rather than a space.
l No redundant spaces are allowed in the file name.
l The device name and the accepted severity of log information specified by the /etc/syslog.conf file must be identical to those configured on the device using the info-center loghost and info-center source commands; otherwise the log information may not be output properly to the log host.
Outputting Log and Trap Information to a Log Host Through the Same Channel
Network Diagram
Networking and Configuration Requirements
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
l Configuration on the switch.
# Enable the information center.
<H3C> system-view
[H3C] info-center enable
# The system outputs information of all modules through channel6 by default. Therefore, you need to disable the function first.
[H3C] undo info-center source default channel channel6
# Set the host with an IP address of 10.153.116.65 to be the log host, set to send log and trap information with severity higher than informational to the log host through the same channel channel6, and set the information source module to L2INF.
[H3C] info-center loghost 10.153.116.65 channel 6
[H3C] info-center source L2INF channel 6 log level informational state on trap level informational state on debug state off
l Configuration on the log host.
For the configuration of the log host, see
Configuration Procedure and Configuration Procedure.
The following takes receiving log information through log host software on a Windows operating system as an example:
# The log host software used in this example is TFTPD32, the version of which is as follows:
# Open the TFTPD32 application program on the Windows operating system as shown in the following figure:
1) Current Directory indicates the directory of the log file syslog.txt. You can click the Browse button to set it. In this example, the directory is D:\Tools\TFTP.
2) Server interface indicates the IP address of the log host. It is 10.153.116.65 in this example.
3) Select the syslog server tab.
# The system information with the required severity level will be output to the log host as shown in the following figure:
# After receiving the system information, the log host will save it in the log file syslog.txt under D:\Tools\TFTP. You can view the saved system information as shown in the following figure (the information in the blue colour is the L2INF module trap information received by the log host):
Complete Configuration
#
info-center source L2INF channel 6
undo info-center source default channel 6
info-center loghost 10.153.116.65 channel 6
Precautions
On the Windows operating system, software settings vary with log host software.
Outputting Log Information to the Console
Network Diagram
Figure 1-4 Network diagram for outputting log information to the console
Networking and Configuration Requirements
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
# Enable the information center.
<H3C> system-view
[H3C] info-center enable
# By default, the system outputs information of all modules to the console. Therefore, to obtain the system information of the ARP and IP modules, you need to disable the output of information of all modules to the console.
[H3C] undo info-center source default channel console
# Set the severity to informational, and the information source modules to ARP and IP.
[H3C] info-center console channel console
[H3C] info-center source arp channel console log level informational debug state off trap state off
[H3C] info-center source ip channel console log level informational debug state off trap state off
# Enable terminal display.
<H3C> terminal monitor
<H3C> terminal logging
Complete Configuration
#
info-center source ARP channel 0 trap state off
info-center source IP channel 0 trap state off
undo info-center source default channel 0
Precautions
Displaying the Time Stamp with the UTC Time Zone
Network Diagram
Figure 1-5 Network diagram for displaying the time stamp with the UTC time zone
Networking and Configuration Requirements
l The switch is in the time zone of GMT+ 08:00:00.
l The time stamp format of output log information is date.
l UTC time zone will be added to the output information of the information center.
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
# Name the local time zone z8 and set it to eight hours ahead of UTC time.
<H3C> clock timezone z8 add 08:00:00
# Set the time stamp format of output log information to date.
<H3C> system-view
[H3C] info-center timestamp loghost date
# Configure to add UTC time to the output information of the information center.
[H3C] info-center timestamp utc
Complete Configuration
#
info-center timestamp utc
Precautions
Use of the Facility Argument in Log Information Output
Network Diagram
Figure 1-6 Network diagram for use of the facility argument in log information output
Networking and Configuration Requirements
Network Requirements Analysis
Applicable Product Matrix
Product series |
Software version |
Hardware version |
S5600 series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S5100-SI/EI series Ethernet switches |
Release 2200, Release 2201 |
All versions |
S3600-SI/EI series Ethernet switches |
Release 1510, Release 1602 |
All versions |
S3100-EI series Ethernet switches |
Release 2104, Release 2107 |
All versions |
S3100-C-SI series Ethernet switches S3100-T-SI series Ethernet switches |
Release 0011, Release 2102, Release 2107 |
All versions |
S3100-TP-SI series Ethernet switches |
Release 2102, Release 2107 |
All versions( except S3100-52TP-SI) |
S3100-52TP-SI |
Release 2106, Release 2107 |
S3100-52TP-SI |
S3100-52P |
Release 1500, Release 1602 |
S3100-52P |
Configuration Procedure
l Perform the following configurations on Switch A.
[SwitchA]info-center enable
[SwitchA]info-center source default channel loghost log level debugging
[SwitchA]info-center loghost 192.168.0.208 facility local0 channel loghost
l You can know the running status of all the devices by filtering information through the facility keyword.
Complete Configuration
l Configuration on Switch A.
#
info-center source default channel 2 log level debugging
info-center loghost 192.168.0.208 facility local0
l Configuration on Switch B, Switch C, Switch D and Switch E.
Precautions
None