Syntax
display channel [ channel-number | channel-name ]
View
Any view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name:
Channel name. By default, the names of channel 0 to channel 9 are console,
monitor, loghost, trapbuffer, logbuffer, snmpagent,
channel6, channel7, channel8, and channel9.
Description
Use the display channel command to
display the settings of an information channel.
If no argument is provided, the settings of
all channels are displayed.
Example
# Show details
about information channel 0.
<H3C> display channel 0
channel number:0, channel
name:console
MODU_ID NAME ENABLE
LOG_LEVEL ENABLE TRAP_LEVEL ENABLE DEBUG_LEVEL
ffff0000 default Y
warning Y debugging Y debugging
Syntax
display info-center
View
Any view
Parameter
None
Description
Use the display info-center command
to display the operation status of the information center, the configuration of
information channels, and the format of time stamp.
If the number of the messages in the
current log/trap buffer is less than the buffer size specified by a user, this
command is used to display the actual log/trap information.
Related commands: info-center enable,
info-center loghost, info-center logbuffer, info-center
console channel, info-center monitor channel, info-center
trapbuffer, info-center snmp channel, and info-center timestamp.
Example
# Display
information about the information center.
<H3C> display info-center
Information Center:enabled
Log host:
Console:
channel number:0, channel
name:console
Monitor:
channel number:1, channel
name:monitor
SNMP Agent:
channel number:5, channel
name:snmpagent
Log buffer:
enabled, max buffer
size:1024, current buffer size:256
current messages:2, channel
number:4, channel name:logbuffer
dropped messages:0,
overwritten messages:0
Trap buffer:
enabled, max buffer
size:1024, current buffer size:256
current messages:0, channel
number:3, channel name:trapbuffer
dropped messages:0,
overwritten messages:0
Information timestamp setting:
log - date, trap - date,
debug – boot
Table 1-1
Description on the fields of the display info-center
command
|
Field
|
Description
|
|
Information Center:
|
Information center is enabled.
|
|
Log host:
|
Information about the log host, including
its IP address, name and number of information channel, language and level
|
|
Console:
|
Information about the console port,
including name and number of its information channel
|
|
Monitor:
|
Information about the monitor port, including
name and number of its information channel
|
|
SNMP Agent:
|
Information about SNMP Agent, including
name and number of its information channel
|
|
Log buffer:
|
Information about the log buffer, including
its state (enabled/disabled), maximum size, current size, number of current
messages, information channel name and number, number of dropped messages,
and number of overwritten messages
|
|
Trap buffer:
|
Information about the trap buffer,
including its state (enabled/disabled), maximum size, current size, number of
current messages, channel number and name, number of dropped messages, and
number of overwritten messages
|
|
Information timestamp setting
|
Information about time stamp, describing the
time stamp formats of log information, trap information, and debugging
information
|
Syntax
display logbuffer [ level severity | size buffersize ]* [
| { begin | exclude | include } regular-expression ]
View
Any view
Parameter
level
severity: Specifies an information severity level.
The severity argument ranges from 1 to 8.
Table 1-2
Severity definitions made on the information center
|
Severity
|
Value
|
Description
|
|
emergencies
|
1
|
Emergent errors
|
|
alerts
|
2
|
Errors that need to be corrected
immediately
|
|
critical
|
3
|
Critical errors
|
|
errors
|
4
|
Errors that need to be considered but are
not critical
|
|
warnings
|
5
|
Warnings that prompt possible errors
|
|
notifications
|
6
|
Information that needs to be noticed
|
|
informational
|
7
|
Normal prompting information
|
|
debugging
|
8
|
Debugging information
|
size buffersize: Specifies the size of the log buffer (number of messages the log buffer
holds) you want to display. The buffersize argument ranges from 1 to
1,024 and defaults to 512.
|: Specifies to filter output log
information with a regular expression.
begin:
Specifies to display the log information beginning with the specified characters.
exclude:
Specifies to display the log information excluding the specified characters.
include:
Specifies to display the log information including the specified characters.
regular-expression: Regular expression.
Table 1-3 Special characters in regular
expression.
|
Special characters
|
Description
|
Usage
restrictions
|
|
_
|
The underscore, functions like a
wildcard, and can represent the following characters:
^ –– Caret
$ –– Dollar sign
| –– Alternation sign
[ –– Left bracket
, –– Comma
( ) –– Left/right parenthesis
{ } –– Left/right brace
] –– Right bracket
Space
Start/stop character
|
If the first character of a regular
expression is not ‘_’, the number of ‘_’ used in the expression
is not restricted, but is restricted by the length of a command line.
If the first character is
‘_’, the number of consecutive “_” should be less
than 5;
If the ‘_’ characters are not
consecutive, the output information will be filtered by the first group of
‘_’, and the remaining ‘_’ characters will not be
processed.
|
|
(
|
The left parenthesis, the
push-onto-the-stack flag in programming
|
You are recommended not to use this
character to establish a regular expression.
|
Description
Use the display logbuffer command to
display the state of logbuffer and the information recorded in logbuffer.
Example
# Display the state of logbuffer and the
log information recorded in the logbuffer.
<H3C> display logbuffer
Logging buffer configuration and contents:enabled
Allowed max buffer size : 1024
Actual buffer size : 512
Channel number : 4 , Channel name :
logbuffer
Dropped messages : 0
Overwritten messages : 0
Current messages : 91
...... (Omitted)
1.1.4 display logbuffer summary
Syntax
display logbuffer summary [ level severity ]
View
Any view
Parameter
Level severity: Specifies an information severity level. The severity
argument ranges from 1 to 8.
Description
Use the display logbuffer summary
command to display the statistics of the log buffer.
Example
# Display summary
information recorded in logbuffer.
<H3C> display logbuffer summary
SLOT EMERG ALERT CRIT ERROR WARN
NOTIF INFO DEBUG
0 0 0 0 0
0 0 0 0
1 0 0 0 0
0 0 0 0
Syntax
display trapbuffer [ size buffersize ]
View
Any view
Parameter
size
buffersize: Specifies the size of the trap buffer
(number of messages the buffer holds) you want to display. The buffersize
argument ranges from 1 to 1,024 and defaults to 256.
Description
Use the display trapbuffer command
to display the status of the trap buffer and the trap information recorded in
the trap buffer.
Executing the command with the size buffersize
parameters will display the latest trap records.
Example
# Display the trapbuffer
status and the trap information in trapbuffer.
<H3C> display trapbuffer
Trapping Buffer Configuration and
contents:enabled
allowed max buffer size : 1024
actual buffer size : 256
channel number : 3 , channel name :
trapbuffer
dropped messages : 0
overwritten messages : 0
current messages : 6
#Dec 31 14:01:25 2004 H3C DEV/2/LOAD
FINISHED:
Trap
1.3.6.1.4.1.2011.2.23.1.12.1.20: frameIndex is 0, slotIndex 0.4
#Dec 31 14:01:33 2004 H3C DEV/2/BOARD
STATE CHANGE TO NORMAL:
Trap
1.3.6.1.4.1.2011.2.23.1.12.1.11: frameIndex is 0, slotIndex 0.2
#Dec 31 14:01:40 2004 H3C DEV/2/BOARD
STATE CHANGE TO NORMAL:
Trap
1.3.6.1.4.1.2011.2.23.1.12.1.11: frameIndex is 0, slotIndex 0.
…(Omitted)
Syntax
info-center channel channel-number name channel-name
undo info-center channel channel-number
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name: Channel name, a string
of up to 30 characters, excluding "-", "/" or
"\". And the first character must not be a number.
Description
Use info-center channel name
command to name a channel specified by channel-number as channel-name.
Use undo info-center channel
command to restore the default channel name.
By default, the names of channels 0 to
channel 9 are console, monitor, loghost, trapbuffer,
logbuffer, snmpagent, channel6, channel7, channel8,
and channel9.
Note that channel names must not be the same
as each other.
Example
# Name the channel
0 as execconsole.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center channel 0 name
execconsole
Syntax
info-center console channel { channel-number | channel-name
}
undo info-center console channel
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name:
Channel name, by default, the names of channels 0 to channel 9 are console,
monitor, loghost, trapbuffer, logbuffer, snmpagent,
channel6, channel7, channel8, and channel9.
Description
Use the info-center console channel
command to configure the channel through which the log information is output to
the console.
Use the undo info-center console channel
command to restore the default channel through which the log information is
output to the console.
By default, Ethernet switches output log
information to the console through channel 0.
This command takes effect only after the
information center function is enabled.
Related command: info-center enable,
and display info-center.
Example
# Configure to
output log information to the console through channel 7.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center console channel 7
Syntax
info-center enable
undo info-center enable
View
System view
Parameter
none
Description
Use the info-center enable
command to enable the information center function.
Use the info-center enable
command to disable the information center function.
The switch can output system information to
the log host, the console, and other destinations only when the information
center function is enabled.
By default, the information center function
is enabled.
Related command: display info-center,
info-center loghost, info-center logbuffer, info-center
console channel, info-center monitor channel, info-center
trapbuffer, and info-center snmp channel.
Example
# Enable the
information center function.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center enable
% information center is enabled
Syntax
info-center
logbuffer [ channel { channel-number | channel-name
} | size buffersize ]* [ | exclude regular-expression
]
undo info-center logbuffer [ channel | size | | exclude regular-expression
]
View
System view
Parameter
channel:
Configures the channel whereby to output information to the buffer.
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name:
Channel name, by default, the names of channels 0 to channel 9 are (in turn) console,
monitor, loghost, trapbuffer, logbuffer, snmpagent,
channel6, channel7, channel8, and channel9.
size
buffersize: Specifies the size of the log buffer
(number of messages the buffer holds). The buffersize argument ranges
from 0 to 1,024 and defaults to 512.
|: Specifies to filter output log
information using a regular expression.
exclude:
Specifies to output the log information excluding the specified characters.
regular-expression: Regular expression.
For special characters used in the regular
expression, refer to Table 1-3.
Description
Use the info-center logbuffer
command to configure information output to the log buffer.
Use the undo info-center
logbuffer command to cancel the configuration.
By default, the system outputs information
to the log buffer, which can hold 512 messages.
This command takes effect only when the
information center function is enabled for the system.
Related command: info-center
enable and display info-center.
Example
# Send log
information to the log buffer and set the size of log buffer to 50.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center logbuffer size 50
Syntax
info-center loghost host-ip-addr [ channel {
channel-number | channel-name } | facility local-number
| language { chinese | english } ]*
undo info-center loghost host-ip-addr
View
System view
Parameter
host-ip-addr:
IP address of info-center loghost.
channel:
Configures information channel of the info-center loghost.
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name:
Channel name, by default, the names of channels 0 to channel 9 are console,
monitor, loghost, trapbuffer, logbuffer, snmpagent,
channel6, channel7, channel8, and channel9.
facility:
Configures the recording tool of info-center loghost.
local-number:
Record tool of info-center loghost, ranging from local0 to local7.
language:
Sets the logging language.
chinese,english:
Switches language used in log file between Chinese and English.
Description
Use the info-center loghost
command to enable information output to the loghost.
Use the undo info-center loghost
command to cancel the configuration.
By default, the system does not output
information to the loghost.
This command works only when the
information center function is enabled for the system.
Be sure to set a correct IP address in the info-center
loghost command. A loopback IP address will cause an error message
prompting an invalid address.
Related command: info-center
enable and display info-center.
Example
# Configure the Ethernet switch to send
information to the workstation Unix whose IP address is 202.38.160.1.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center loghost
202.38.160.1
Syntax
info-center loghost source interface-type interface-number
undo info-center loghost source
View
System view
Parameter
interface-type: Interface type.
interface-number: Interface number.
Description
Use the info-center loghost
source command to configure the source interface through which log
information is sent to the loghost.
Use the undo info-center
loghost source command to cancel the source interface configuration.
Related command: info-center
enable and display info-center.
Example
# Specify the
source address of the packets sent to the loghost as the address of the VLAN 1
interface.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center loghost source
Vlan-interface 1
Syntax
info-center monitor channel { channel-number | channel-name
}
undo info-center monitor channel
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name:
Channel name, by default, the names of channels 0 to channel 9 are console,
monitor, loghost, trapbuffer, logbuffer, snmpagent,
channel6, channel7, channel8, and channel9.
Description
Use the info-center monitor
channel command to set the channel through which information is output to
user terminals.
Use the undo info-center monitor
channel command to restore the default channel through which the information
is output to user terminals.
By default, the system outputs information
to user terminals.
This command takes effect only when the
information center function is enabled.
Related command: info-center
enable and display info-center.
Example
# Configure channel
0 for outputting log information to user terminals.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center monitor channel 0
Syntax
info-center snmp channel { channel-number | channel-name }
undo info-center snmp channel
View
System view
Parameter
channel-number: Channel number, ranging from 0 to 9, that is, the system has ten
channels.
channel-name:
Channel name, by default, the names of channels 0 to channel 9 are console,
monitor, loghost, trapbuffer, logbuffer, snmpagent,
channel6, channel7, channel8, and channel9.
Description
Use the info-center snmp channel
command to set the channel through which information is output to the SNMP
agent.
Use the undo info-center snmp
channel command to restore the default channel through which information is
output to the SNMP agent.
By default, the system outputs information
to SNMP Agent through channel 5.
Related command: snmp-agent and display
info-center.
Example
# Configure the system to output information
to the SNMP agent through channel 6.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] info-center snmp channel 6
Syntax
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 }*
]*
undo info-center
source { module-name | default } channel { channel-number
| channel-name }
View
System view
Parameter
modu-name:
Module name. Refer to Table 1-4 for the detail.
Table 1-4 Modules generating the information
|
Module name
|
Description
|
|
8021X
|
802.1x
module
|
|
ACCOUNT
|
L3+ real
time accounting module
|
|
ACL
|
Access control
list module
|
|
ADBM
|
Address
base module
|
|
AM_USERB
|
Access
management module
|
|
ARP
|
Address
resolution protocol module
|
|
BGP
|
Border
gateway protocol module
|
|
CFAX
|
Configuration
agent module
|
|
CFM
|
Configuration
file management module
|
|
CLNP
|
Connectionless
network protocol module
|
|
CLNSECHO
|
Connectionless
network protocol echo module
|
|
CLST
|
Cluster
management module
|
|
CMD
|
Command
line module
|
|
DEV
|
Device
management module
|
|
DHCP
|
Dynamic host
configuration protocol module
|
|
DHCPS
|
DHCP
server module
|
|
DHCPSNP
|
DHCP
snooping module
|
|
DIAG
|
Diagnosis
module
|
|
DLDP
|
Device
link detection protocol module
|
|
DNS
|
Domain
name system module
|
|
ENTEXMIB
|
Entity
extended MIB module
|
|
ENTITY
|
ENTITY
module
|
|
ESIS
|
End system
to intermediate system routing protocol module
|
|
ETH
|
Ethernet
module
|
|
FIB
|
Forwarding
information base module
|
|
FTPS
|
FTP server
module
|
|
HA
|
High
availability module
|
|
HABP
|
Huawei authentication
bypass protocol module
|
|
HTTPD
|
HTTP
server module
|
|
HWCM
|
Huawei
Configuration Management proprietary MIB module
|
|
HWP
|
HWPing
module
|
|
IFNET
|
Interface
management module
|
|
IGSP
|
IGMP
snooping module
|
|
IP
|
Internet protocol
module
|
|
IPX
|
IPX
protocol module
|
|
ISIS
|
Intermediate
system-to-intermediate system intra-domain routing information exchange
protocol module
|
|
L2INF
|
Layer 2
interface management module
|
|
LACL
|
Lanswitch
access control list module
|
|
LARP
|
Address
resolution protocol module
|
|
LETH
|
Ethernet
debugging module
|
|
LQOS
|
Lanswitch
quality of service module
|
|
LS
|
Local
server module
|
|
MIX
|
Dual main
control network management module
|
|
MODEM
|
MODEM
module
|
|
MPM
|
Multicast port
management module
|
|
MSDP
|
Multicast
source discovery protocol module
|
|
MSTP
|
Multiple
spanning tree protocol module
|
|
NAT
|
Network
address translation module
|
|
NDP
|
Neighbor
discovery protocol module
|
|
NETSTREA
|
Traffic
statistic module
|
|
NTDP
|
Network
topology discovery protocol module
|
|
NTP
|
Network
time protocol module
|
|
OSPF
|
Open
shortest path first module
|
|
RDS
|
Radius
module
|
|
RM
|
Routing
management module
|
|
RMON
|
Remote
monitor module
|
|
RMX
|
IPX
routing module
|
|
RRPP
|
Rapid ring
protection protocol module
|
|
RSA
|
Revest,
Shamir and Adleman encryption module
|
|
RTA
|
L3+
plug-in card traffic accounting module
|
|
RTPRO
|
Routing
protocol module
|
|
SC
|
Server
control module
|
|
SHELL
|
User
interface module
|
|
SNMP
|
Simple
network management protocol module
|
|
SOCKET
|
Socket
module
|
|
SSH
|
Secure
shell module
|
|
SYSM
|
System
management module
|
|
SYSMIB
|
System MIB
module
|
|
TAC
|
Terminal
access controller module
|
|
TELNET
|
Telnet
module
|
|
TFTPC
|
TFTP client
module
|
|
TUNNEL
|
Packets
transparent transmission module
|
|
UDPH
|
UDP helper
module
|
|
USERLOG
|
User log
module
|
|
VFS
|
Virtual
file system module
|
|
VLAN
|
Virtual
local area network module
|
|
VRRP
|
VRRP
(virtual router redundancy protocol) module
|
|
VTY
|
VTY
(virtual type terminal) module
|
|
default
|
Default
settings of all modules
|
default:
Defaults the settings of all modules.
channel-number:
Number of information channel to be used.
channel-name:
Channel name, by default, the names of channels 0 to channel 9 are console,
monitor, loghost, trapbuffer, logbuffer, snmpagent,
channel6, channel7, channel8, and channel9.
log:
Specifies to output log information.
trap:
Specifies to output trap information.
debug:
Specifies to output debugging information.
level:
Specifies an information severity level.
severity:
Information severity. The information below this severity will not be output.
Information at different levels is as
follows:
emergencies:
Level 1 information, indicates that the system is not available.
alerts:
Level 2 information, requiring immediate reaction.
critical:
Level 3 information, critical information.
errors:
Level 4 information, error information.
warnings:
level 5 information, warning information.
notifications: Level 6 information, normal but important information.
informational: Level 7 information, notice to be recorded.
debugging:
Level 8 information, generated during the debugging process.
The default information level of each
channel is shown in the following table.
Table 1-5 Default information level of
each channel
|
channel
|
Log information level
|
Trap information level
|
Debugging information level
|
|
Console
|
warning
|
|