H3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)

HomeSupportSwitchesH3C S5500 Switch SeriesConfigure & DeployConfiguration ExamplesH3C Low-End and Mid-Range Ethernet Switches Configuration Examples(V1.01)
Table of Contents
Related Documents
33-Information Center Configuration Guide
Title Size Download
33-Information Center Configuration Guide 72.33 KB

Information Center Overview

Acting as the system information hub, information center classifies and manages system information. Used with debug commands, it provides powerful support for network administrators and developers in monitoring network performance and diagnosing network problems.

Configuring to Output 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

l          Send log information of the switch to the Unix log host with an IP address of 202.38.1.10;

l          Log information with severity higher than informational will be output to the log host;

l          The source modules are ARP and IP.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

Release 6300

All versions

S3500-EA Series Ethernet Switches

Release 5303

All versions

 

Configuration Procedure

l          Configure the switch

# Enable information center.

<Sysname> system-view

[Sysname] info-center enable

# By default, the system outputs system information of all modules to channel loghost. To acquire the system information from ARP and IP modules only, you need to disable the information output of all modules to channel loghost first.

[Sysname] undo info-center source default channel loghost

# Specify the host with IP address 202.38.1.10 as the log host. Log information with severity equal or higher than informational will be output to the log host. The source modules are ARP and IP.

[Sysname] info-center loghost 202.38.1.10 facility local4

[Sysname] info-center source arp channel loghost log level informational debug state off trap state off

[Sysname] info-center source ip channel loghost log level informational debug state off trap state off

l          Configure the log host

The following configurations were performed on SunOS 4.0, which has similar configurations to the Unix operating systems implemented by other vendors.

# Execute the following commands as a root user.

# mkdir /var/log/Sysname

# touch /var/log/Sysname/information

# Edit file /etc/syslog.conf and add the following selector/action pairs.

# Sysname configuration messages

local4.info    /var/log/Sysname/information

# After log file information is created and file /etc/syslog.conf is modified, you need to issue the following commands, and then by receiving a HUP signal, the daemon syslogd will read its configuration file /etc/syslog.conf again.

# ps -ae | grep syslogd

147

# kill -HUP 147

Complete Configuration

l          Configure 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          Configure the log host

#

# mkdir /var/log/Sysname

# touch /var/log/Sysname/information

# Sysname configuration messages

local4.info    /var/log/Sysname/information

#

# ps -ae | grep syslogd

147

# kill -HUP 147

Configuration Guidelines

Follow these guidelines when editing file /etc/syslog.conf:

l          Comments must be on a separate line and begin with the # sign.

l          Separate the selector/action pairs with a tab, instead of a space.

l          No redundant spaces are allowed after the file name.

l          The logging device name and the information level specified in /etc/syslog.conf file must be the same with those configured on the switch using the info-center loghost and info-center source commands; otherwise the log information may not be output properly to the log host.

Configuring to Output 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

l          Send log information of the switch to the Linux log host with an IP address of 202.38.1.10;

l          Log information with severity higher than errors will be output to the log host;

l          All modules can output log information.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

Release 6300

All versions

S3500-EA Series Ethernet Switches

Release 5303

All versions

 

Configuration Procedure

l          Configure the switch

# Enable information center.

<Sysname> system-view

[Sysname] info-center enable

# Specify the host with IP address 202.38.1.10 as the log host. Log information with severity equal or higher than errors will be output to the log host. All modules can output log information.

[Sysname] info-center loghost 202.38.1.10 facility local7

[Sysname] info-center source default channel loghost log level errors debug state off trap state off

l          Configure the log host

# Execute the following commands as a root user.

# mkdir /var/log/Sysname

# touch /var/log/Sysname/information

# Edit file /etc/syslog.conf and add selector/action pairs.

# Sysname configuration messages

local7.info    /var/log/Sysname/information

# After log file information is created and file /etc/syslog.conf is modified, you need to issue the following commands to display the process ID of daemon syslogd, kill the syslogd progress, and then restart syslogd using the –r option.

# ps -ae | grep syslogd

147

# kill -9 147

# syslogd -r &

Complete Configuration

l          Configure the switch

#

 info-center source default channel 2 log level error trap state off

 info-center loghost 202.38.1.10

l          Configure the log host

#

# mkdir /var/log/Sysname

# touch /var/log/Sysname/information

# Sysname configuration messages

local7.info    /var/log/Sysname/information

#

# ps -ae | grep syslogd

147

# kill -9 147

# syslogd -r &

Configuration Guidelines

Ensure that the daemon syslogd is started with the –r option on a Linux log host.

Follow these guidelines when editing file /etc/syslog.conf:

l          Comments must be on a separate line and begin with the # sign.

l          Separate the selector/action pairs with a tab, instead of a space.

l          No redundant spaces are allowed after the file name.

l          The logging device name and the information level specified in /etc/syslog.conf file must be the same with those configured on the switch using the info-center loghost and info-center source commands; otherwise the log information may not be output properly to the log host.

Configuring to Output Log Information to the Console

Network Diagram

Figure 1-3 Network diagram for sending log information to the console

 

Networking and Configuration Requirements

l          Log information with a severity higher than informational will be output to the console;

l          The source modules are ARP and IP.

Applicable Product Matrix

Product series

Software version

Hardware version

S3610 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5510 Series Ethernet Switches

Release 5301

Release 5303

All versions

S5500-SI Series Ethernet Switches

Release 1207

All versions except S5500-20TP-SI

Release 1301

S5500-20TP-SI

S5500-EI Series Ethernet Switches

Release 2102

All versions

S7500E Series Ethernet Switches

Release 6100

Release 6300

All versions

S3500-EA Series Ethernet Switches

Release 5303

All versions

 

Configuration Procedure

# Enable information center.

<Sysname> system-view

[Sysname] info-center enable

# By default, the system outputs system information of all modules to channel console. To acquire the information of ARP and IP modules only, you need to disable the information output of all modules to channel console first.

[Sysname] undo info-center source default channel console

# Configure the information output to the console. Log information with severity level equal or higher than informational will be output to the console. The source modules are ARP and IP.

[Sysname] info-center console channel console

[Sysname] info-center source arp channel console log level informational debug state off trap state off

[Sysname] info-center source ip channel console log level informational debug state off trap state off

# Enable the display of log information on a terminal display.

<Sysname> terminal monitor

<Sysname> 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

Configuration Guidelines

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
新华三官网