1.1 Information Center Overview
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.
System information has the following
format:
<priority>timestamp sysname
module/level/digest:content
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
|
Configurations for
the six output directions function independently and take effect only after the
information center has been enabled.
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
|
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
|
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.
|
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.
|
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.
|
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.
|
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.
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
|
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 |