26-Information Center Operation

Download


Chapter 1  Information Center

1.1  Information Center Overview

Information center is an indispensable part of Ethernet switches and exists as an information hub of system software modules. The information center manages most information outputs; it sorts information carefully, and hence can screen information in an efficient way. Combined with the debug program, it provides powerful support for network administrators and developers in network operation monitoring and fault diagnosis.

Information items are presented in the following format:

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

Here, angle brackets “<>”, spaces, slashes “/” and colon are valid and required.

Below is an example of log output to a log host:

<188>Apr  9 17:28:50 2004 H3C IFNET/5/UPDOWN:Line protocol on the interface M-Ethernet0/0/0 is UP    (SIP=10.5.1.5 ,SP=1080)

The following describes the fields contained in an information item:

1)         Priority

The calculation formula for priority is priority = facility × 8 + severity – 1. For Comware, the default facility value is 23 and severity ranges from one to eight. See Table 1-2 for description of severity levels.

Note that no character is permitted between the priority and time stamp. The priority takes effect only when the information is sent to the log host.

2)         Time stamp

The data type of the time stamp field contained in log information sent to the log host is date, whose format is Mmm dd hh:mm:ss yyyy, where:

“Mmm” represents the month, and the available values are: Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov and Dec.

“dd” is the date, which shall follow a space if less than 10, for example, “ 7”.

“hh:mm:ss yyyy” is the local time, where “hh” is in the 24-hour format, ranging from 00 to 23, both “mm” and ”ss” range from 00 to 59, and “yyyy” is the year.

Note that a space separates the time stamp and host name.

3)         Host name

It refers to the system name of the host, which is “H3C” by default.

You can modify the host name with the sysname command in system view.

Note that a space separates the host name and module name.

4)         Module name

It indicates the module that generates the information. Table 1-1 lists the modules.

Table 1-1 Module names

Module name

Module and description

8021X

802.1x

ACL

Access control list

ADBM

ADress Base Module

ARP

Address resolution protocol

ARPMIB

ARP MIB module

CFAX

Configuration agent

CFG

Configuration management plane

CFM

Configuration file management

CLST

Cluster management

CMD

Command line

COMMOMSY

Common system MIB

DEV

Device management

DHCC

DHCP client

DRV

Driver

ENTEXMIB

Entity extended MIB

ESP

End-station polling

FIB

Forwarding

FTPS

FTP server

HA

High availability

HABP

Huawei authentication bypass protocol

HTTPD

HTTP server

HWCM

Huawei configuration management private MIB

IFNET

Interface management

IGSP

IGMP snooping

IP

Internet Protocol

IPC

Inter-process communication

L2INF

Layer 2 interface management

LACL

Lanswitch ACL

LAGG

Link aggregation

LQOS

Lanswitch QoS

LINE

Terminal line module

LS

Local server

MACAUTH

Centralized MAC address authentication

MAM

MAC address management

MPM

Multicast port management

MSTP

Multiple spanning tree protocol

MULTICAS

MULTICAS

NAT

Network address translation

NDP

Neighbor discovery protocol

NTDP

Network topology discovery protocol

NTP

Network time protocol

RDS

Radius

RM

Routing management

RMON

Remote monitor

RMX

Route management of IPX

RSA

RSA encryption system (RSA: Revest, Shamir and Adleman)

RTPRO

Routing protocol

SC

Server control

SECU

Security

SHELL

Shell

SNMP

Simple network management protocol

SOCKET

Socket

SSH

Secure shell

SYSMIB

System management MIB

TELNET

Telnet

TFTPC

TFTP client

VFS

Virtual file system

VLAN

Virtual local area network

VTY

Virtual type terminal

WCN

Web management

XM

Xmodem

default

Default settings of all the modules

 

Note that a slash (/) separates the module name and severity level.

5)         Level

