H3C S5500-SI Series Ethernet Switches Operation Manual-Release 1205-(V1.03)

HomeSupportSwitchesH3C S5500 Switch SeriesConfigure & DeployConfiguration GuidesH3C S5500-SI Series Ethernet Switches Operation Manual-Release 1205-(V1.03)
26-Information Center Operation
Title Size Download
26-Information Center Operation 198 KB

Chapter 1  Information Center Configuration

1.1  Information Center Overview

1.1.1  Introduction to Information Center

Acting as the system information hub, information center classifies and manages system information. Together with the debugging functionality, information center offers a powerful support to the network administrators and developers in monitoring network performance and diagnosing network problems.

1.1.2  System Information Format

System information has the following format:

<priority>timestamp sysname module/level/digest:content

 

&  Note:

l      The closing set of angel brackets < >, the space, the forward slash /, and the colon are all required in the above format.

l      Before the <priority> may have %, “#, or * followed with a space, indicating log, alarm, or debug information respectively.

 

Below is the format of log information to be output to a log host:

% <188>Sep 28 15:33:46:235 2005 Sysname SHELL/5/LOGIN: Console login from con0

What follows is a detailed explanation of the fields involved:

I. Priority

The priority is calculated using the following formula: facility*8+severity-1, in which facility is local7 by default and the range of severity is 0 to 7. Table 1-2 details the value and meaning associated with each severity.

Note that there is no space between the priority and timestamp fields and that the priority only takes effect when the information has been sent to the log host.

II. Timestamp

Timestamp records the time when system information is generated to allow users check and identify system events.

Note that there is a space between the timestamp and sysname (host name) fields.

III. Sysname

Sysname is the system name of the current host. Users can use the sysname command to modify the sysname.

Note that there is a space between the sysname and module fields.

IV. Module

The module field represents the name of the module that generates system information. Some modules are shown below:

Table 1-1 Module name list

Module name

Description

8021X

802.1X module

ACL

Access Control List module

ARP

Address Resolution Protocol module

CFM

Configuration File Management module

CLST

Cluster module

CMD

Command line module

COMMONSY

Common System MIB module

DEV

Device management module

DHCP

Dynamic Host Configuration Protocol module

DNS

Domain Name System module

ETH

Ethernet module

FTPS

FTP Server module

GARP

Generic Attribute Registration Protocol module

HABP

Huawei Authentication Bypass Protocol module

HWCM

Huawei Configuration Management proprietary MIB module

LAGG

Link Aggregation module

LINE

Terminal line module

MSTP

Multiple Spanning Tree Protocol module

NAT

Network Address Translation module

NTP

Network Time Protocol module

PKI

Public Key Infrastructure module

POE

Power over Ethernet module

QoS

Quality of Service module

RDS

Radius module

RM

Routing Management module

RMON

Remote monitor module

RSA

Revest, Shamir and Adleman module

SHELL

User interface module

SNMP

Simple Network Management Protocol module

SOCKET

Socket module

SSH

Secure Shell module

SYSMIB

System MIB module

TAC

HWTACACS module

TELNET

Telnet module

UDPH

UDP Helper module

VFS

Virtual File module

VLAN

Virtual Local Area Network module

VTY

Virtual Type Terminal module

default

Default setting of all modules

 

Between “module” and “level” is a “/”.

V. Level (Severity)

System information falls into three categories: log information, debug information, and trap information. Each kind of information can be further divided into eight levels based on its severity, as detailed in Table 1-2. Note that the smaller the severity value, the higher the severity.

Table 1-2 Severity description

Severity

Severity Value

Description

emergencies

0

The most emergent errors

alerts

1

Errors that demand prompt correction

critical

2

Critical errors

errors

3

Errors that are not critical but demand attention

warnings

4

Warnings that suggest possible errors

notifications

5

Normal errors with important prompts

informational

6

Normal prompts

debugging

7

Debugging prompts

 

Information filtering by severity works this way: information with severity value greater than the configured threshold will not be output during the filtering.

l           If the threshold is set to 0, only information with the severity being emergencies will be output;

l           If the threshold is set to 7, information of all severities will be output.

Note that there is a forward slash between the levels (severity) and digest fields.

VI. Digest

The digest field is a string of up to 32 characters, outlining the system information.

Note that there is a colon between the digest and content fields.

VII. Content

This field provides the content of the system information.

1.2  Configuring Information Center

Information center has the following characteristics:

l           Supports information output to the console, the monitor, the log host, the trap buffer, the log buffer, and the SNMP agent (snmpagent). A default channel is allocated to each individual output direction, as illustrated in the following table.

l           System information is classified into eight categories according to severity and filtered by severity;

