- Table of Contents
-
- H3C WX3000 Series Unified Switches Switching Engine Command Reference-6W103
- 00-Preface
- 01-CLI Command
- 02-Login Command
- 03-Configuration File Management Command
- 04-VLAN Command
- 05-Auto Detect Command
- 06-Voice VLAN Command
- 07-GVRP Command
- 08-Basic Port Configuration Command
- 09-Link Aggregation Command
- 10-Port Isolation Command
- 11-Port Security-Port Binding Command
- 12-DLDP Command
- 13-MAC Address Table Management Command
- 14-MSTP Command
- 15-802.1x and System Guard Command
- 16-AAA Command
- 17-MAC Address Authentication Command
- 18-IP Address and Performance Command
- 19-DHCP Command
- 20-ACL Command
- 21-QoS-QoS Profile Command
- 22-Mirroring Command
- 23-ARP Command
- 24-SNMP-RMON Command
- 25-Multicast Command
- 26-NTP Command
- 27-SSH Command
- 28-File System Management Command
- 29-FTP-SFTP-TFTP Command
- 30-Information Center Command
- 31-System Maintenance and Debugging Command
- 32-VLAN-VPN Command
- 33-HWPing Command
- 34-DNS Command
- 35-Smart Link-Monitor Link Command
- 36-PoE-PoE Profile Command
- 37-Routing Protocol Command
- 38-UDP Helper Command
- 39-Index
- Related Documents
-
Title | Size | Download |
---|---|---|
30-Information Center Command | 89.67 KB |
Table of Contents
1 Information Center Configuration Commands
Information Center Configuration Commands
Information Center Configuration Commands
display channel
Syntax
display channel [ channel-number | channel-name ]
View
Any view
Parameters
channel-number: Channel number, ranging from 0 to 9, corresponding to the 10 channels of the system.
channel-name: Channel name, by default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, channel9.
Description
Use the display channel command to display the settings of an information channel.
If no argument is specified in the command, the settings of all channels are displayed.
Examples
# Display the settings of information channel 0.
<device> 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
display info-center
Syntax
display info-center [ unit unit-id ]
View
Any view
Parameters
unit-id: Unit ID of the device, the value can only be 1.
Description
Use the display info-center command to display the operation status of information center, the configuration of information channels, the format of time stamp.
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 the operation status of information center, the configuration of information channels, the format of time stamp of the current system.
<device> display info-center
Information Center: enabled
Log host:
the interface name of the source address : Vlan-interface1
192.168.0.2, channel number : 2, channel name : loghost
language : english, host facility local : 7
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 : 512,
current messages : 512, channel number : 4, channel name : logbuffer
dropped messages : 0, overwritten messages : 586
Trap buffer:
enabled,max buffer size : 1024, current buffer size : 256,
current messages : 5, channel number : 3, channel name : trapbuffer
dropped messages : 0, overwritten messages : 0
Information timestamp setting:
log - date, trap - date, debug - boot
Table 1-1 display info-center command output description
Field |
Description |
Information Center |
Status of the information center: enabled/disabled |
Log host |
Information about the log host, including its IP address, name and number of information channel, language and level of the log host |
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 or disabled), its maximum size, current size, 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 or disabled), maximum size, current size, current messages, channel number and name, number of dropped messages, and number of overwritten messages |
Information timestamp setting: |
Information about the time stamp setting, showing the time stamp format of the log, trap and debugging information |
display logbuffer
Syntax
display logbuffer [ unit unit-id ] [ level severity | size buffersize ]* [ | { begin | exclude | include } regular-expression ]
View
Any view
Parameters
unit-id: Unit ID of the device, the value can only be 1.
level severity: Specifies an information severity level. The severity argument ranges from 1 to 8.
Table 1-2 Severity level defined in the information center
Severity |
Severity value |
Description |
emergencies |
1 |
The system is unavailable. |
alerts |
2 |
Information that demands prompt reaction |
critical |
3 |
Critical information |
errors |
4 |
Error information |
warnings |
5 |
Warnings |
notifications |
6 |
Normal information that needs to be noticed |
informational |
7 |
Informational information to be recorded |
debugging |
8 |
Information generated during debugging |
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.
|: Filters output log information with a regular expression.
begin: Displays the log information beginning with the specified characters.
exclude: Displays the log information excluding the specified characters.
include: Displays the log information including the specified characters.
regular-expression: Regular expression.
Description
Use the display logbuffer command to display the status of the log buffer and the records in the log buffer.
Examples
# Display the status of the log buffer and the records in the log buffer.
<device> 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
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 the summary of the log buffer.
<device> display logbuffer summary
EMERG ALERT CRIT ERROR WARN NOTIF INFO DEBUG
0 0 0 0 94 0 0 0
display trapbuffer
Syntax
display trapbuffer [ unit unit-id ] [ size buffersize ]
View
Any view
Parameters
unit-id: Unit ID of the device, the value can only be 1.
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 records in the trap buffer.
If you execute the command with the size buffersize parameter, the device will display the trap records from the latest one.
Examples
# Display the status of the trap buffer and the records in the trap buffer.
<device> 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
#Apr 1 23:55:52:263 2006 device L2INF/2/PORT LINK STATUS CHANGE:- 1 -
Trap 1.3.6.1.6.3.1.1.5.4(linkUp): portIndex is 4227641, ifAdminStatus is 1, ifOperStatus is 1
#Apr 2 00:17:47:875 2006 device L2INF/2/PORT LINK STATUS CHANGE:- 1 -
Trap 1.3.6.1.6.3.1.1.5.3(linkDown): portIndex is 4227833, ifAdminStatus is 2, ifOperStatus is 2
#Apr 4 02:39:37:645 2006 device ARP/5/DUPIP:- 1 -IP address 192.168.0.1 collision
detected, sourced by 000f-e200-0600 on GigabitEthernet1/0/43 of VLAN1 and 000c-760a-172d on GigabitEthernet1/0/43 of VLAN1
……
info-center channel name
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, corresponding to the 10 channels of the system.
channel-name: Channel name, up to 30 characters in length. The name must start with an English letter, containing no special character but numbers and English letters only.
Description
Use the info-center channel name command to name the channel whose number is channel-number as channel-name.
Use the undo info-center channel command to restore the default name of the channel whose number is channel-number.
By default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, channel9.
Do not configure two different channels with the same name.
Examples
# Name channel 0 as “execconsole”.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center channel 0 name execconsole
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, corresponding to the 10 channels of the system.
channel-name: Channel name, by default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, channel9.
Description
Use the info-center console channel command to set the channel through which information is output to the console.
Use the undo info-center console channel command to restore the default channel through which system information is output to the console.
By default, output of information to the console is enabled with channel 0 as the default channel (known as console).
This command works only when the information center is enabled.
Related commands: info-center enable and display info-center.
Examples
# Configure to output information to the console through channel 0.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center console channel 0
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.
Use the undo info-center enable command to disable the information center.
The device can output system information to the log host, the console, and other destinations only when the information center is enabled.
By default, the information center 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.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center enable
% Information center is enabled
info-center logbuffer
Syntax
info-center logbuffer [ channel { channel-number | channel-name } | size buffersize ]*
undo info-center logbuffer [ channel | size ]
View
System view
Parameters
channel: Sets the channel through which information outputs to the log buffer.
channel-number: Channel number, ranging from 0 to 9, corresponding to the 10 channels of the system.
channel-name: Channel name, by default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, channel9.
size buffersize: Specifies the size of the log buffer (number of messages the buffer holds) you want to display. The buffersize argument ranges from 0 to 1,024 and defaults to 512.
Description
Use the info-center logbuffer command to enable information output to the log buffer.
Use the undo info-center logbuffer command to disable information output to the log buffer.
By default, information output to the log buffer is enabled with channel 4 (logbuffer) as the default channel and a maximum buffer size of 512.
This command works only when the information center is enabled.
Related commands: info-center enable, display info-center.
Examples
# Configure the system to output information to the log buffer with the size of 50.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center logbuffer size 50
info-center loghost
Syntax
info-center loghost host-ip-addr [ channel { channel-number | channel-name } | facility local-number ]*
undo info-center loghost host-ip-addr
View
System view
Parameters
host-ip-addr: IP address of a log host.
channel: Sets the information channel for the log host.
channel-number: Channel number, ranging from 0 to 9, corresponding to the 10 channels of the system.
channel-name: Channel name, by default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, channel9.
facility: Configures the device name (facility value) for the log host.
local-number: Facility (device name) of the log host, ranging from local0 to local7, and the default setting is local7.
Description
Use the info-center loghost command to enable information output to a log host through specifying the IP address of the log host.
Use the undo info-center loghost command to disable information output to the log host.
By default, the device does not output information to the log host. When it is enabled, the default channel name will be loghost and the default channel number will be 2.
This command works only when the information center is enabled.
Be sure to set the correct IP address in the info-center loghost command. A loopback IP address will cause an error message, prompting that the address is invalid.
Related commands: info-center enable, display info-center.
Examples
# Configure the system to output system information to the Unix log host whose IP address is 202.38.160.1.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center loghost 202.38.160.1
info-center loghost source
Syntax
info-center loghost source interface-type interface-number
undo info-center loghost source
View
System view
Parameters
interface-type: Specifies an interface type.
interface-number: Specifies an interface number.
Description
Use the info-center loghost source command to configure the source interface through which information is sent to the log host.
Use the undo info-center loghost source command to cancel the source interface configuration.
Related commands: info-center enable, display info-center.
Examples
# Configure VLAN-interface 1 as the source interface through which information is sent to the log host.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center loghost source Vlan-interface 1
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, corresponding to the 10 channels of the system.
channel-name: Channel name, by default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, 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 information is output to user terminals.
By default, output of system information to the monitor is enabled with a default channel name of monitor and a default channel number of 1.
This command works only when the information center is enabled.
Related commands: info-center enable, display info-center.
Examples
# Set the system to output information to user terminals through channel 0.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center monitor channel 0
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, corresponding to the 10 channels of the system.
channel-name: Channel name, by default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, channel9.
Description
Use the info-center snmp channel command to set the channel through which information is output to the SNMP agent.
By default, output of system information to the SNMP NMS is enabled with a default channel name of snmpagent and a default channel number of 5.
Related commands: snmp-agent, display info-center.
Examples
# Set the device to output information to the SNMP agent through channel 6.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center snmp channel 6
info-center source
Syntax
info-center source { modu-name | default } channel { channel-number | channel-name } [ { log | trap | debug } { level severity | state state } ]*
undo info-center source { modu-name | default } channel { channel-number | channel-name }
View
System view
Parameters
modu-name: Module name.
default: Defaults the settings of all modules.
channel-number: Number of information channel to be used.
channel-name: Channel name, by default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, 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 level. Refer to Table 1-2.
state: Sets the information state.
state: Can be 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 configuration of information source and output direction.
This command can be used for filtering of log, trap or debugging information. For example, it can control information output from the IP module to any direction. You can configure to output information with severity higher than “warning” to the log host, and information with severity higher than “informational” to the log buffer, and configure to output trap information to the log host at the same time.
The info-center source command determines the output direction according to channel name or channel number. Each output direction is assigned with a default information channel, as shown in Table 1-3.
Table 1-3 Default information channel
Output direction |
Information channel name |
Console |
console |
Monitor terminal |
monitor |
Log host |
loghost |
Log buffer |
logbuffer |
Trap buffer |
trapbuffer |
SNMP |
snmpagent |
Additionally, each information channel is configured with a default configuration record, whose module name is default and module number is 0xffff0000. However, its default settings for log, trap and debugging information may differ with channels. If no configuration record is configured for a channel, the default configuration record is adopted.
Examples
# Configure to output the log information of the VLAN module on the SNMP channel, and only output the log information above the “emergencies” severity.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center source vlan channel snmpagent log level emergencies
info-center synchronous
Syntax
info-center synchronous
undo info-center synchronous
View
System view
Parameters
None
Description
Use the info-center synchronous command to enable synchronous information output, so that if system information (such as log information) is output when the user is inputting information, the command prompt and the input information are echoed after the output (note that, the command prompt is echoed in command edit state but is not echoed in interactive state).
Use the undo info-center synchronous command to disable synchronous information output.
By default, the synchronous information output function is disabled.
l The synchronous information output function is used in the case that your input is interrupted by a large amount of system output. With this function enabled, the system echoes your previous input and you can continue your operations from where you were stopped.
l Running the info-center synchronous command during debugging information collection may result in a command prompt echoed after each item of debugging information. To avoid unnecessary output, it is recommended to disable synchronous information output in such case.
Examples
# Enable synchronous information output.
<device> system-view
System View: return to User View with Ctrl+Z.
[device]info-center synchronous
Current IC terminal output sync is on
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: Specifies to adopt the time elapsed since system boot, which is in the format of “xxxxxx.yyyyyy”, where xxxxxx is the high 32 bits and yyyyyy the low 32 bits of the elapsed milliseconds.
date: Specifies to adopt the current system date and time, which is in the format of Mmm dd hh:mm:ss:ms yyyy.
none: Specifies not to include time stamp in the specified output information.
Description
Use the info-center timestamp command to set the format of time stamp included in the log/trap/debugging information.
Use the undo info-center timestamp command to restore the default setting of time stamp format.
By default, the date time stamp is adopted for log and trap information, and the boot time stamp is adopted for debugging information.
Examples
# Set the boot time stamp for debugging information.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center timestamp debugging boot
info-center timestamp loghost
Syntax
info-center timestamp loghost { date | no-year-date | none }
undo info-center timestamp loghost
View
System view
Parameters
date: Specifies to adopt the current system date and time, in the format of Mmm dd hh:mm:ss:ms yyyy.
no-year-date: Specifies to adopt the current system date and time excluding the year, in the format of Mmm dd hh:mm:ss:ms.
none: Specifies not to include time stamp in the output information.
Description
Use the info-center timestamp loghost command to set the format of time stamp for the output information sent to the log host.
Use the undo info-center timestamp loghost command to restore the default setting of time stamp format.
By default, the date time stamp is adopted.
Examples
# Set the no-year-date time stamp for the output information sent to the log host.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center timestamp loghost no-year-date
info-center timestamp utc
Syntax
info-center timestamp utc
undo info-center timestamp utc
View
System view
Parameters
None
Description
Use the info-center timestamp utc command to configure to add UTC time zone to the time stamp of the date type output in each direction of the information center.
Use the undo info-center timestamp utc command to restore the default.
By default, the information center does not add UTC time zone to the time stamp of the date type in any output direction.
Related commands: display info-center, info-center timestamp, info-center timestamp loghost, clock timezone.
Examples
# Configure to add UTC time zone to the time stamp of the output information of the information center.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center timestamp utc
# Display the time stamp configuration of the information center.
[device] display info-center
Information Center: enabled
……
Information timestamp setting:
with utc
log - date, trap - date, debug - boot
# If you configure to add the UTC time zone in the time stamp, the system information is output as follows:
%Dec 8 10:12:21:708 2006 [GMT+08:00:00] device SHELL/5/LOGIN:- 1 - VTY(1.1.0.2) in unit1 login
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: Sets the size of the trap buffer.
buffersize: Size of the trap buffer, represented by the number of messages it holds. It ranges from 0 to 1,024 and defaults to 256.
channel: Sets the channel through which information is output to the trap buffer.
channel-number: Channel number, ranging from 0 to 9, corresponding to the 10 channels of the system.
channel-name: Channel name. By default, the name of channel 0 to channel 9 is (in turn) console, monitor, loghost, trapbuffer, logbuffer, snmpagent, channel6, channel7, channel8, 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, information output to the trap buffer is enabled with channel 3 (trapbuffer) as the default channel and a maximum buffer size of 256.
This command takes effect only after the information center function is enabled.
Related commands: info-center enable, display info-center.
Examples
# Enable the system to output trap information to the trap buffer, whose size is set to 30.
<device> system-view
System View: return to User View with Ctrl+Z.
[device] info-center trapbuffer size 30
reset logbuffer
Syntax
reset logbuffer [ unit unit-id ]
View
User view
Parameters
unit-id: Unit ID of the device, the value can only be 1.
Description
Use the reset logbuffer command to clear information recorded in the log buffer.
Examples
# Clear information recorded in the log buffer.
<device> reset logbuffer
reset trapbuffer
Syntax
reset trapbuffer [ unit unit-id ]
View
User view
Parameters
unit-id: Unit ID of the device, the value can only be 1.
Description
Use the reset trapbuffer command to clear information recorded in the trap buffer.
Examples
# Clear information recorded in the trap buffer.
<device> reset trapbuffer
terminal debugging
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameters
None
Description
Use the terminal debugging command to enable debugging terminal display.
Use the undo terminal debugging command to disable debugging terminal display.
By default, debugging terminal display is disabled.
You can execute the terminal debugging command to display debugging information on a user terminal.
Related commands: debugging commands in System Maintenance and Debugging in H3C WX3000 Series Unified Switches Switching Engine Command Reference..
Examples
# Enable debugging terminal display.
<device> terminal debugging
terminal logging
Syntax
terminal logging
undo terminal logging
View
User view
Parameters
None
Description
Use the terminal logging command to enable log terminal display.
Use the undo terminal logging command to disable log terminal display.
By default, log terminal display is enabled for console users and terminal users.
Examples
# Disable log terminal display.
<device> undo terminal logging
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 the function.
By default, this function is enabled for console users and terminal users.
This command works only on the current terminal. The debugging/log/trap information can be output on the current terminal only after this command is executed in user view.
l Disabling the function has the same effect as executing the following three commands: undo terminal debugging, undo terminal logging and undo terminal trapping. That is, no debugging/log/trap information will be displayed on the current terminal.
l If the function is enabled, you can run the terminal debugging/undo terminal debugging, terminal logging/undo terminal logging or terminal trapping/undo terminal trapping command to enable or disable debug/log/trap terminal output respectively.
Examples
# Disable terminal display.
<device> undo terminal monitor
terminal trapping
Syntax
terminal trapping
undo terminal trapping
View
User view
Parameters
None
Description
Use the terminal trapping command to enable trap terminal display.
Use the undo terminal trapping command to disable trap terminal display.
By default, trap terminal display is enabled.
Examples
# Enable trap terminal display.