Switch information falls into three categories: log information, debug information and trap information. Information of each category can be one of eight severities. Information filtering prevents information whose severity is lower than the specified threshold from being output. The higher the information severity is, the lower the corresponding level is. For example, the “debugging” severity corresponds to level 8, and the “emergencies“ severity corresponds to level 1. When the severity threshold is set to “debugging”, all information will be output. See Table 1-2 for description of severities and corresponding levels.

Table 1-2 Severity definitions on the information center

Severity

Value

Description

emergencies

1

The system is unavailable.

alerts

2

Errors that need to be corrected immediately

critical

3

Critical errors

errors

4

Common errors

warnings

5

Warnings

notifications

6

Normal information that needs to be noticed

informational

7

Normal prompt information

debugging

8

Debug information

 

Note that a slash (/) separates the level and digest.

6)         Digest

It is a phrase within 32 characters, abstracting the information contents.

A colon (:) separates the digest and information contents.

1.2  Information Center Configuration

The switch supports information output to six directions.

By far, each output direction is assigned with an information channel, as shown in Table 1-3.

Table 1-3 Information channel names and numbers

Output direction

Channel number

Default channel name

Console

0

console

Monitor terminal

1

monitor

Log host

2

loghost

Trap buffer

3

trapbuffer

Log buffer

4

logbuffer

SNMP

5

snmpagent

 

&  Note:

Settings for the six output directions are independent. However, for any output direction, you must first enable the information center to make all other settings effective.

 

Information center of the Ethernet switch features:

l           Supporting six information output directions, namely, console (console), monitor terminal (monitor), log host (loghost), trap buffer (trapbuffer), log buffer (logbuffer) and SNMP (snmpagent),

l           Filtering information by information severities (information is divided into eight severity levels),

l           Filtering information by modules where information is generated,

l           Language options (Chinese or English) for information output.

1.2.1  Enabling Synchronous Terminal Output

To avoid user’s input from being interrupted by system information output, you can enable the synchronous terminal output function, which echoes user's input after each system output. This makes users work with ease, for they no longer worry about losing uncompleted inputs.

Table 1-4 Enable synchronous terminal output

Operation

Command

Description

Enter system view

system-view

Enable synchronous terminal output

info-center synchronous

Optional

By default, synchronous terminal output is disabled.

 

&  Note:

Running the info-center synchronous command during debug information collection may result in a command prompt echoed after each item of debug information. To avoid unnecessary output, it is recommended that you disable synchronous terminal output in such cases.

 

1.2.2  Enabling Information Output to a Log Host

Table 1-5 lists the related configurations on the switch.

Table 1-5 Enable information output to a log host

Operation

Command

Description

Enter system view

system-view

Enable the information center

info-center enable

Optional

By default, the information center is enabled.

Enable information output to a log host

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

Required

By default, the switch does not output information to the log host.

Be sure to set the correct IP address. A loopback IP address will cause an error message prompting invalid address.

Configure the source interface through which log information is sent to the log host

info-center loghost source interface-type interface-number

Optional

Define an information source

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

Required

Set the format of the time stamp to be sent to the log host

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

Optional

 

&  Note:

 

1.2.3  Enabling Information Output to the Console

Table 1-6 lists the related configurations on the switch.

Table 1-6 Enable information output to the console

Operation

Command

Description

Enter system view

system-view

Enable the information center

info-center enable

Optional

By default, the information center is enabled.

Enable information output to the console

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

Required

By default, the switch uses information channel 0 to output log/debugging/trap information to the console

Define an information source

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

Required

Set the format of time stamp

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

Optional

 

To view debug/log/trap output information on the console, you should also enable the corresponding debug/log/trap terminal display on the switch.

For example, to view log information of the switch on the console, you should not only enable log information output to the console, but also enable logging terminal display with the terminal logging command.

Perform the following operations in user view.

Table 1-7 Enable debug/log/trap terminal display

Operation

Command

Description

Enable the debug/log/trap terminal display function

terminal monitor

Optional

By default, this function is enabled for console user.

Enable debug terminal display

