- Table of Contents
-
- H3C S7500 Series Command Manual(Release 3100 Series)-(V1.04)
- 00-1Cover
- 01-CLI Commands
- 02-Login Commands
- 03-Configuration File Management Commands
- 04-VLAN Commands
- 05-Extended VLAN Application Commands
- 06-IP Address-IP Performance-IPX Commands
- 07-GVRP Commands
- 08-QinQ Commands
- 09-Port Basic Configuration Commands
- 10-Link Aggregation Commands
- 11-Port Isolation Commands
- 12-Port Binding Commands
- 13-DLDP Commands
- 14-MAC Address Table Commands
- 15-MSTP Commands
- 16-Routing Protocol Commands
- 17-Multicast Commands
- 18-802.1x Commands
- 19-AAA-RADIUS-HWTACACS-EAD Commands
- 20-Traffic Accounting Commands
- 21-VRRP-HA Commands
- 22-ARP Commands
- 23-DHCP Commands
- 24-ACL Commands
- 25-QoS Commands
- 26-Mirroring Commands
- 27-Cluster Commands
- 28-PoE Commands
- 29-UDP-Helper Commands
- 30-SNMP-RMON Commands
- 31-NTP Commands
- 32-SSH Terminal Service Commands
- 33-File System Management Commands
- 34-FTP and TFTP Commands
- 35-Information Center Commands
- 36-DNS Commands
- 37-System Maintenance and Debugging Commands
- 38-HWPing Commands
- 39-RRPP Commands
- 40-NAT-Netstream-Policy Routing Commands
- 41-Telnet Protection Commands
- 42-Hardware-Dependent Software Configuration Commands
- 43-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
35-Information Center Commands | 173 KB |
Table of Contents
Chapter 1 Information Center Commands
1.1 Information Center Commands
1.1.4 display logbuffer summary
1.1.7 info-center console channel
1.1.11 info-center loghost source
1.1.12 info-center monitor channel
1.1.13 info-center snmp channel
Chapter 1 Information Center Commands
1.1 Information Center Commands
1.1.1 display channel
Syntax
display channel [ channel-number | channel-name ]
View
Any view
Parameters
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.
Examples
# 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
1.1.2 display info-center
Syntax
display info-center
View
Any view
Parameters
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, info-center timestamp.
Examples
# 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 |
1.1.3 display logbuffer
Syntax
display logbuffer [ level severity | size buffersize ]* [ | { begin | exclude | include } regular-expression ]
View
Any view
Parameters
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 |
|
_ |
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.
Examples
# 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
Parameters
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.
Examples
# 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
1.1.5 display trapbuffer
display trapbuffer [ size buffersize ]
View
Any view
Parameters
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.
Examples
# 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)
1.1.6 info-center channel
Syntax
info-center channel channel-number name channel-name
undo info-center channel channel-number
View
System view
Parameters
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.
Examples
# 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
1.1.7 info-center console channel
Syntax
info-center console channel { channel-number | channel-name }
undo info-center console channel
View
System view
Parameters
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 commands: info-center enable, display info-center.
Examples
# 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
1.1.8 info-center enable
Syntax
info-center enable
undo info-center enable
View
System view
Parameters
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 commands: display info-center, info-center loghost, info-center logbuffer, info-center console channel, info-center monitor channel, info-center trapbuffer, info-center snmp channel.
Examples
# 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
1.1.9 info-center logbuffer
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
Parameters
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 commands: info-center enable, display info-center.
Examples
# 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
# Send log information not containing the command character to the log buffer.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center logbuffer | exclude command
1.1.10 info-center loghost
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
Parameters
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.
& Note:
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 commands: info-center enable, display info-center.
Examples
# 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
1.1.11 info-center loghost source
Syntax
info-center loghost source interface-type interface-number
undo info-center loghost source
View
System view
Parameters
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 commands: info-center enable, display info-center.
Examples
# 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
1.1.12 info-center monitor channel
Syntax
info-center monitor channel { channel-number | channel-name }
undo info-center monitor channel
View
System view
Parameters
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 commands: info-center enable, display info-center.
Examples
# 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
1.1.13 info-center snmp channel
Syntax
info-center snmp channel { channel-number | channel-name }
undo info-center snmp channel
View
System view
Parameters
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 commands: snmp-agent, display info-center.
Examples
# 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
1.1.14 info-center source
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
Parameters
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 |
debugging |
debugging |
Terminal |
warning |
debugging |
debugging |
Log host |
informational |
debugging |
debugging |
Trapbuffer |
informational |
warning |
debugging |
Logbuffer |
warning |
debugging |
debugging |
SNMPagent |
debugging |
warning |
debugging |
Channel6 |
debugging |
debugging |
debugging |
Channel7 |
debugging |
debugging |
debugging |
Channel8 |
debugging |
debugging |
debugging |
Channel9 |
debugging |
debugging |
debugging |
The default state of each channel is shown in the following table.
Table 1-6 Default state of each channel for different types of information
Channel |
Log information |
Trap information |
Debug information |
Console |
Enable |
Enable |
Enable |
Terminal |
Enable |
Enable |
Enable |
Log host |
Enable |
Enable |
Disable |
Trapbuffer |
Disable |
Enable |
Disable |
Logbuffer |
Enable |
Disable |
Disable |
SNMPagent |
Disable |
Enable |
Disable |
Channel6 |
Enable |
Enable |
Disable |
Channel7 |
Enable |
Enable |
Disable |
Channel8 |
Enable |
Enable |
Disable |
Channel9 |
Enable |
Enable |
Disable |
state: State of information.
state: on or off.
Description
Use the info-center source command to specify the information source in the information center and the output direction.
Use the undo info-center source command to cancel the configured information source and output direction.
This command can be used for filtering log, trap or debugging information. For example, it can control information output from the IP module to a self-defined direction. You can configure to output information with a severity higher than “warning” to the log host, and information with a severity higher than “informational” to the log buffer. You can also configure to output trap information to the log host at the same time.
The info-center source command determines the output direction according to a channel name or channel number. Each output direction is assigned a default information channel at present, as shown in the following table.
Table 1-7 Default information channel in each output direction
Output direction |
Information channel name |
Console |
console |
Monitor |
monitor |
Info-center loghost |
loghost |
Log buffer |
logbuffer |
Trap buffer |
trapbuffer |
Snmpagent |
snmpagent |
In addition, each information channel has a default record with a module name of “default” and a module number of 0xffff0000. However, for different information channels, the default log, trap and debugging settings in the records may be different from one another. Use the default configuration record if a module does not have any explicit configuration record in the channel.
Examples
# Enable the output of log information of the VLAN module in SNMP channel and allow the output of the information with a severity higher than or equal to “emergencies”.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center source vlan channel snmp log level emergencies
1.1.15 info-center timestamp
Syntax
info-center timestamp { log | trap | debugging } { boot | date | none }
undo info-center timestamp { log | trap | debugging }
View
System view
Parameters
log: Specifies log information.
trap: Specifies trap information.
debugging: Specifies debugging information.
boot: Time elapsed since system boot, which is in the format of “xxxxxx.yyyyyy”. “xxxxxx” is the most significant 32 bits and “yyyyyy” is the least significant 32 bits of the elapsed milliseconds.
date: Current system date and time, which is in the format “yyyy/mm/dd-hh:mm:ss:ms” for Chinese environment and “Mmm dd hh:mm:ss:ms yyyy” for English environment.
none: Specifies not to include time stamp in output information.
Description
Use the info-center timestamp command to configure the timestamp output format in debugging/trap information.
Use the undo info-center timestamp command to restore the default settings.
By default, the date time stamp is adopted for all types of information.
Examples
# Configure the debugging information timestamp format as boot.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center timestamp debugging boot
1.1.16 info-center trapbuffer
Syntax
info-center trapbuffer [ channel { channel-number | channel-name } | size buffersize ]*
undo info-center trapbuffer [ channel | size ]
View
System view
Parameters
size: Configures the size of the trap buffer.
buffersize: Size of trap buffer (numbers of messages). This argument ranges from 0 to 1,024 and defaults to 256.
channel: Sets the channel through which information is sent to the trap 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 console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, and channel9.
Description
Use the info-center trapbuffer command to enable information output to the trap buffer.
Use the undo info-center trapbuffer command to disable information output to the trap buffer.
By default, the system outputs information to the trap buffer, and the size of the trap buffer is 256.
This command takes effect only after the information center function is enabled.
You can configure the system to output information to the trap buffer by setting the size of the trap buffer.
Related commands: info-center enable, display info-center.
Examples
# Send information to the trap buffer and set the size of buffer to 30.
<H3C>system-view
System View: return to User View with Ctrl+Z.
[H3C] info-center trapbuffer size 30
1.1.17 reset logbuffer
Syntax
reset logbuffer
View
User view
Parameters
none
Description
Use the reset logbuffer command to remove information in log buffer.
Examples
# Clear information in log buffer.
<H3C> reset logbuffer
1.1.18 reset trapbuffer
Syntax
reset trapbuffer
View
User view
Parameters
none
Description
Use the reset trapbuffer command to remove information in trap buffer.
Examples
# Clear information in trap buffer.
<H3C> reset trapbuffer
1.1.19 terminal debugging
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameters
none
Description
Use the terminal debugging command to configure to display the debugging information on the terminal.
Use the undo terminal debugging command to configure not to display the debugging information on the terminal.
By default, the displaying function is disabled for the terminal.
Related commands: debugging commands in the “System Maintaining and Debugging” part of the manual.
Examples
# Enable the terminal debugging display function.
<H3C> terminal debugging
% Current terminal debugging is on
1.1.20 terminal logging
Syntax
terminal logging
undo terminal logging
View
User view
Parameters
none
Description
Use the terminal logging command to enable terminal log information display.
Use the undo terminal logging command to disable terminal log information display.
By default, this function is enabled for console users and terminal users.
Examples
# Disable the terminal log display function.
<H3C> undo terminal logging
% Current terminal logging is off
1.1.21 terminal monitor
Syntax
terminal monitor
undo terminal monitor
View
User view
Parameters
none
Description
Use the terminal monitor command to enable the debugging/log/trap information terminal display function.
Use the undo terminal monitor command to disable these functions.
By default, these functions are enabled for console users and terminal users.
This command only takes effect on the current terminal where the command is input. The debugging/log/trap information can be output to the current terminal only when you execute this command in user view. When the terminal monitor is disabled, no debugging/log/trap information will be displayed in local terminal, which is equal to having performed undo terminal debugging, undo terminal logging, and undo terminal trapping commands. When the terminal monitor is enabled, you can use terminal debugging / undo terminal debugging, terminal logging / undo terminal logging and terminal trapping / undo terminal trapping respectively to enable or disable the corresponding functions.
Examples
# Disable the terminal monitor function.
<H3C> undo terminal monitor
% Current terminal monitor is off
1.1.22 terminal trapping
Syntax
terminal trapping
undo terminal trapping
View
User view
Parameters
None
Description
Use the terminal trapping command to enable terminal trap information display.
Use the undo terminal trapping command to disable this function.
By default, this function is enabled.
Examples
# Enable trap information display.
<H3C> terminal trapping
% Current terminal trapping is on