H3C S5500-SI Series Operating instructions

Type
Operating instructions
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Table of Contents
i
Table of Contents
Chapter 1 Information Center Configuration..............................................................................1-1
1.1 Information Center Overview.............................................................................................1-1
1.1.1 Introduction to Information Center...........................................................................1-1
1.1.2 System Information Format.....................................................................................1-1
1.2 Configuring Information Center..........................................................................................1-4
1.2.1 Configuring to Output System Information to the Console .....................................1-5
1.2.2 Configuring to Output System Information to a Monitor Terminal...........................1-6
1.2.3 Configuring to Output System Information to a Log Host.......................................1-7
1.2.4 Configuring to Output System Information to the Trap Buffer................................. 1-8
1.2.5 Configuring to Output System Information to the Log Buffer.................................. 1-9
1.2.6 Configuring to Output System Information to the SNMP NMS.............................1-10
1.2.7 Configuring Synchronous Information Output.......................................................1-11
1.3 Displaying and Maintaining Information Center...............................................................1-12
1.4 Information Center Configuration Example .....................................................................1-12
1.4.1 Outputting Log Information to a Unix Log Host.....................................................1-12
1.4.2 Outputting Log Information to a Linux Log Host ................................................... 1-14
1.4.3 Outputting Log Information to the Console...........................................................1-16
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-1
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:
z The closing set of angel brackets < >, the space, the forward slash /, and the colon
are all required in the above format.
z 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.
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-2
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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-3
Module name Description
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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-4
Severity Severity Value Description
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.
z If the threshold is set to 0, only information with the severity being emergencies will
be output;
z 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:
z 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.
z System information is classified into eight categories according to severity and
filtered by severity;
z System information is categorized and filtered by source module;
z 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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-5
Output direction Information channel No. Default channel name
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.
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-6
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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-7
To do… Use the command… Remarks
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:
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-8
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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-9
To do… Use the command… Remarks
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.
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-10
To do… Use the command… Remarks
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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-11
To do… Use the command… Remarks
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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-12
Note:
z 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.
z 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 ]
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
Available in any view
1.4 Information Center Configuration Example
1.4.1 Outputting Log Information to a Unix Log Host
I. Network requirements
z Send log information to a Unix log host;
z The log host has an IP address of 1.2.0.1/16;
z Log information with severity higher than informational will be output to the log
host;
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-13
z The log information is in English and the source modules are ARP and CMD.
II. Network diagram
Switch
PC
ork
Netw
SwitchSwitch
PC
ork
1.2.0.1/16
Netw
1.1.0.1/16
Switch
PC
ork
Netw
SwitchSwitch
PC
ork
Netw
Switch
PC
ork
Netw
SwitchSwitch
PC
ork
1.2.0.1/16
t
Netw
1.1.0.1/16
Figure 1-1 Network diagram for outputting log information to a Unix log hos
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:
z 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.
z 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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-14
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:
z Comments must be on a separate line and must begin with the # sign.
z The selector/action pair must be separated with a tab key, rather than a space.
z No redundant spaces are allowed in the file name.
z 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
z Send log information to a Linux log host; the log host has an IP address of
1.2.0.1/16;
z Log information with severity higher than informational will be output to the log
host;
z The log information is in English and all modules can output information.
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-15
II. Network diagram
Switch
PC
k
Networ
SwitchSwitch
PC
k
1.2.0.1/16
Networ
1.1.0.1/16
Switch
PC
k
Networ
SwitchSwitch
PC
k
Networ
Switch
PC
k
Networ
SwitchSwitch
PC
k
1.2.0.1/16
Networ
1.1.0.1/16
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:
z 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.
z 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
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-16
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:
z Comments must be on a separate line and must begin with the # sign.
z The selector/action pair must be separated with a tab key, rather than a space.
z No redundant spaces are allowed in the file name.
z 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
z Log information with a severity higher than informational will be output to the
console;
z The source modules are ARP and CMD.
Operation Manual – Information Center
H3C S5500-SI Series Ethernet Switches Chapter 1
Information Center Configuration
1-17
II. Network diagram
console
PC
Switch
console
PC
Switch
console
PC
Switch
Cons ole
PC
Switch
console
PC
Switch
console
PC
Switch
console
PC
Switch
Cons ole
PC
Switch
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:
z 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.
z 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
  • Page 1 1
  • Page 2 2
  • Page 3 3
  • Page 4 4
  • Page 5 5
  • Page 6 6
  • Page 7 7
  • Page 8 8
  • Page 9 9
  • Page 10 10
  • Page 11 11
  • Page 12 12
  • Page 13 13
  • Page 14 14
  • Page 15 15
  • Page 16 16
  • Page 17 17
  • Page 18 18

H3C S5500-SI Series Operating instructions

Type
Operating instructions

Ask a question and I''ll find the answer in the document

Finding information in a document is now easier with AI