l           System information is categorized and filtered by source module;

l           The output information can be in English or Chinese.

Table 1-3 Information channels for different output directions

Output direction

Information channel No.

Default channel name

Console

0

console

Monitor terminal

1

monitor

Log host

2

loghost

Trap buffer

3

trapbuffer

Log buffer

4

logbuffer

SNMP NMS

5

snmpagent

Note:

NMS = Network Management Station

 

&  Note:

Configurations for the six output directions function independently and take effect only after the information center has been enabled.

 

1.2.1  Configuring to Output System Information to the Console

I. Configuring to output system information to the console

Follow these steps to configure to output system information to the console:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable information center

info-center enable

Optional

Enabled by default

Name the channel with a specified channel number

info-center channel channel-number name channel-name

Optional

Refer to Table 1-3 for default channel names

Configure the channel through which system information can be output to the console

info-center console channel { channel-number | channel-name }

Optional

System information is output to the console by default with channel 0 as the default channel

Configure the source of the output information

info-center source { modu-name | default } channel { channel-number | channel-name } [ debug { level severity | state state }* | log { level severity | state state }* | trap { level severity | state state }* ]*

Required

Configure the format of the time stamp

info-center timestamp { log | trap | debugging } { boot | date | none }

Optional

By default, the time stamp for log and trap information is date, and that for debugging information is boot.

 

II. Enabling the display of system information on the console

After configuring to output system information to the console, you need to enable the associated display function in order to display the output information on the console.

Perform the following configurations in user view to enable the display of system information on the console:

To do…

Use the command…

Remarks

Enable the monitoring of system information on the console

terminal monitor

Required

The monitoring of system information on the console is enabled default.

Enable the display of debug information on the console

terminal debugging

Required

Disabled by default

Enable the display of log information on the console

terminal logging

Optional

Enabled by default

Enable the display of trap information on the console

terminal trapping

Optional

Enabled by default

 

1.2.2  Configuring to Output System Information to a Monitor Terminal

System information can also be output to a monitor terminal, which is a user terminal that has login connections through the AUX, VTY, or TTY user interface.

I. Configuring to output system information to a monitor terminal

Follow these steps to configure to output system information to a monitor terminal:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable information center

info-center enable

Optional

Enabled by default

Name the channel with a specified channel number

info-center channel channel-number name channel-name

Optional

Refer to Table 1-3 for default channel names

Configure the channel through which system information can be output to a monitor terminal

info-center monitor channel { channel-number | channel-name }

Optional

System information is output to the monitor terminal by default with channel 1 as the default channel

Configure the source of the output information

info-center source { modu-name | default } channel { channel-number | channel-name } [ debug { level severity | state state }* | log { level severity | state state }* | trap { level severity | state state }* ]*

Required

Configure the format of the time stamp

info-center timestamp { log | trap | debugging } { boot | date | none }

Optional

By default, the time stamp for log and trap information is date, and that for debugging information is boot.

 

II. Enabling the display of system information on a monitor terminal

After configuring to output system information to a monitor terminal, you need to enable the associated display function in order to display the output information on the monitor terminal.

Perform the following configurations to enable the display of system information on a monitor terminal:

To do…

Use the command…

Remarks

Enable the monitoring of system information on a monitor terminal

terminal monitor

Required

The monitoring of system information on the monitoring terminal is disabled.

Enable the display of debug information on a monitor terminal

terminal debugging

Required

Disabled by default

Enable the display of log information on a monitor terminal

terminal logging

Optional

Enabled by default

Enable the display of trap information on a monitor terminal

terminal trapping

Optional

Enabled by default

 

1.2.3  Configuring to Output System Information to a Log Host

Follow these steps to configure to output system information to a log host:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable information center

info-center enable

Optional

Enabled by default

Name the channel with a specified channel number

info-center channel channel-number name channel-name

Optional

Refer to Table 1-3 for default channel names

Specify a log host and configure the parameters when system information is output to the log host

info-center loghost host-ip [ channel { channel-number | channel-name } ] [ facility local-number ] [ language { chinese | english } ]*

Required

Disabled by default with channel 2 as the default channel when enabled

Configure the source interface through which log information can be output to a log host

info-center loghost source interface-type interface-number

Optional

By default, no source interface is configured, the system selects an interface as the source interface

Configure the source of the output information

info-center source { modu-name | default } channel { channel-number | channel-name } [ debug { level severity | state state }* | log { level severity | state state }* | trap { level severity | state state }* ]*

Required

Configure the format of the time stamp for log information

info-center timestamp loghost { date | no-year-date | none }

Optional

By default, the time stamp for log, information is date.

 

