- 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 |
---|---|---|
37-System Maintenance and Debugging Commands | 200 KB |
Table of Contents
Chapter 1 Basic System Configuration and Debugging Commands
1.1 Basic System Configuration Commands
1.2 System Status/Information Display Commands
1.3.2 display diagnostic-information
Chapter 2 Network Connectivity Test Commands
2.1 Network Connectivity Test Commands
Chapter 3 Device Management Commands
3.1 Device Management Commands
3.1.4 bootrom-update security-check enable
3.1.12 display schedule reboot
3.1.18 qe monitor errpkt check-time
3.1.19 qe monitor overflow-threshold
Chapter 1 Basic System Configuration and Debugging Commands
1.1 Basic System Configuration Commands
1.1.1 clock datetime
Syntax
clock datetime HH:MM:SS YYYY/MM/DD
View
User view
Parameters
HH:MM:SS: Current time, where HH ranges from 0 to 23, MM and SS range from 0 to 59.
YYYY/MM/DD: Current date, where YYYY is the year ranging from 2000 to 2099, MM is the month ranging from 1 to 12, and DD is the day the range of which is related with the month.
Description
Use the clock datetime command to set the current date and time of the Ethernet switch.
In an environment that needs to obtain exact absolute time, it is required to use this command to set the current date and time of the Ethernet switch.
Related commands: display clock.
Examples
# Set the current date and time of the Ethernet switch to 0:0:0 2001/01/01.
<H3C> clock datetime 0:0:0 2001/01/01
1.1.2 clock summer-time
Syntax
clock summer-time zone-name one-off start-time start-date end-time end-date offset-time
clock summer-time zone-name repeating { start-time start-date end-time end-date | start-time start-year start-month start-week start-day end-time end-year end-month end-week end-day } offset-time
undo clock summer-time
View
User view
Parameters
zone-name: Name of the daylight saving time, 1 to 32 characters long.
one-off: Sets the daylight saving time for only one year (the specified year).
repeating: Sets the daylight saving time for every year starting from the specified year.
start-time start-date: Start time and start date of the daylight saving time, in the form of HH:MM:SS YYYY/MM/DD.
end-time end-date: End time and end date of the daylight saving time, in the form of HH:MM:SS YYYY/MM/DD.
start-year: Start year, in the range of 2000 to 2099.
start-month: Start month, the value of which is January, February, March, April, May, June, July, August, September, October, November, and December.
start-week: Start week, the value of which is first, second, third, fourth, fifth, and last.
start-day: Start day, the value of which is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday.
end-year: End year, which should be the same year as the start year, ranges from 2000 to 2099.
end-month: End month, the value of which is January, February, March, April, May, June, July, August, September, October, November, and December.
end-week: End week, the value of which is first, second, third, fourth, fifth, and last.
end-day: End day, the value of which is Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
offset-time: Offset of the daylight saving time relative to the standard time.
Description
Use the clock summer-time command to set the name and time range of the daylight saving time.
Use the undo clock summer-time to cancel the settings.
After the setting, you can use the display clock command to check the results. The time of the log and debugging information adopts the local time that has been adjusted by the time zone and daylight saving time.
Related commands: clock timezone.
Examples
# Set the daylight saving time named z2, which starts from 06:00:00 2002/06/08, ends until 06:00:00 2002/09/01, and is one hour ahead of the standard time.
<H3C> clock summer-time z2 one-off 06:00:00 2005/06/08 06:00:00 2002/09/01 01:00:00
# Set the daylight saving time named z2, which starts from 06:00:00 06/08, ends until 06:00:00 09/01, and is one hour ahead of the standard time every year from 2002 on.
<H3C> clock summer-time z2 repeating 06:00:00 2002/06/08 06:00:00 2002/09/01 01:00:00
1.1.3 clock timezone
Syntax
clock timezone zone-name { add | minus } HH:MM:SS
undo clock timezone
View
User view
Parameters
zone-name: Name of the time zone, in length of 1 to 32 characters.
add: Sets the time zone to a time before the UTC time.
minus: Sets the time zone to a time behind the UTC time.
HH:MM:SS: Time to be subtracted from the UTC time, in the form of HH:MM:SS.
Description
Use the clock timezone command to set the local time zone.
Use the undo clock timezone command to restore the local time zone to the default UTC (universal time coordinated) time zone.
After the setting, you can use the display clock command to check the results. The log information time and the debugging information time adopt the local time that has been adjusted by the time zone and the daylight saving time.
Related commands: clock summer-time.
Examples
# Set the local time zone named z5, which is five hours ahead of the UTC time.
<H3C> clock timezone z5 add 05:00:00
1.1.4 language-mode
Syntax
language-mode { chinese | english }
View
User view
Parameters
chinese: Sets the CLI language environment to Chinese.
English: Sets the CLI language environment to English.
Description
Use the language-mode command to toggle between the language modes (that is, language environments) of the command line interface (CLI) to meet your requirement.
By default, the CLI language mode is english.
Examples
# Toggle from the english mode to the chinese mode.
<H3C> language-mode chinese
1.1.5 quit
Syntax
quit
View
Any view
Parameters
None
Description
Use the quit command to return from current view to lower level view, or exit the system if current view is user view.
The following lists the three levels of views available (from lower level to higher level):
l User view
l System view
l VLAN view, Ethernet port view, and so on
Related commands: return and system-view.
Examples
# Return from system view to user view.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] quit
<H3C>
1.1.6 return
Syntax
return
View
System view and higher level views
Parameters
None
Description
Use the return command to return from current view to user view. The composite key <Ctrl+Z> has the same effect with the return command.
Related commands: quit.
Examples
# Return from interface view to user view.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] return
<H3C>
1.1.7 sysname
Syntax
sysname sysname
undo sysname
View
System view
Parameters
sysname: System name of the Ethernet switch. It is a character string in length of 1 to 30 characters. By default, it is H3C.
Description
Use the sysname command to set the system name of the Ethernet switch. Changing the system name will affect the CLI prompt. For example, if the system name of the switch is H3C, the prompt for user view is <H3C>.
Use the undo sysname command to restore the default system view of the Ethernet switch.
Examples
# Set the system name of the Ethernet switch to H3CLANSwitch.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] sysname H3CLANSwitch
[H3CLANSwitch]
1.1.8 system-view
Syntax
system-view
View
User view
Parameters
None
Description
Use the system-view command to enter system view from user view.
Related commands: quit and return.
Examples
# Enter system view from user view.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C]
1.2 System Status/Information Display Commands
1.2.1 display clock
Syntax
display clock
View
Any view
Parameters
None
Description
Use the display clock command to display the current date and time of the system, so that you can adjust them if they are wrong.
The maximum date and time that can be displayed by this command is 23:59:59 9999/12/31.
Related commands: clock datetime.
Examples
# Display the current date and time of the system.
<H3C> display clock
18:36:31 beijing Sat 2002/02/02
Time Zone : beijing add 01:00:00
Summer-Time : bj one-off 01:00:00 2003/01/01 01:00:00 2003/08/08 01:00:00
Table 1-1 Description on the fields of the display clock command
Field |
Description |
18:36:31 beijing Sat 2002/02/02 |
Current date and time of the system |
Time Zone |
Configured time zone information |
Summer-Time |
Configured daylight saving time information |
1.2.2 display debugging
Syntax
display debugging [ interface interface-type interface-number ] [ module-name ]
View
Any view
Parameters
interface-type: Interface type, supported by the switch, which can be Ethernet, GigabitEthernet, AUX, VLAN-interface and so on.
interface-number: Interface number.
module-name: Module name.
Description
Use the display debugging command to display enabled debugging.
If you want to view the current enabled debugging, you can execute the display debugging command. Executing this command without any parameter will display all enabled debugging.
Related commands: debugging.
Examples
# Display all enabled debugging.
<H3C> display debugging
IP packet debugging is on.
The above information indicates that the IP packets debugging is enabled.
1.2.3 display users
Syntax
display users [ all ]
View
Any view
Parameters
all: Displays the information about all user terminal interfaces.
Description
Use the display users command to display the status and configuration information about user terminal interfaces.
Examples
# Display the status and configuration information about user terminal interfaces.
<H3C> display users
UI Delay Type Ipaddress Username
0 AUX 0 00:00:17
8 VTY 0 01:37:55 TEL 192.168.0.200
+ 9 VTY 1 00:00:00 TEL 192.168.0.3
12 VTY 4 00:00:00 TEL 192.168.0.115
Table 1-2 Description on the output user terminal interface information
Item |
Description |
UI |
User interface |
Delay |
Delay time when no interaction occurs between user and device |
Type |
User login type |
Ipaddress |
IP address used when login using telnet program |
Username |
User name |
1.2.4 display version
Syntax
display version
View
Any view
Parameters
None
Description
Use the display version command to display the information (such as the version information) about the switch system.
Specifically, you can use this command to check the software version and issue time, the basic hardware configuration, and some other information about the switch.
Examples
# Display the version of the system.
<H3C> display version
H3C Comware Platform Software
Comware software, Version 3.10, Release 3135
Copyright (c) 2004-2007 Hangzhou H3C Technologies Co., Ltd. All rights reserved.
H3C S7506R uptime is 0 week, 0 day, 0 hour, 23 minutes
SRPG 1: uptime is 0 weeks,0 days,0 hours,23 minutes
H3C S7500 with 1 MPC8245 Processor
256M bytes SDRAM
32768K bytes Flash Memory
512K bytes NVRAM Memory
PCB Version : VER.B
BootROM Version : 530
CPLD Version : 004
Second CPLD Ver : 005
Software Version : S7506R-3135
Patch Version : None
LPU 1: uptime is 0 weeks,0 days,0 hours,21 minutes
H3C S7500 LPU with 1 MPC8241 Processor
128M bytes SDRAM
0K bytes Flash Memory
0K bytes NVRAM Memory
PCB Version : VER.B
BootROM Version : 510
CPLD Version : 002
Software Version : S7506R-3135
Patch Version : None
1.3 System Debugging Commands
1.3.1 debugging
Syntax
debugging { all [ timeout interval ] | module-name debugging-option }
undo debugging { all | module-name debugging-option }
View
User view
Parameters
all: Enables or disables all debugging.
timeout interval: Sets the timeout time for all debugging, in the range of 1 to 1,440 (in minutes). After the setting, all debugging is valid in the specified period which starts from the time when the debugging is enabled. After the period, all debugging will be disabled.
module-name: Module name.
debugging-option: Debugging option.
Description
Use the debugging command to enable system debugging.
Use the undo debugging command to disable system debugging.
By default, all debugging is disabled for the system.
Ethernet switches provide various debugging functions for technical support specialists and senior maintenance personnel to do network fault diagnostics.
Enabling debugging will generate a great deal of debugging information and thus will affect the efficiency of the system, especially after enabling all debugging through the debugging all command, the system may collapse. Therefore, it is recommended not to use the debugging all command. The undo debugging all command brings great convenience for you to disable all debugging at a time instead of disabling them one by one.
Related commands: display debugging.
Examples
# Enable IP packet debugging.
<H3C> debugging ip packet
1.3.2 display diagnostic-information
Syntax
display diagnostic-information [ module-name ]
View
Any view
Parameters
module-name: Module name. See the following table for details:
Table 1-3 Module name list
Module name |
Description |
ARP |
ARP module information |
DRV |
Driver information |
FTTH |
FTTH information |
IGMP |
Multicast information |
IP |
IP module information |
L2INF |
Interface management information |
LACP |
Link aggregation information |
MEMORY |
Memory information |
QUEUE |
Queue management information |
RXTX |
Packet transmission information |
STP |
STP information |
SYSTEM |
System status information |
Description
Use the display diagnostic-information command to display operation information about all or specified functional modules.
When the system goes wrong, you need to collect much information to locate the fault. However, each module has its corresponding display command, which make it difficult for you to collect all the information needed at a time. In this case, you can use display diagnostic-information command to collect the operation information about all or specified module. For displaying all information at a time costs a long time and is not convenient to view, this command provides two modes for you to collect the information
l Output information to the Console.
l Output information to a file.
You can choose one according to the prompt of the system.
Examples
# Display operation information about ARP module, output the information to the file diaginfo.txt and save the file to the Flash memory.
<H3C> display diagnostic-information ARP
Redirect it to file?[Y/N]y
Please input the file name(*.txt)[flash:/diaginfo.txt]:
This operation may take a few minutes, continue?[Y/N]y
Writing diagnostic information to flash:/diaginfo.txt now.
.......
<H3C>
1.3.3 terminal debugging
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameters
None
Description
Use the terminal debugging command to enable terminal display for debugging information.
Use the undo terminal debugging command to disable terminal display for debugging information.
By default, terminal display for debugging information is disabled.
Related commands: debugging.
Examples
# Enable terminal display for debugging information.
<H3C> terminal debugging
Chapter 2 Network Connectivity Test Commands
2.1 Network Connectivity Test Commands
2.1.1 ping
Syntax
ping [ -a ip-address | -c count | -d | -f | -h ttl | -i interface-type interface-number | -n | - p pattern | -q | -r | -s packetsize | -t timeout | -tos tos | -v | ip ]* host-ip
ping ipx ipx-address [ -c count | -s packetsize | -t timeout ]*
ping clns nsap-address
View
Any view
Parameters
-a ip-address: Sets the source IP address to send the ICMP ECHO-REQUEST packets.
-c count: Specifies how many times the ICMP ECHO-REQUEST packet will be sent. The count argument is the times, which ranges from 1 to 4,294,967,295 and defaults to 5.
-d: Sets the socket to DEBUGGING mode. By default, it is non-DEBUGGING mode.
-f: Specifies to discard a packet directly instead of fragmenting it if its length is greater than the MTU (maximum transmission unit) of the interface.
-h ttl: Sets the TTL (time to live) value of the echo request packets in the range of 1 to 255. By default, the TTL value is 255.
-i: Selects the specified interface to send the ICMP packets.
interface-type: Interface type.
interface-number: Interface number.
-n: Specifies to regard the host-ip argument as an IP address without performing domain name resolution. By default, the host-ip argument is first regarded as an IP address; if it is not an IP address, domain name resolution is performed.
-p pattern: Specifies the padding byte pattern of the ICMP ECHO-REQUEST packets. The pattern argument is a byte in hexadecimal. For example, -p ff fills a packet with only ff. By default, the system fills a packet with 0x01, 0x02, and so on, until 0x09; then it repeats this procedure from 0x01 again.
-q: Specifies to display only the statistics and not to display the details. By default, all the information including the details and statistics will be displayed.
-r: Specifies to record the routes. By default, the system does not record any route.
-s packetize: Specifies the size (in bytes) of each ECHO-REQUEST packet (excluding the IP and ICMP headers). The packetize argument ranges from 20 to 32,000 and defaults to 56 bytes.
-t timeout: Sets the timeout time (in ms) waiting for an ECHO-RESPONSE packet after an ECHO-REQUEST packet is sent. The timeout argument ranges defaults to 2,000 ms.
-tos tos: Sets the ToS value of the echo request packets in the range of 0 to 255. By default, this value is 0.
-v: Specifies to display other ICMP packets received (that is, non-ECHO-RESPONSE packets). By default, except for the ECHO-RESPONSE packets, other ICMP packets are not displayed.
ip: Chooses IP ICMP packet.
host-ip: Domain name or IP address of the destination host, 1 to 30 characters long.
ipx: Chooses IPX packet.
ipx-address: IPX address of the destination host.
clns: Chooses CLNS ECHO packets.
nsap-address: NSAP address of the destination host.
Description
Use the ping command to check the connectivity of IP network or IPX network, and the reachability of a host.
The process of executing of the ping command in the IP network: First, the source host sends an ICMP ECHO-REQUEST packet to the destination host. If the connection to the destination network is normal, the destination host receives this packet and responds with an ICMP ECHO-REPLY packet.
You can use the ping command to check the network connectivity and the quality of a network line. This command can output the following information:
l Response status of the destination to each ICMP ECHO-REQUEST packet. If no response packet is received within the timeout time, including the number of bytes, packet sequence number, TTL and response time of the response packet. If no response packet is received within the timeout time, the message "Request time out" is displayed instead.
l Final statistics, including the numbers of sent packets and received response packets, the irresponsive packet percentage, and the minimum, average and maximum values of response time.
You can set a relatively long timeout time waiting for response packet if the network transmission is slow.
Related commands: tracert.
Examples
# Check the reachability of the host with IP address 202.38.160.244.
<H3C> ping 202.38.160.244
Ping 202.38.160.244: 56 data bytes, press CTRL_C to break
Reply from 202.38.160.244 : bytes=56 sequence=1 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56 sequence=2 ttl=255 time = 2ms
Reply from 202.38.160.244 : bytes=56 sequence=3 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56 sequence=4 ttl=255 time = 3ms
Reply from 202.38.160.244 : bytes=56 sequence=5 ttl=255 time = 2ms
--202.38.160.244 ping statistics--
5 packet transmitted
5 packet received
0.00% packet loss
round-trip min/avg/max = 1/2/3 ms
2.1.2 tracert
Syntax
tracert [ -a source-ip | -f first-TTL | -m max-TTL | -p port | -q num-packet | -w timeout ] * host
tracert clns [ -m max-TTL | -n num-packet | -t timeout | -v ]* nsap-address
View
Any view
Parameters
-a source-ip: Sets the source IP address used by this command.
-f first-TTL: Sets the initial TTL of the packets to be sent, so that this command displays the addresses of only those gateways on the path whose hop counts are not smaller than the hop count specified by the first-TTL argument. For example, if the first-TTL argument is three, the command displays the addresses of the gateways from the third hop. The first-TTL argument ranges from 1 to 255 and defaults to 1.
-m max-TTL: Sets the maximum TTL value of the packets to be sent. After the command sends a packet with the maximum TTL, it will not send any more packets. With this argument, this command displays the addresses of only those gateways from the source destination to the hop count specified by the argument. For example, if the max-TTL argument is 5, the command displays the addresses of the gateways from the source to the fifth count. The max-TTL argument ranges from 1 to 255 and defaults to 30.
-p port: Sets the destination port of the packets to be sent. The port argument ranges from 0 to 65535 and defaults to 33434. Generally, you need not change the argument.
-q num-packet: Sets the number of packets to be sent every time. The num-packet argument ranges from 0 to 65,535 and defaults to 3.
-w timeout: Sets the timeout time to wait for ICMP error packets. The timeout argument ranges from 0 to 65,535 and defaults to 5,000 (in milliseconds).
host: IP address of the destination host or the host name of the remote system, 1 to 30 characters long.
clns: Connectionless network service, a suit of protocols in OSI system, including CLNP, ISIS and ESIS.
-m max-TTL: Sets a maximum TTL value. The max-TTL argument ranges from 1 to 255 and defaults to 30.
-n num-packet: Indicates the integral number of the sent test packets. The num-packet argument ranges from 0 to 65535 and defaults to 3.
-t timeout: Sets the timeout time of the tracert command. The timeout argument, in seconds, ranges from 0 to 65535 and defaults to 5.
-v: Explains the error if the response packet error occurs. If no error occurs, after you execute the command, the result is the same as the command is executed without -v.
nsap-address: NSAP address of the destination host.
Description
Use the tracert command to trace the gateways the test packets passes through during its journey from the source to the destination. This command is mainly used to check the network connectivity. It can help you locate the trouble spot of the network.
The executing procedure of the tracert command is as follows: First, the source sends a packet with the TTL of 1, and the first hop device returns an ICMP error message indicating that it cannot forward this packet because of TTL timeout. Then, the source resends a packet with the TTL of 2, and the second hop device also returns an ICMP TTL timeout message. This procedure goes on and on until a packet gets to the destination or the maximum TTL is reached. During the procedure, the system records the source address of each ICMP TTL timeout message in order to offer the path that the packets pass through to the destination.
If you find that the network is in trouble by using the ping command, you can use the tracert command to find where the trouble is in the network.
The tracert command can output the IP addresses of all the gateways the packets pass through to the destination. It output the string "***" if a gateway times out.
Examples
# Trace the gateways the packets pass through during its journey to the destination with IP address 18.26.0.115.
<H3C> tracert 18.26.0.115
tracert to 18.26.0.115(18.26.0.115), 30 hops max, 40 bytes packet
1 128.3.112.1(128.3.112.1) 0 ms 0 ms 0 ms
2 128.32.216.1(128.32.216.1) 19 ms 19 ms 19 ms
3 128.32.21.61(128.32.21.61) 39 ms 19 ms 19 ms
4 128.32.136.23(128.32.136.23) 19 ms 39 ms 39 ms
5 128.32.168.22(128.32.168.22) 20 ms 39 ms 39 ms
6 128.32.197.4(128.32.197.4) 59 ms 119 ms 39 ms
7 131.119.2.5(131.119.2.5) 59 ms 59 ms 39 ms
8 129.140.70.13(129.140.70.13) 80 ms 79 ms 99 ms
9 129.140.71.6(129.140.71.6) 139 ms 139 ms 159 ms
10 129.140.81.7(129.140.81.7) 199 ms 180 ms 300 ms
11 129.140.72.17(129.140.72.17) 300 ms 239 ms 239 ms
12 * * *
13 128.121.54.72(128.121.54.72) 259 ms 499 ms 279 ms
14 * * *
15 * * *
16 * * *
17 * * *
18 18.26.0.115(18.26.0.115) 339 ms 279 ms 279 ms
Chapter 3 Device Management Commands
3.1 Device Management Commands
3.1.1 boot boot-loader
Syntax
boot boot-loader { primary | backup } file-url
View
User view
Parameters
primary: Specifies an application as primary boot application.
backup: Specifies an application as backup boot application.
file-url: Path + name of an APP file in the Flash memory or CF card.
Description
Use the boot boot-loader command to specify the APP file that will be adopted when the switch reboots next time.
You can use this command to specify a primary and backup boot application for a switch. The boot process is as following:
l Normally, primary boot application is adopted for boot.
l When the primary boot application goes wrong, the switch automatically uses the backup boot application to startup.
l If the switch can not boot through primary and backup boot applications, it chooses an application in the Flash randomly for boot. If the switch still can not boot, then the switch fails to boot.
The BootROM with the version not below 400 supports double applications boot.
Examples
# Specify the S7500.APP as the main application adopted when the active SRPU reboots next time.
<H3C> boot boot-loader primary S7500.APP slot 0
# Specify the S7500.APP as the main application file adopted when the standby SRPU reboots next time.
<H3C> boot boot-loader primary slot1#flash:/S7500.APP slot 1
3.1.2 boot bootrom
Syntax
boot bootrom file-url slot slot-list
View
User view
Parameters
file-url: Path + name of a BootROM file (that is, a .btm file) in the Flash memory.
slot slot-list: Specifies the slot number list, which is provided in the format of slot-list= { slot-number [ to slot-number ] } & <1-N>, where &<1-N> means that you can specify up to N slot numbers or slot number ranges. For S7506, and S7506R, N is 7 and for S7503, N is 4.
Description
Use the boot bootrom command to update the BootROM.
Examples
# Update the BootROM of the card in slot 1 of the switch using the file named S7500.btm.
<H3C> boot bootrom S7500.btm slot 1
3.1.3 boot bootrom default
Syntax
boot bootrom default [ slot slot-list ]
View
User view
Parameters
slot-list: Slot number list, provided in the format of slot-list = [ slot-number [ to slot-number ] ]&<1-N>, where &<1-N> means that you can specify up to N slot numbers or slot number ranges. For S7506, and S7506R, N is 7 and for S7503, N is 4.
Description
Use the boot bootrom default command to upgrade the BootROM by using the current boot file.
Examples
# Use the current boot file to upgrade the BootROM of all service cards that working normally.
<H3C> boot bootrom default
3.1.4 bootrom-update security-check enable
Syntax
bootrom-update security-check enable
undo bootrom-update security-check enable
View
System view
Parameters
None
Description
Use the bootrom-update security-check enable command to enable the validity check function when upgrading Boot ROM.
Use the undo bootrom-update security-check enable command to disable the validity check function when upgrading Boot ROM.
By default, validity check function is enabled during Boot ROM upgrade.
S7500 series switches have many cards. Every card has its own Boot ROM application. Wrongly upgrading the Boot ROM causes serious results. The validity checking is used to avoid the above wrong operation.
Examples
# Enable the validity check function.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] bootrom-update security-check enable
3.1.5 display boot-loader
Syntax
display boot-loader
View
Any view
Parameters
None
Description
Use the display boot-loader command to display the APP file that is adopted when the switch boots this time and next time.
Examples
# Display the APP that will be adopted when the switch reboots.
<H3C> display boot-loader
The primary app to boot of board 0 at the next time is: flash:/ccc.app
The backup app to boot of board 0 at the next time is: flash:/ddd.app
The app to boot of board 0 at this time is: flash:/ccc.app
Table 3-1 Description on the fields of the display boot-loader command
Field |
Description |
The primary app to boot of board 0 at the next time |
Primary boot file used by the device for reboot next time |
The backup app to boot of board 0 at the next time |
Backup boot file used by the device for reboot next time |
The app to boot of board 0 at this time |
Boot file used by the device for boot this time |
3.1.6 display cpu
Syntax
display cpu [ slot slot-number ]
View
Any view
Parameters
slot slot-number: Specifies a slot. The CPU status of the card on the slot is to be displayed.
Description
Use the display cpu command to display the CPU usage of a specified switch.
Examples
# Display the CPU usage of the card on slot 0 of the switch.
<H3C> display cpu slot 0
Board 0 CPU busy status:
18% in last 5 seconds
19% in last 1 minute
19% in last 5 minutes
Table 3-2 Description on the fields of the display cpu command
Field |
Description |
CPU busy status |
Indicates that the following lines describe the CPU occupancies in different time periods. |
18% in last 5 seconds 19% in last 1 minute 19% in last 5 minutes |
The CPU usage in the last five seconds is 18%. The CPU usage in the last one minute is 19%. The CPU usage in the last five minutes is 19%. |
3.1.7 display device
Syntax
display device [ detail | [ shelf shelf-no ] [ frame frame-no ] [ slot slot-number ] ]
View
Any view
Parameters
detail: Detail information about the specified switch.
shelf-no: Shelf number of a switch.
frame-no: Frame number of a switch.
slot-number: Slot number of a switch.
Description
Use the display device command to display the information, such as the module type and operating status, about each board (main board and sub board) of a specified switch.
You can use this command to display the following information about each board: slot number, slot type, slot status, sub slot number, software version, and patch version.
Examples
# Display board information of this switch.
<H3C> display device
H3C S7506R Salience III
Slot No. Brd Type Brd Status Subslot Num Sft Ver Patch Ver
0 NONE Absent Absent None None
1 LS81SRPG Master 0 S7506R-3135 None
2 LS81GT48 Normal 0 S7506R-3135 None
3 NONE Absent Absent None None
4 NONE Absent Absent None None
5 NONE Absent Absent None None
6 NONE Absent Absent None None
7 NONE Absent Absent None None
3.1.8 display environment
Syntax
display environment
View
Any view
Parameters
none
Description
Use the display environment command to display the environment information.
Examples
# Display the environment information.
<H3C> display environment
System temperature information (degree centigrade):
----------------------------------------------------
Board Temperature Lower limit Upper limit
1 30 10 70
3 43 10 80
5 33 10 70
3.1.9 display fan
Syntax
display fan [ fan-id ]
View
Any view
Parameters
fan-id: ID number of a fan.
Description
Use the display fan command to view the working state of the built-in fans.
You can check whether the fans are working normally through the command.
Examples
# Display the working state of the fans.
<H3C> display fan
Fan 1 State: Normal
The above information indicates that fan works normally.
3.1.10 display memory
Syntax
display memory [ slot slot-number | limit ]
View
Any view
Parameters
slot slot-number Specifies a slot number, the usage state of the memory on the slot will be displayed.
limit: Displays the memory configuration information of the device.
Description
Use the display memory command to display the memory usage of a specified switch.
Examples
# Display the memory usage on slot 0 of the switch.
<H3C> display memory slot 0
System Total Memory(bytes): 197932416
Total Used Memory(bytes): 65234704
Used Rate: 32%
Table 3-3 Description on the fields of the display memory command
Field |
Description |
System Total Memory(bytes) |
Total memory size of the system, in unit of bytes |
Total Used Memory(bytes) |
Used memory size of the system, in unit of bytes |
Used Rate |
Percentage of the used memory |
# Display the current configuration information of the switch.
<H3C> display memory limit
Current memory limit configuration information:
system memory safety: 40 (MBytes)
system memory limit: 30 (MBytes)
auto-establish enabled
Free Memory: 108120672 (Bytes)
The state information about connection:
The times of disconnect: 0
The times of reconnect: 0
The current state: Normal
3.1.11 display power
Syntax
display power [ power-id ]
View
Any view
Parameters
power-id: Power ID.
Description
Use the display power command to view the state of the power supply of the switch.
Examples
# Display the state of the power supply.
<H3C> display power
Power 1 State: Absent
Power 2 State: Normal
Power 3 State: Absent
3.1.12 display schedule reboot
Syntax
display schedule reboot
View
Any view
Parameters
None
Description
Use the display schedule reboot command to display information about scheduled reboot.
Related commands: reboot, schedule reboot at.
Examples
# Display the information about scheduled reboot.
<H3C> display schedule reboot
System will reboot at 16:00:00 2004/11/1 (in 2 hours and 5 minutes).
3.1.13 display uplink monitor
Syntax
display uplink monitor
View
Any view
Parameters
None
Description
Use the display uplink monitor command to view information about Layer 3 connectivity between the local device and the remote device.
Related commands: uplink monitor.
Examples
# View information about Layer 3 connectivity between the local device and the remote device.
<H3C> display uplink monitor
UpLink monitor information
No. Dest_IP_Addr Dest_MAC_Addr Vlan Port ErrCnt Last_Err_Time
1 192.168.0.35 ----.----.---- 1 - 135 04/29 16:15:04
The above information shows there are 135 Layer 3 connectivity errors between the local device and the remote device whose IP address is 192.168.0.35.
3.1.14 loadsharing enable
Syntax
loadsharing enable
undo loadsharing enable
View
System view
Parameters
None
Description
Use the loadsharing enable command to enable system load sharing.
Use the undo loadsharing enable command to disable system load sharing.
By default, system load sharing function is disabled.
With system load sharing enabled, when an LPU receives traffic to be cross-card forwarded, load sharing is performed between the active SRPU and the standby SRPU.
& Note:
l Only unicast traffic supports load sharing.
l Only Salience III or Salience III Plus SRPU supports load sharing.
l Only LPUs of XGbus type support load sharing.
Examples
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] loadsharing enable
3.1.15 pause-protection
Syntax
pause-protection { enable | disable } slot slot-number
View
System view
Parameters
enable: Enables pause frame protection mechanism.
disable: Disables pause frame protection mechanism.
slot slot-number: Specifies a slot where board is to seat in.
Description
Use the pause-protection command to enable/disable pause frame protection mechanism.
Pause frame protection mechanism is disabled by default.
Pause frames, which can be utilized as packets to attack a network, are used in traffic controlling. A switch that has pause frame protection mechanism enabled discards the detected pause frames that are utilized to attack the network it resides and logs these attacks in the logbuffer. If the switch experiences successive pause frame attacks, it sends messages to the console to warn users.
Caution:
Only A type cards support pause frame protection mechanism and the related commands. A type cards include: LS81FT48A, LS81FM24A, LS81FS24A, LS81GB8UA, and LS81GT8UA.
Examples
# Enable pause frame protection mechanism on the board in slot 7.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] pause-protection enable slot 7
3.1.16 qe monitor
Syntax
qe monitor { enable | disable }
View
System view
Parameters
enable: Enables queue traffic monitoring.
disable: Disables queue traffic monitoring.
Description
Use the qe monitor command to enable/disable queue traffic monitoring.
Queue traffic monitoring is disabled by default.
With queue traffic monitoring enabled on a switch, the switch monitors the queue traffic and relieves blocks in the output queue of its interfaces.
The criterion used to distinguish a block is that the queue is full and the traffic of the corresponding interface is less than the specified threshold.
Refer to the qe monitor overflow-threshold command for information about how to set a threshold.
Examples
# Enable queue traffic monitoring.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] qe monitor enable
3.1.17 qe monitor errpkt
Syntax
qe monitor errpkt { all | none | runt }
View
Ethernet port view
Parameters
all: Specifies to detect all error packets on current interface.
none: Specifies not to detect error packets on current interface.
runt: Specifies to detect error packets that are of runt type on current interface. Error packets that are of runt type refer to frames whose data segment is less than 64 bytes without CRC errors.
Description
Use the qe monitor errpkt command to configure error packets detection function on current interface.
A switch does not detect error packets on current interface by default.
If the switch receives a great number of error packets, it will not be able to send/receive packets properly. With error packets monitoring enabled, the switch collects information about received error packets regularly. If error packets are detected, it takes protection measures to ensure that its interfaces send/receive packets properly.
Examples
# Specify to detect error packets that are of runt type on Ethernet 4/0/1 interface.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 4/0/1
[H3C-Ethernet4/0/1] qe monitor errpkt runt
3.1.18 qe monitor errpkt check-time
Syntax
qe monitor errpkt check-time interval
View
System view
Parameters
interval: Specifies the interval for detecting error packets. The interval argument ranges from 1 to 3600 (in seconds) and defaults to 5.
Description
Use the qe monitor errpkt check-time command to set the interval for detecting error packets.
If the switch receives a great number of error packets, it will not be able to send/receive packets properly. With error packets monitoring enabled, the switch collects information about received error packets at intervals. If error packets are detected, it takes protection measures to ensure that its interfaces send/receive packets properly.
Examples
# Set the interval for detecting error packets to 50 seconds.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] qe monitor errpkt check-time 50
3.1.19 qe monitor overflow-threshold
Syntax
qe monitor overflow-threshold threshold
View
System view
Parameters
threshold: Integer that sets the overall traffic threshold, ranging from 0 to 4294967295 (in bps).
Description
Use the qe monitor overflow-threshold command to specify the overall traffic threshold used in queue traffic monitoring.
The overall traffic threshold defaults to 300,000,000 bps (300 Mbps).
With queue traffic monitoring enabled, the switch monitors the queue traffic and relieves blocks in the output queue of its interfaces.
The criterion used to distinguish a block is that the queue is full and the traffic of the corresponding interface is less than the specified threshold.
Examples
# Set the overall traffic threshold used in queue traffic monitoring to 90 Mbps.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] qe monitor overflow-threshold 90000000
3.1.20 rdram
Syntax
rdram { enable | disable }
View
System view
Parameters
enable: Enables Rambus Dynamic Random Access Memory (RDRAM) of the device.
disable: Disables RDRAM of the device.
Description
Use the rdram enable command to enable RDRAM of the device.
Use the rdram disable command to disable RDRAM of the device.
By default, RDRAM of the device is disabled.
Examples
# Disable RDRAM of the device.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] rdram disable
3.1.21 reboot
Syntax
View
User view
Parameters
slot slot-number: Specifies the slot number.
Description
Use the reboot command to restart the whole system or the specified card.
Examples
# Restart the switch.
<H3C> reboot
System is checking configuration now. Please wait ...
This command will reboot the system. The current configuration has not been saved and will be lost if you continue. Continue? [Y/N]
3.1.22 schedule reboot at
Syntax
schedule reboot at hh:mm [ yyyy/mm/dd ]
undo schedule reboot
View
User view
Parameters
hh:mm: Reboot time, where hh (hour) ranges from 0 to 23, and mm (minute) ranges from 0 to 59.
yyyy/mm/dd: Reboot date, where yyyy (year) ranges from 2,000 to 2,099, mm (month) ranges from 1 to 12, and the range of dd (day) depends on the specific month.
Description
Use the schedule reboot at command to schedule a reboot on the current switch and set the reboot date and time.
Use the undo schedule reboot command to cancel the scheduled reboot.
By default, no scheduled reboot is set on the switch.
& Note:
There is at most one minute defer for scheduled reboot, that is, the switch will reboot within one minute after reaching the specified reboot date and time.
After you execute the schedule reboot at command with a future date specified, the switch will reboot at the specified time with at most one minute delay.
After you execute the schedule reboot at command without specifying a date, the switch will:
l Reboot at the specified time on the current day if the specified time is later than the current time.
l Reboot at the specified time on the next day if the specified time is earlier than the current time.
Note that the specified date can not be 30 days later than the current date. And after you execute the command, the system will prompt you to confirm. Enter "Y" or "y" for your setting to take effect, and your setting will overwrite the old one (if available).
If you adjust the system time by the clock command after executing the schedule reboot at command, the schedule reboot at command will be invalid and the scheduled reboot will not happen.
Related commands: reboot, display schedule reboot.
Examples
# Suppose the current time is 16:21, schedule a reboot so that the switch reboots at 22:00 on the current day.
<H3C> schedule reboot at 22:00
Reboot system at 22:00 2005/04/06(in 5 hours and 39 minutes)
confirm?[Y/N]:y
<H3C>
%Apr 6 16:21:03 2005 S7506R CMD/5/REBOOT:
aux0: schedule reboot parameters at 16:21:00 2005/04/06. And system will reboot
at 22:00:2005 04/06/2005.
3.1.23 schedule reboot delay
Syntax
schedule reboot delay { hhh:mm | mmm }
undo schedule reboot
View
User view
Parameters
hhh:mm: Reboot waiting delay, in the format of “hour:minute”. hhh ranges from 0 to 720, and mm ranges from 0 to 59. The value of hhh:mm can be up to 720:00.
mmm: Reboot waiting delay, ranging from 0 to 43,200 minutes.
Description
Use the schedule reboot delay command to schedule a reboot on the switch, and set the reboot waiting delay.
Use the undo schedule reboot command to cancel the scheduled reboot.
By default, no scheduled reboot is set on the switch.
& Note:
There is at most one minute defer for scheduled reboot, that is, the switch will reboot within one minute after waiting for the specified delay.
You can set the reboot waiting delay in two formats: the hours:minutes format and the absolute minutes format, and both must be less than or equal to 30 × 24 × 60 (that is, 30 days).
After you execute the command, the system will prompt you to confirm. Enter "Y" or "y" for your setting to take effect. Your setting will overwrite the old one (if available).
If you adjust the system time by the clock command after executing the schedule reboot delay command, the schedule reboot delay command will be invalid and the scheduled reboot will not happen.
Related commands: reboot, schedule reboot at, undo schedule reboot, display schedule reboot.
Examples
# Suppose the current time is 16:26, schedule a reboot so that the switch reboots after 88 minutes.
<H3C> schedule reboot delay 88
Reboot system at 17:54 2005/04/06(in 1 hours and 28 minutes)
confirm?[Y/N]:y
<H3C>
%Apr 6 16:26:38 2005 S7506R CMD/5/REBOOT:
aux0: schedule reboot parameters at 16:26:34 2005/04/06. And system will reboot
at 17:54:2005 04/06/2005.
3.1.24 temperature-limit
Syntax
temperature-limit slot-number down-value up-value
undo temperature-limit slot-number
View
User view
Parameters
slot-number: Physical card slot number.
down-value: Lower temperature limit, ranging from 0 to 70, in centigrade.
up-value: Upper temperature limit, in centigrade, ranging from 20 to 90, and must be greater than the down-value.
Description
Use the temperature-limit command to configure temperature alarm threshold.
Use the undo temperature-limit command to restore temperature alarm threshold to the default.
By default, the lower temperature limit is 20, and the upper limit is 80.
Examples
# Set the lower temperature limit of card 0 to 10, and upper temperature limit to 75.
<H3C> temperature-limit 0 10 75
Success temperature limit set successfully
3.1.25 uplink monitor
Syntax
uplink monitor ip ip-address
undo uplink monitor ip
View
Ethernet port view
Parameters
ip-address: IP address of a interface on the Layer 3 device in the remote peer. The interface connects with the local device.
Description
Use the uplink monitor ip command to enable the Layer 3 connectivity detection function on the current port, and specify the IP address to be detected, that is the IP address of the interface on the remote device that connects with the local device.
Use the undo uplink monitor ip to disable the Layer 3 connectivity detection function.
By default, Layer 3 connectivity detection function is disabled on all ports.
& Note:
This function requires no Layer 3 device existing between the local peer and the remote peer.
Examples
# Enable Layer 3 connectivity detection function on Ethernet 4/0/1, and specify the IP address to be detected as 1.1.1.1.
<H3C> system-view
System View: return to User View with Ctrl+Z.
[H3C] interface Ethernet 4/0/1
[H3C-Ethernet4/0/1] uplink monitor ip 1.1.1.1