Você está na página 1de 25

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Table of Contents

Table of Contents
Chapter 1 Information Center Commands .................................................................................. 1-1 1.1 Information Center Commands.......................................................................................... 1-1 1.1.1 display channel........................................................................................................ 1-1 1.1.2 display info-center ................................................................................................... 1-1 1.1.3 display logbuffer ...................................................................................................... 1-3 1.1.4 display logbuffer summary ...................................................................................... 1-5 1.1.5 display trapbuffer..................................................................................................... 1-5 1.1.6 info-center channel.................................................................................................. 1-6 1.1.7 info-center console channel .................................................................................... 1-7 1.1.8 info-center enable ................................................................................................... 1-8 1.1.9 info-center logbuffer ................................................................................................ 1-9 1.1.10 info-center loghost............................................................................................... 1-10 1.1.11 info-center loghost source................................................................................... 1-11 1.1.12 info-center monitor channel................................................................................. 1-12 1.1.13 info-center snmp channel.................................................................................... 1-12 1.1.14 info-center source ............................................................................................... 1-13 1.1.15 info-center timestamp.......................................................................................... 1-19 1.1.16 info-center trapbuffer........................................................................................... 1-20 1.1.17 reset logbuffer ..................................................................................................... 1-21 1.1.18 reset trapbuffer .................................................................................................... 1-21 1.1.19 terminal debugging.............................................................................................. 1-21 1.1.20 terminal logging ................................................................................................... 1-22 1.1.21 terminal monitor .................................................................................................. 1-23 1.1.22 terminal trapping ................................................................................................. 1-23

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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 Y LOG_LEVEL warning ENABLE Y TRAP_LEVEL debugging ENABLE Y DEBUG_LEVEL debugging

ffff0000 default

1.1.2 display info-center


Syntax
display info-center

View
Any view

1-1

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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 Information Center: Log host: Description Information center is enabled. Information about the log host, including its IP address, name and number of information channel, language and level

1-2

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

Field Console: Monitor: SNMP Agent:

Description Information about the console port, including name and number of its information channel Information about the monitor port, including name and number of its information channel Information about SNMP Agent, including name and number of its information channel 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 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 about time stamp, describing the time stamp formats of log information, trap information, and debugging information

Log buffer:

Trap buffer:

Information timestamp setting

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 emergencies alerts critical errors warnings 1 2 3 4 5 Value Emergent errors Errors that need to be corrected immediately Critical errors Errors that need to be considered but are not critical Warnings that prompt possible errors Description

1-3

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

Severity notifications informational debugging 6 7 8

Value

Description Information that needs to be noticed Normal prompting information 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 The left parenthesis, the push-onto-the-stack flag in programming Usage restrictions 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. 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.

1-4

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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 0 1 0 0 CRIT ERROR 0 0 0 0 WARN NOTIF 0 0 0 0 INFO DEBUG 0 0 0 0 0 0

1.1.5 display trapbuffer


Syntax
display trapbuffer [ size buffersize ]

1-5

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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

1-6

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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.

1-7

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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.

1-8

Command Manual Infomation Center H3C S7500 Series Ethernet Switches


<H3C> system-view

Chapter 1 Information Center Commands

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.

1-9

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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.

1-10

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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.
1-11

Command Manual Infomation Center H3C S7500 Series Ethernet Switches


<H3C> system-view

Chapter 1 Information Center Commands

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

1-12

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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.

1-13

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

Table 1-4 Modules generating the information Module name 8021X ACCOUNT ACL ADBM AM_USERB ARP BGP CFAX CFM CLNP CLNSECHO CLST CMD DEV DHCP DHCPS DHCPSNP DIAG DLDP DNS ENTEXMIB ENTITY ESIS ETH FIB FTPS HA HABP HTTPD HWCM 802.1x module L3+ real time accounting module Access control list module Address base module Access management module Address resolution protocol module Border gateway protocol module Configuration agent module Configuration file management module Connectionless network protocol module Connectionless network protocol echo module Cluster management module Command line module Device management module Dynamic host configuration protocol module DHCP server module DHCP snooping module Diagnosis module Device link detection protocol module Domain name system module Entity extended MIB module ENTITY module End system to intermediate system routing protocol module Ethernet module Forwarding information base module FTP server module High availability module Huawei authentication bypass protocol module HTTP server module Huawei Configuration Management proprietary MIB module Description

1-14

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

Module name HWP IFNET IGSP IP IPX ISIS L2INF LACL LARP LETH LQOS LS MIX MODEM MPM MSDP MSTP NAT NDP NETSTREA NTDP NTP OSPF RDS RM RMON RMX RRPP RSA RTA RTPRO HWPing module

Description

Interface management module IGMP snooping module Internet protocol module IPX protocol module Intermediate system-to-intermediate system intra-domain routing information exchange protocol module Layer 2 interface management module Lanswitch access control list module Address resolution protocol module Ethernet debugging module Lanswitch quality of service module Local server module Dual main control network management module MODEM module Multicast port management module Multicast source discovery protocol module Multiple spanning tree protocol module Network address translation module Neighbor discovery protocol module Traffic statistic module Network topology discovery protocol module Network time protocol module Open shortest path first module Radius module Routing management module Remote monitor module IPX routing module Rapid ring protection protocol module Revest, Shamir and Adleman encryption module L3+ plug-in card traffic accounting module Routing protocol module

1-15

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

Module name SC SHELL SNMP SOCKET SSH SYSM SYSMIB TAC TELNET TFTPC TUNNEL UDPH USERLOG VFS VLAN VRRP VTY default Server control module User interface module

Description

Simple network management protocol module Socket module Secure shell module System management module System MIB module Terminal access controller module Telnet module TFTP client module Packets transparent transmission module UDP helper module User log module Virtual file system module Virtual local area network module VRRP (virtual router redundancy protocol) module VTY (virtual type terminal) module 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.
1-16

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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 Console Terminal Log host Trapbuffer Logbuffer SNMPagent Channel6 Channel7 Channel8 Channel9 Log information level warning warning informational informational warning debugging debugging debugging debugging debugging Trap information level debugging debugging debugging warning debugging warning debugging debugging debugging debugging Debugging information level debugging debugging debugging debugging debugging debugging debugging 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 Console Terminal Log host Trapbuffer Logbuffer SNMPagent Channel6 Channel7 Channel8 Log information Enable Enable Enable Disable Enable Disable Enable Enable Enable Trap information Enable Enable Enable Enable Disable Enable Enable Enable Enable Debug information Enable Enable Disable Disable Disable Disable Disable Disable Disable

1-17

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

Channel Channel9

Log information Enable

Trap information Enable

Debug information 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 Console Monitor Info-center loghost Log buffer Trap buffer Snmpagent Information channel name console monitor loghost logbuffer trapbuffer 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.

1-18

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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-19

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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-20

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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

1-21

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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

1-22

Command Manual Infomation Center H3C S7500 Series Ethernet Switches


% Current terminal logging is off

Chapter 1 Information Center Commands

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

1-23

Command Manual Infomation Center H3C S7500 Series Ethernet Switches

Chapter 1 Information Center Commands

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

1-24