1.2.4  Configuring to Output System Information to the Trap Buffer

Follow these steps to configure to output system information to the trap buffer:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable information center

info-center enable

Optional

Enabled by default

Name the channel with a specified channel number

info-center channel channel-number name channel-name

Optional

Refer to Table 1-3 for default channel names

Configure system information to be output to a trap buffer and configure the associated parameters

info-center trapbuffer [ channel { channel-number | channel-name } | size buffersize ] *

Optional

System information is output to the trap buffer by default with channel 3 (known as trapbuffer) as the default channel and a default buffer size of 256

Configure the source of the output information

info-center source { modu-name | default } channel { channel-number | channel-name } [ debug { level severity | state state }* | log { level severity | state state }* | trap { level severity | state state }* ]*

Required

Configure the format of the time stamp

info-center timestamp { log | trap | debugging } { boot | date | none }

Optional

By default, the time stamp for log and trap information is date and that for debugging information is boot.

 

1.2.5  Configuring to Output System Information to the Log Buffer

Follow these steps to configure to output system information to the log buffer:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable information center

info-center enable

Optional

Enabled by default

Name the channel with a specified channel number

info-center channel channel-number name channel-name

Optional

 Refer to Table 1-3 for default channel names

Configure the channel through which system information can be output to the log buffer and specify the buffer size

info-center logbuffer [ channel { channel-number | channel-name } | size buffersize ]*

Optional

System information is output to the log buffer by default with channel 4 (known as logbuffer) as the default channel and a default buffer size of 512.

Configure the source of the output information

info-center source { modu-name | default } channel { channel-number | channel-name } [ debug { level severity | state state }* | log { level severity | state state }* | trap { level severity | state state }* ]*

Required

Configure the format of the timestamp

info-center timestamp { log | trap | debugging } { boot | date | none }

Optional

By default, the time stamp for log and trap information is date and that for debugging information is boot.

 

1.2.6  Configuring to Output System Information to the SNMP NMS

Follow these steps to configure to output system information to the SNMP NMS:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable information center

info-center enable

Optional

Enabled by default

Name the channel with a specified channel number

info-center channel channel-number name channel-name

Optional

Refer to Table 1-3 for default channel names

Configure the channel through which system information can be output to the SNMP NMS

info-center snmp channel { channel-number | channel-name }

Optional

System information is output to the SNMP NMS by default with channel 5 (known as snmpagent) as the default channel

Configure the source of the output information

info-center source { modu-name | default } channel { channel-number | channel-name } [ debug { level severity | state state }* | log { level severity | state state }* | trap { level severity | state state }* ]*

Required

Configure the format of the timestamp

info-center timestamp { log | trap | debugging } { boot | date | none }

Optional

By default, the time stamp for log and trap information is date and that for debugging information is boot.

 

&  Note:

To ensure that system information can be output to the SNMP NMS, you need to make the necessary configurations on the SNMP agent and the NMS. For detailed information on SNMP, refer to SNMP-RMON part of the manual.

 

1.2.7  Configuring Synchronous Information Output

Synchronous information output refers to the feature that if the user’s input is interrupted by system output such as log, trap, or debug information, then after the completion of system output the system will display a command line prompt (in command editing mode a prompt, or a [Y/N] string in interaction mode) and the user’s input so far.

This command is intended for the scenarios when the user’s input is interrupted by a large amount of system output. With this feature enabled, the user can continue their operations from where they were stopped.

Follow these steps to enable synchronous information output:

To do…

Use the command…

Remarks

Enter system view

system-view

Enable synchronous information output

info-center synchronous

Required

Disabled by default

 

&  Note:

l      If no information is input from the user following the current command line prompt, the system will not display any command line prompt after system information output.

l      In the interaction mode, the user is prompted for some information input. If the input is interrupted by system output, no system prompt will be made, rather only the user’s input will be displayed in a new line.

 

1.3  Displaying and Maintaining Information Center

To do…

Use the command…

Remarks

Display channel information for a specified channel

display channel [ channel-number | channel-name ]

Available in any view

Display the configurations for all information channels except channel 6 to 8.

display info-center

Display the state of the log buffer and the log information recorded

display logbuffer [ level severity | size buffersize ]* [ | { begin | exclude | include } text ]

Display a summary of the log buffer

display logbuffer summary [ level severity ]

Display the state of the trap buffer and the trap information recorded

display trapbuffer [ size buffersize ]

Reset the log buffer

reset logbuffer

Reset the trap buffer

reset trapbuffer

 

1.4  Information Center Configuration Example

1.4.1  Outputting Log Information to a Unix Log Host

I. Network requirements

l           Send log information to a Unix log host;