terminal debugging

Optional

By default, debug terminal display is disabled for terminal users.

Enable log terminal display

terminal logging

Optional

By default, log information terminal display is enabled for console users.

Enable trap terminal display

terminal trapping

Optional

By default, trap terminal display is enabled for terminal users.

 

1.2.4  Enabling Information Output to a Monitor Terminal

Table 1-8 lists the related configurations on the switch.

Table 1-8 Enable information output to a monitor terminal

Operation

Command

Description

Enter system view

system-view

Enable the information center

info-center enable

Optional

By default, the information center is enabled.

Enable information output to Telnet terminal or dumb terminal

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

Required

By default, a switch outputs log/debugging/trap information to user terminal through information channel 1.

Define an information source

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

Required

Set the format of time stamp

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

Optional

This is to set the time stamp format for log/debug/trap information output.

This determines how the time stamp is presented to users.

 

&  Note:

l      When there are multiple Telnet users or dumb terminal users, some configuration parameters (including module filter, language and severity level threshold settings) are shared between them. In this case, change to any such parameter made by one user will also be reflected on all other user terminals.

l      To view debug information of specific modules, you need to set the information type as debug in the info-center source command, and enable debugging on corresponding modules with the debugging command as well.

 

To view output debug/log/trap information on the monitor terminal, you should also enable the corresponding debug/log/trap display on the switch.

For example, to view log information of the switch on a monitor terminal, you need to not only enable log information output to the monitor terminal, but also enable log information terminal terminal display with the terminal logging command.

Perform the following configuration in user view.

Table 1-9 Enable debug/log/trap terminal display

Operation

Command

Description

Enable the debug/log/trap terminal display function

terminal monitor

Optional

By default, this function is enabled for console user.

Enable debugging terminal display

terminal debugging

Optional

By default, debugging terminal display is disabled for terminal users.

Enable logging terminal display

terminal logging

Optional

By default, logging terminal display is enabled for console users.

Enable trapping terminal display

terminal trapping

Optional

By default, trapping terminal display is enabled for terminal users.

 

1.2.5  Enabling Information Output to the Log Buffer

Table 1-10 lists the related configurations on the switch.

Table 1-10 Enable information output to the log buffer

Operation

Command

Description

Enter system view

system-view

Enable the information center

info-center enable

Optional

By default, the information center is enabled.

Enable information output to the log buffer

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

Optional

By default, the switch uses information channel 4 to output log information to the log buffer, which can holds up to 512 items by default.

Define an information source

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

Required

Set the format of time stamp

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

Optional

This is to set the time stamp format for log/debug/trap information output.

This determines how the time stamp is presented to users.

 

&  Note:

To view debug information of specific modules, you need to set the information type as debug in the info-center source command, and enable debugging on corresponding modules with the debugging command as well.

 

1.2.6  Enabling Information Output to the Trap Buffer

Table 1-11 lists the related configurations on the switch.

Table 1-11 Enable information output to the trap buffer

Operation

Command

Description

Enter system view

system-view

Enable the information center

info-center enable

Optional

By default, the information center is enabled.

Enable information output to the trap buffer

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

Optional

By default, the switch uses information channel 3 to output trap information to the trap buffer, which can holds up to 256 items by default.

Define an information source

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

Required

Set the format of time stamp

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

Optional

This is to set the time stamp format for log/debug/trap information output.

This determines how the time stamp is presented to users.

 

&  Note:

To view debug information of specific modules, you need to set the information type as debug in the info-center source command, and enable debugging on corresponding modules with the debugging command as well.

 

1.2.7  Enabling Information Output to the SNMP

Table 1-12 lists the related configurations on the switch.

Table 1-12 Enable information output to the SNMP

Operation

Command

Description

Enter system view

system-view

Enable the information center

info-center enable

Optional

By default, the information center is enabled.

Enable information output to the SNMP

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

Required

By default, the switch outputs trap information to SNMP through channel 5.

Define an information source