- Table of Contents
-
- H3C S3610[5510] Series Ethernet Switches Operation Manual-Release 0001-(V1.02)
- 00-1Cover
- 00-2Product Overview
- 01-Login Operation
- 02-VLAN Operation
- 03-IP Address and Performance Operation
- 04-QinQ-BPDU Tunnel Operation
- 05-Port Correlation Configuration Operation
- 06-MAC Address Table Management Operation
- 07-MAC-IP-Port Binding Operation
- 08-MSTP Operation
- 09-Routing Overview Operation
- 10-IPv4 Routing Operation
- 11-IPv6 Routing Operation
- 12-IPv6 Configuration Operation
- 13-Multicast Protocol Operation
- 14-802.1x-HABP-MAC Authentication Operation
- 15-AAA-RADIUS-HWTACACS Operation
- 16-ARP Operation
- 17-DHCP Operation
- 18-ACL Operation
- 19-QoS Operation
- 20-Port Mirroring Operation
- 21-Cluster Management Operation
- 22-UDP Helper Operation
- 23-SNMP-RMON Operation
- 24-NTP Operation
- 25-DNS Operation
- 26-File System Management Operation
- 27-Information Center Operation
- 28-System Maintenance and Debugging Operation
- 29-NQA Operation
- 30-VRRP Operation
- 31-SSH Operation
- 32-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
27-Information Center Operation | 221 KB |
Chapter 1 Information Center Configuration
1.1 Information Center Overview
1.1.1 Introduction to Information Center
1.1.2 System Information Format
1.2 Configuring Information Center
1.2.1 Configuring to Output System Information to the Console
1.2.2 Configuring to Output System Information to a Monitor Terminal
1.2.3 Configuring to Output System Information to a Log Host
1.2.4 Configuring to Output System Information to the Trap Buffer
1.2.5 Configuring to Output System Information to the Log Buffer
1.2.6 Configuring to Output System Information to the SNMP NMS
1.2.7 Configuring Synchronous Information Output
1.3 Displaying and Maintaining Information Center
1.4 Information Center Configuration Example
1.4.1 Outputting Log Information to a Unix Log Host
1.4.2 Outputting Log Information to a Linux Log Host
1.4.3 Outputting Log Information to the Console
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 an example of the format of log information to be output to a log host:
% <188>Sep 28 15:33:46:235 2005 MyDevice 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 format: 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
Description |
|
8021X |
802.1X module |
ACL |
Access Control List module |
ADBM |
MAC address management module |
ARP |
Address Resolution Protocol module |
BGP |
Border Gateway Protocol module |
CFM |
Configuration File Management module |
CLST |
Cluster Configuration module |
CMD |
Command line module |
COMMONSY |
Common System MIB module |
default |
Default setting of all modules |
DEV |
Device management module |
DHCP |
Dynamic Host Configuration Protocol module |
DIAGCLI |
Diagnosis module |
DNS |
Domain Name System module |
DRVMPLS |
Multiprotocol label switching driver module |
DRVL2 |
Layer2 driver module |
DRVL3 |
Layer3 driver module |
DRVL3MC |
Layer3 multicast module |
MPLS |
Multi protocol Label Switching module |
DRVPOS |
POS driver module |
DRVQACL |
QACL driver module |
DRVVPLS |
Virtual Private LAN Service driver module |
ETH |
Ethernet module |
FTPS |
FTP Server module |
GARP |
Generic Attribute Registration Protocol module |
HA |
High Availability module |
HABP |
Huawei Authentication Bypass Protocol module |
HGMPS |
Huawei Group Management Protocol Service module |
HWCM |
Huawei Configuration Management MIB module |
IFNET |
Interface management module |
IGSP |
IGMP Snooping module |
IP |
Internet Protocol module |
ISIS |
Intermediate System-to-Intermediate System intra-domain routing information exchange protocol module |
L2INF |
Interface management module |
L2V |
L2 VPN module |
LACL |
Lan switch ACLmodule |
LAGG |
Link Aggregation module |
LDP |
Label Distribution Protocol module |
LINE |
Line module |
LINKAGG |
LINK AGG module |
LQOS |
Lan switch QoS module |
LS |
Local Server module |
LSPAGENT |
Label Switched Path Agent module |
LSPM |
Label Switch Path Management module |
MIX |
Dual main control network management module |
MMC |
MMC module |
MODEM |
MODEM module |
MPLSFW |
Multi-protocol Label Switch Forward module |
MPM |
Multicast Port Management module |
MSDP |
Multicast Source Discovery Protocol module |
MSTP |
Multiple Spanning Tree Protocol module |
NAT |
Network Address Translation module |
NTP |
Network Time Protocol module |
PKI |
Public Key Infrastructure module |
OSPF |
Open Shortest Path First module |
PHY |
Physical Sublayer & Physical Layer module |
POE |
Power over Ethernet module |
POS_SNMP |
POS Simple Network Management Protocol module |
PPP |
Point to Point Protocol module |
PSSINIT |
PSSINIT module |
QoS |
Quality of Service module |
RDS |
Radius module |
RM |
Routing Management module |
RMON |
Remote monitor module |
RPR |
Resilient Packet Ring module |
RSA |
Revest, Shamir and Adleman module |
RTPRO |
Routing protocol module |
SHELL |
User interface module |
SNMP |
Simple Network Management Protocol module |
SOCKET |
Socket module |
SSH |
Secure Shell module |
SYSM |
System Manage veneer module |
SYSMIB |
System MIB module |
TAC |
Terminal Access Controller module |
TELNET |
Telnet module |
UDPH |
UDP Helper module |
USERLOG |
USER Calling Logging module |
VFS |
Virtual File module |
VLAN |
Virtual Local Area Network module |
VOS |
Virtual Operation System module |
VRRP |
Virtual Router Redundancy Protocol module |
VTY |
Virtual Type Terminal module |
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. A default channel is allocated to each individual output direction, as illustrated in Table 1-3.
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:
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 { module-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 whereas that for debug 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 |
Optional The monitoring of system information on the console is enabled default and that on the monitoring terminal is disabled. |
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 |
Configure the source of the output information |
info-center source { module-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 whereas that for debug 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 console is enabled default and that 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 { module-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 whereas that for debug 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 |
— |
|
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 log buffer and configure the associated parameters |
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 whereas that for debug 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 { module-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 whereas that for debug 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.
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
After the above configurations, you can execute the display command in any view to display the running status of the information center, and thus validate you configurations. You can also execute the reset logbuffer and reset trapbuffer command in user view to clear the information in the log buffer and trap buffer.
Table 1-4 Displaying and Maintaining Information Center
To do… |
Use the command… |
Remarks |
Display channel information for a specified channel |
display channel [ channel-number | channel-name ] |
The display command can be executed 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 |
The reset command can be executed in user view |
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 log host (loghost by default, optional).
[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:
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.
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 log host (optional, loghost by default).
[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:
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.
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 (optional, console by default).
[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:
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. 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