H3C Low-End Ethernet Switches Configuration Guide(V1.01)

HomeSupportSwitchesH3C S3600 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End Ethernet Switches Configuration Guide(V1.01)
Table of Contents
Related Documents
35-Information Center Configuration Guide
Title Size Download
35-Information Center Configuration Guide 537.84 KB

Table of Contents

1 Information Center Configuration Guide· 1-1

Outputting Log Information to a Unix Log Host 1-1

Network Diagram·· 1-1

Networking and Configuration Requirements· 1-1

Applicable Product Matrix· 1-1

Configuration Procedure· 1-1

Complete Configuration· 1-2

Precautions· 1-3

Outputting Log Information to a Linux Log Host 1-3

Network Diagram·· 1-3

Networking and Configuration Requirements· 1-3

Applicable Product Matrix· 1-3

Configuration Procedure· 1-3

Complete Configuration· 1-4

Precautions· 1-4

Outputting Log and Trap Information to a Log Host Through the Same Channel 1-5

Network Diagram·· 1-5

Networking and Configuration Requirements· 1-5

Applicable Product Matrix· 1-5

Configuration Procedure· 1-5

Complete Configuration· 1-7

Precautions· 1-7

Outputting Log Information to the Console· 1-7

Network Diagram·· 1-7

Networking and Configuration Requirements· 1-7

Applicable Product Matrix· 1-8

Configuration Procedure· 1-8

Complete Configuration· 1-8

Precautions· 1-8

Displaying the Time Stamp with the UTC Time Zone· 1-9

Network Diagram·· 1-9

Networking and Configuration Requirements· 1-9

Applicable Product Matrix· 1-9

Configuration Procedure· 1-9

Complete Configuration· 1-10

Precautions· 1-10

Use of the Facility Argument in Log Information Output 1-10

Network Diagram·· 1-10

Networking and Configuration Requirements· 1-10

Network Requirements Analysis· 1-10

Applicable Product Matrix· 1-11

Configuration Procedure· 1-11

Complete Configuration· 1-11

Precautions· 1-11

 


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

Figure 1-3 Network diagram for outputting log and trap information to a log host through the same channel

 

Networking and Configuration Requirements

Send log and trap information with severity higher than informational to the log host through the same channel channel6. The information source module is L2INF (interface management module).

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

Log information with a severity higher than informational will be output to the console, and 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

# 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

None

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

None

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

Multiple switches in a LAN send log information to the same log host. You can know the running status of each switch by displaying log information received.

Network Requirements Analysis

As multiple switches send log information to the same log host, you can set different values of the facility keyword for each switch to filter information on the log host, thus avoiding failure in recognizing information source (for example, if the two hosts have the same name and the facility keywords are set to the default value local7, you cannot recognize the information source.).

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          Perform the same configurations on Switch B, Switch C, Switch D and Switch E, and specify the facility argument as local1, local2, local3 and local4 respectively.

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.

<Omitted>

Precautions

None

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网