l           The log host has an IP address of 1.2.0.1/16;

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

l           The log information is in English and the source modules are ARP and CMD.

II. Network diagram

Figure 1-1 Network diagram for outputting log information to a Unix log host

III. Configuration procedure

1)         Configuring the device

# Enable information center.

<Sysname> system-view

[Sysname] info-center enable

# Specify the channel to output log information to the loghost.

[Sysname] info-center loghost channel loghost

# Disable the output of log, trap, and debug information of all modules to the log host.

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

 

  Caution:

l      As the default system configurations for different channels vary, ensure that the outputting of log, trap, and debug information for the specified channel (loghost in this example) of all modules is disabled before the system information can be output to meet the current network requirements.

l      Use the display channel command to display the state of a channel.

 

# Set the host with an IP address of 1.2.0.1/16 to be the log host, set the severity to informational, the output language to English, and the source modules to ARP and CMD.

[Sysname] info-center loghost 1.2.0.1 facility local4 language english

[Sysname] info-center source arp channel loghost log level informational

[Sysname] info-center source cmd channel loghost log level informational

2)         Configuring the log host

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

Step 1: issue the following commands as a root user.

# mkdir /var/log/H3C

# touch /var/log/H3C/information

Step 2: Edit the file /etc/syslog.conf as a root user and add the following selector/action pair.

# H3C configuration messages

local4.info    /var/log/H3C/information

 

&  Note:

Be aware of 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 or info-center source command; otherwise the log information may not be output properly to the log host.

 

Step three: 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:

# ps -ae | grep syslogd

147

# kill -HUP 147

After the above configurations, system will be able to keep log information in the related file.

1.4.2  Outputting Log Information to a Linux Log Host

I. Network requirements

l           Send log information to a Linux log host; the log host has an IP address of 1.2.0.1/16;

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

l           The log information is in English and all modules can output information.

II. Network diagram

Figure 1-2 Network diagram for outputting log information to a Linux log host

III. Configuration procedure

1)         Configuring the device

# Enable information center.

<Sysname> system-view

[Sysname] info-center enable

# Specify the channel to output log information to the loghost.

[Sysname] info-center loghost 1.2.0.1 channel loghost

# Disable the output of log, trap, and debug information of all modules to the log host.

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

 

  Caution:

l      As the default system configurations for different channels vary, ensure that the output of log, trap, and debug information for the specified channel (loghost in this example) of all modules is disabled before the system information can be output to meet the current network requirements.

l      Use the display channel command to display the state of a channel.

 

# Set the host with an IP address of 1.2.0.1/16 to be the log host, set the severity to informational, the output language to English, and the source modules to be all modules.

[Sysname] info-center loghost 1.2.0.1 facility local7 language english

[Sysname] info-center source default channel loghost log level informational

2)         Configuring the log host

Step 1: issue the following commands as a root user.

# mkdir /var/log/H3C

# touch /var/log/H3C/information

Step 2: Edit the file /etc/syslog.conf as a root user and add the following selector/action pair.

# H3C configuration messages

local7.info    /var/log/H3C/information

 

&  Note:

Be aware of 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 facility name and the accepted severity of the log information specified by the /etc/syslog.conf file must be identical to those configured on the device using the info-center loghost or info-center source command; otherwise the log information may not be output properly to the log host.

 

Step three: after the log file information has been created and the /etc/syslog.conf file has been modified, issue the following commands to display the process ID of syslogd, terminate a syslogd process, and to restart syslogd using the –r option.

# ps -ae | grep syslogd

147

# kill -9 147

# syslogd -r &

 

&  Note:

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

 

After the above configurations, system will be able to keep log information in the related file.

1.4.3  Outputting Log Information to the Console

I. Network requirements

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

l           The source modules are ARP and CMD.

II. Network diagram

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

III. Configuration procedure

<Sysname> system-view

[Sysname] info-center enable

# Specify the channel to output log information to the console.

[Sysname] info-center console channel console

# Disable the output of log, trap, and debug information of all modules to the log host.

[Sysname] info-center source default channel console debug state off log state off trap state off

 

  Caution:

l      As the default system configurations for different channels vary, ensure that the output of log, trap, and debug information for the specified channel (console in this example) of all modules is disabled before the system information can be output to meet the current network requirements.

l      Use the display channel command to display the state of a channel.

 

# Enable system information output for the ARP and CMD modules, with information severity ranging from emergencies to informational.

[Sysname] info-center source arp channel console log level informational

[Sysname] info-center source cmd channel console log level informational

[Sysname] quit

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

<Sysname> terminal monitor

% Current terminal monitor is on

<Sysname> terminal logging

% Current terminal logging is on

 

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