- Table of Contents
-
- H3C S3610[S5510] Series Ethernet Switches Command Manual-Release 0001-(V1.02)
- 00-1Cover
- 01-Login Command
- 02-VLAN Command
- 03-IP Address and Performance Command
- 04-QinQ-BPDU Tunnel Command
- 05-Port Correlation Configuration Command
- 06-MAC Address Table Management Command
- 07-MAC-IP-Port Binding Command
- 08-MSTP Command
- 09-Routing Overview Command
- 10-IPv4 Routing Command
- 11-IPv6 Routing Command
- 12-IPv6 Configuration Command
- 13-Multicast Protocol Command
- 14-802.1x-HABP-MAC Authentication Command
- 15-AAA-RADIUS-HWTACACS Command
- 16-ARP Command
- 17-DHCP Command
- 18-ACL Command
- 19-QoS Command
- 20-Port Mirroring Command
- 21-Cluster Management Command
- 22-UDP Helper Command
- 23-SNMP-RMON Command
- 24-NTP Command
- 25-DNS Command
- 26-File System Management Command
- 27-Information Center Command
- 28-System Maintenance and Debugging Command
- 29-NQA Command
- 30-VRRP Command
- 31-SSH Command
- 32-Appendix
- Related Documents
-
Title | Size | Download |
---|---|---|
28-System Maintenance and Debugging Command | 251 KB |
Table of Contents
Chapter 1 Basic Configuration Commands
1.1 Basic Configuration Commands
1.1.2 clock summer-time one-off
1.1.7 display current-configuration
1.1.8 display diagnostic-information
Chapter 2 System Maintaining and Debugging Commands
2.1 System Maintaining Commands
Chapter 3 Device Management Commands
3.1 Device Management Commands
Chapter 1 Basic Configuration Commands
1.1 Basic Configuration Commands
1.1.1 clock datetime
Syntax
clock datetime time date
View
User view
Parameter
time: Current time in the format of HH:MM:SS, where HH is hours in the range 0 to 23, MM is minutes in the range 0 to 59, and SS is seconds in the range 0 to 59.
date: Current date in the format of MM/DD/YYYY or YYYY/MM/DD. MM is the month of the year in the range 1 to 12, DD is the day, the range of which depends on specific month, and YYYY is a year in the range 2000 to 2035.
Description
Use the clock datetime command to set the current system time and date.
The current time and date of the device must be set in an environment that requires the acquisition of absolute time.
You may choose not to provide seconds when inputting the time parameters.
Related command: display clock.
Example
# Set the system time to 14:10:20 08/01/2005.
<Sysname> clock datetime 14:10:20 08/01/2005
1.1.2 clock summer-time one-off
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
Parameter
zone-name: Name of the daylight saving time, a string of 1 to 32 characters. It is case sensitive.
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 time of the daylight saving time, in the form of HH:MM:SS.
start-date: Start date of the daylight saving time, in the form of YYYY/MM/DD or MM/DD/YYYY.
end-time: End time of the daylight saving time, in the form of HH:MM:SS.
end-date: End date of the daylight saving time, in the form of YYYY/MM/DD or MM/DD/YYYY.
offset-time: Offset of the daylight saving time relative to the standard time, in the form of HH:MM:SS.
start-year: Start year, ranging from 2000 to 2035.
start-month: Start month; the value can be the following :January, February, March, April, May, June, July, August, September, October, November, December.
start-week: start week, the value can be the following : first, second, third, fourth, fifth, last.
start-day: Start day; the value can be the following : Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, and Saturday.
end-year: End year, ranging from 2000 to 2035. The value must be same as start year.
end-month: End month; the value can be the following :January, February, March, April, May, June, July, August, September, October, November, December.
end-week: End week; the value can be the following : first, second, third, fourth, fifth, last.
end-day: End day; the value can be the following : Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday.
Description
Use the clock summer-time command to set the name, starting and ending time of the daylight saving time.
Use the undo clock summer-time command to cancel the configuration of the daylight saving time.
After the configuration takes effect, you can use the display clock command to display it. Besides, the time of the log or debug information is the local time of which the time zone and daylight saving time has been adjusted.
Note the following:
l The duration between start-time of start-date and end-time of end-date must be greater than one day and less than one year; otherwise, the argument value is considered invalid and the configuration will fail.
l If you execute this command when the current system time is within the specified time range, the system time will automatically be ahead by a duration specified by offset-time.
Related command: clock timezone.
Example
# Set the daylight saving time named abc1, which starts from 06:00:00 2005/08/01, ends until 06:00:00 2005/09/01, and is one hour ahead of the standard time.
<Sysname> clock summer-time abc1 one-off 06:00:00 08/01/2005 06:00:00 09/01/2005 01:00:00
# Set the daylight saving time named abc2 that starts from 06:00:00 08/01, ends until 06:00:00 09/01, and is one hour ahead of the current system time every year from 2007 (with 2007 included) on.
<Sysname> clock summer-time abc2 repeating 06:00:00 08/01/2005 06:00:00 09/01/2005 01:00:00
1.1.3 clock timezone
Syntax
clock timezone zone_name { add | minus } time
undo clock timezone
View
User view
Parameter
zone-name: Time zone name, a string of 1 to 32 characters. It is case sensitive.
add: Positive offset to universal time coordinated (UTC) time.
minus: Negative offset to UTC time.
time: In the format of HH/MM/SS (hours/minutes/seconds), where HH is hours in the range 0 to 23, MM is minutes in the range 0 to 59, and SS is seconds in the range 0 to 59.
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 time zone.
By default, the local time zone is Universal Time Coordinated (UTC for short) zone.
After the configuration takes effect, you can view it by executing the display clock command. The time applied to the log and debug information is the local time with time zone and daylight saving time adjustment.
Related command: clock summer-time.
Example
# Set the name of the local time zone to Z5, five hours ahead of UTC time.
<Sysname> clock timezone z5 add 05:00:00
1.1.4 command-privilege
Syntax
command-privilege level level view view command
undo command-privilege view view command
View
System view
Parameter
level: Command level ranging from 0 to 3.
view: Specifies a view.
command: Command to be set in the specified view.
Description
Use the command-privilege command to assign a command level to the commands in the specified view.
Use the undo command-privilege view command to restore the default.
Command privilege falls into four levels: visit, monitor, system, and manage, which are identified by 0 through 3.
The administrator can assign a privilege level to a user according to his need. When the user logs on a device, the commands available depend on the user’s privilege. For example, if a user’s privilege is 3 and the command privilege of VTY 0 user interface is 1, and the user log on the system from VTY 0, he can use all the commands with privilege smaller than three (inclusive).
The following table describes the default level of the commands.
Table 1-1 Default level of the commands
Command level |
Commands |
Visit (0) |
ping, tracert, telnet |
Monitor (1) |
display, debugging |
System (2) |
Configuration commands |
Manage (3) |
FTP, Xmodem, TFTP, file system operation commands |
& Note:
Change the command level only when necessary; otherwise, inconvenience may be caused to maintenance and operations.
Example
# Set the command level of the interface command to 0.
[Sysname] command-privilege level 0 view system interface
1.1.5 display clipboard
Syntax
display clipboard
View
Any view
Parameter
None
Description
Use the display clipboard command to view the contents of the clipboard.
To copy the specified content to the clipboard, you need:
l Move the cursor to the starting place and press the <Esc+Shift+comma(,)> keys;
l Move the cursor to the ending place and press the <Esc+Shift+dot(.)> keys, and the specified content is copied to the clipboard.
Example
---------------- CLIPBOARD-----------------
ip route 10.1.0.0 255.0.0.0 eth 0
1.1.6 display clock
Syntax
display clock
View
Any view
Parameter
None
Description
Use the display clock command to view the current system time and date.
Related command: clock datetime.
Example
# Display the current time and date.
09:41:23 UTC Thu 12/15/2005
1.1.7 display current-configuration
Syntax
display current-configuration [ interface interface-type [ interface-number ] | configuration [ configuration-type ] ] | [ by-linenum ] | [ | { begin | include | exclude } text ] ]
View
Any view
Parameter
interface: Displays the interface configuration.
interface-type: Interface type.
interface-number: Interface number.
configuration configuration: Specifies to display non-interface configuration. If no parameter is used, all the non-interface configuration will be displayed; if parameters are used, display the specified information. For example:
l acl-adv: View the configuration information of advanced ACL.
l rip: View the configuration information of RIP.
l isp: Displays the ISP configuration.
l post-system: Displays the post-system configuration.
l radius-template: Displays the radius template configuration.
l System: Displays the system configuration.
l user-interface: Displays the user interface configuration.
by-linenum: Exports configuration information with line numbers.
|: Specifies to use regular expression to filter the configuration of display device.
begin: Displays the configuration beginning with the specified text.
include: Displays the configuration including the specified text.
exclude: Displays the configuration not including the specified text.
text: Regular expression in a case-insensitive string with space allowed.
Table 1-2 Special characters in regular expression
Character |
Meaning |
Note |
_ |
Underline, similar to a wildcard for a single character, such as blank ( ), starting sign (^), ending sign ($), comma (,), left bracket ((), right bracket ()), left square brace ([), right square brace (]), left brace ({) or right brace (}) |
If the first character is not “_”, then there is no limit to the number of “_” (subject to the length of the string. If the first character is “_”, then there can not be more than five successive “_”. If the “_” characters are not successive, only the first group of “_” will be output, others are ignored. |
^ |
Starting sign, the string following it appears only at the beginning of a line. |
Regular expression “^user” matches a string begins with “user”, not “Auser”. |
$ |
Ending sign, the string following it appears only at the end of a line. |
Regular expression "user$” matches a string ends with “user”, not “userA”. |
( |
Left bracket, used as a stack symbol in a program |
It is not recommended to user this character to establish a regular expression. |
. |
Full stop, a wildcard used in place of any character, including blank |
None |
* |
Asterisk, used to match a subexpression zero or multiple times |
zo* can map to “z” and “zoo”. |
+ |
Addition, used to match a subexpression one or multiple times |
zo+ can map to “zo” and “zoo”, but not “z”. |
Description
Use the display current-configuration command to display the current configuration of a device.
You can use the display current-configuration command to check the configuration to ensure its validity. A configuration is not displayed if it is identical with the default configuration. If the configuration has not taken effect, it is not displayed either.
Related command: save, reset saved-configuration and display saved-configuration.
Example
# Display the running configuration parameters of the switch.
<Sysname> display current-configuration
#
sysname Sysname
#
domain default enable system
#
telnet server enable
#
mirroring-group 1 remote-source
mirroring-group 1 remote-probe vlan 222
#
vlan 1
#
vlan 100
#
vlan 200
#
vlan 222
#
radius scheme system
server-type extended
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
traffic classifier test operator and
if-match any
#
traffic behavior test
mirror-to interface Ethernet1/0/41
#
qos policy test
classifier test behavior test
#
isis 1
network-entity 10.0000.0000.0003.00
#
acl number 2000
#
interface NULL0
#
interface LoopBack0
#
interface Vlan-interface1
ip address 192.168.0.36 255.255.255.0
isis enable 1
#
interface Vlan-interface100
ip address 10.1.1.1 255.255.255.0
isis enable 1
#
interface Vlan-interface200
ip address 10.1.2.1 255.255.255.0
isis enable 1
#
interface Ethernet1/0/1
#
interface Ethernet1/0/2
#
interface Ethernet1/0/3
#
interface Ethernet1/0/4
port access vlan 200
#
interface Ethernet1/0/5
#
interface Ethernet1/0/6
#
interface Ethernet1/0/7
#
interface Ethernet1/0/8
port access vlan 100
#
interface Ethernet1/0/9
#
interface Ethernet1/0/10
#
interface Ethernet1/0/11
#
interface Ethernet1/0/12
#
interface Ethernet1/0/13
#
interface Ethernet1/0/14
#
interface Ethernet1/0/15
#
interface Ethernet1/0/16
#
interface Ethernet1/0/17
#
interface Ethernet1/0/18
#
interface Ethernet1/0/19
#
interface Ethernet1/0/20
#
interface Ethernet1/0/21
#
interface Ethernet1/0/22
#
interface Ethernet1/0/23
#
interface Ethernet1/0/24
#
interface Ethernet1/0/25
#
interface Ethernet1/0/26
#
interface Ethernet1/0/27
#
interface Ethernet1/0/28
#
interface Ethernet1/0/29
#
interface Ethernet1/0/30
qos apply policy test inbound
#
interface Ethernet1/0/31
#
interface Ethernet1/0/32
#
interface Ethernet1/0/33
#
interface Ethernet1/0/34
#
interface Ethernet1/0/35
#
interface Ethernet1/0/36
#
interface Ethernet1/0/37
#
interface Ethernet1/0/38
#
interface Ethernet1/0/39
#
interface Ethernet1/0/40
port link-type trunk
port trunk permit vlan 1
mirroring-group 1 mirroring-port both
#
interface Ethernet1/0/41
#
interface Ethernet1/0/42
#
interface Ethernet1/0/43
#
interface Ethernet1/0/44
#
interface Ethernet1/0/45
#
interface Ethernet1/0/46
#
interface Ethernet1/0/47
#
interface Ethernet1/0/48
#
interface GigabitEthernet1/1/1
#
interface GigabitEthernet1/1/2
#
interface GigabitEthernet1/1/3
#
interface GigabitEthernet1/1/4
#
ntp-service unicast-server 192.168.0.34
#
user-interface aux 0
user-interface vty 0 4
authentication-mode none
user privilege level 3
idle-timeout 0 0
#
return
# Display the lines containing the character string “10*” in the configuration information. The “*” indicates that the “0” before it can appear 0 times or multiple consecutive times.
<Sysname> display current-configuration | include 10*
mirroring-group 1 remote-source
mirroring-group 1 remote-probe vlan 222
vlan 1
vlan 100
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
mirror-to interface Ethernet1/0/41
isis 1
network-entity 10.0000.0000.0003.00
interface Vlan-interface1
ip address 192.168.0.36 255.255.255.0
isis enable 1
interface Vlan-interface100
ip address 10.1.1.1 255.255.255.0
isis enable 1
ip address 10.1.2.1 255.255.255.0
isis enable 1
interface Ethernet1/0/1
interface Ethernet1/0/2
interface Ethernet1/0/3
interface Ethernet1/0/4
interface Ethernet1/0/5
interface Ethernet1/0/6
interface Ethernet1/0/7
interface Ethernet1/0/8
port access vlan 100
interface Ethernet1/0/9
interface Ethernet1/0/10
interface Ethernet1/0/11
interface Ethernet1/0/12
interface Ethernet1/0/13
interface Ethernet1/0/14
interface Ethernet1/0/15
interface Ethernet1/0/16
interface Ethernet1/0/17
interface Ethernet1/0/18
interface Ethernet1/0/19
interface Ethernet1/0/20
interface Ethernet1/0/21
interface Ethernet1/0/22
interface Ethernet1/0/23
interface Ethernet1/0/24
interface Ethernet1/0/25
interface Ethernet1/0/26
interface Ethernet1/0/27
interface Ethernet1/0/28
interface Ethernet1/0/29
interface Ethernet1/0/30
interface Ethernet1/0/31
interface Ethernet1/0/32
interface Ethernet1/0/33
interface Ethernet1/0/34
interface Ethernet1/0/35
interface Ethernet1/0/36
interface Ethernet1/0/37
interface Ethernet1/0/38
interface Ethernet1/0/39
interface Ethernet1/0/40
port trunk permit vlan 1
mirroring-group 1 mirroring-port both
interface Ethernet1/0/41
interface Ethernet1/0/42
interface Ethernet1/0/43
interface Ethernet1/0/44
interface Ethernet1/0/45
interface Ethernet1/0/46
interface Ethernet1/0/47
interface Ethernet1/0/48
interface GigabitEthernet1/1/1
interface GigabitEthernet1/1/2
interface GigabitEthernet1/1/3
interface GigabitEthernet1/1/4
ntp-service unicast-server 192.168.0.34
# Display configuration information beginning with “user”.
<Sysname> display current-configuration | include ^user
user-interface aux 0
user-interface vty 0 4
# Display the non-interface configuration information.
<Sysname> display current-configuration configuration
#
sysname Sysname
#
domain default enable system
#
telnet server enable
#
mirroring-group 1 remote-source
mirroring-group 1 remote-probe vlan 222
#
radius scheme system
server-type extended
primary authentication 127.0.0.1 1645
primary accounting 127.0.0.1 1646
user-name-format without-domain
#
domain system
access-limit disable
state active
idle-cut disable
self-service-url disable
#
traffic classifier test operator and
if-match any
#
traffic behavior test
mirror-to interface Ethernet1/0/41
#
qos policy test
classifier test behavior test
#
isis 1
network-entity 10.0000.0000.0003.00
#
acl number 2000
#
ntp-service unicast-server 192.168.0.34
#
user-interface aux 0
user-interface vty 0 4
authentication-mode none
user privilege level 3
idle-timeout 0 0
#
return
1.1.8 display diagnostic-information
Syntax
display diagnostic-information
View
Any view
Parameter
None
Description
Use the display diagnostic-information command to display the statistics of each module’s running status in the system.
When the system is out of order, you need to collect a lot of information to locate the failure. At this time you can use the display diagnostic-information command instead of many different display commands, including:
l display clock
l display version
l display device
l display current-configuration
l display saved-configuration
l display interface
l display memory
l display logbuffer
l display vlan all
l display history-command
l display ipv6 statistics
l display mac-address
l display link-aggregation summary
l display stp brief
l display arp all
l display ip interface
l display ip statistics
l display fib
l display ip routing-table
l display multicast forwarding-table
l <omitted>
Example
# Save the statistics of each module's running status in the system.
<Sysname> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)?[Y/N]:y
Please input the file name(*.diag)[flash:/default.diag]:aa.diag
Diagnostic information is outputting to flash:/aa.diag.
Please wait...
Save successfully.
# Display the statistics of each module's running status in the system. (Omitted due to too much display information.)
<Sysname> display diagnostic-information
Save or display diagnostic information (Y=save, N=display)?[Y/N]:n
1.1.9 display history-command
Syntax
display history-command
View
Any view
Parameter
None
Description
Use the display history-command command to display the valid history commands executed by users in the current user interface view.
For the related configuration, refer to the history-command max-size command in the “Login” part of the manual.
Example
# Display the valid history commands executed in the current user interface view.
<Sysname> display history-command
system-view
quit
1.1.10 display hotkey
Syntax
display hotkey
View
Any view
Parameter
None
Description
Use the display hotkey command to display hotkey information.
Example
# Display hotkey information.
----------------- HOTKEY -----------------
=Defined hotkeys=
Hotkeys Command
CTRL_G display current-configuration
CTRL_L display ip routing-table
CTRL_O undo debugging all
=Undefined hotkeys=
Hotkeys Command
CTRL_T NULL
CTRL_U NULL
=System hotkeys=
Hotkeys Function
CTRL_A Move the cursor to the beginning of the current line.
CTRL_B Move the cursor one character left.
CTRL_C Stop current command function.
CTRL_D Erase current character.
CTRL_E Move the cursor to the end of the current line.
CTRL_F Move the cursor one character right.
CTRL_H Erase the character left of the cursor.
CTRL_K Kill outgoing connection.
CTRL_N Display the next command from the history buffer.
CTRL_P Display the previous command from the history buffer.
CTRL_R Redisplay the current line.
CTRL_V Paste text from the clipboard.
CTRL_W Delete the word left of the cursor.
CTRL_X Delete all characters up to the cursor.
CTRL_Y Delete all characters after the cursor.
CTRL_Z Return to the User View.
CTRL_] Kill incoming connection or redirect connection.
ESC_B Move the cursor one word back.
ESC_D Delete remainder of word.
ESC_F Move the cursor forward one word.
ESC_N Move the cursor down a line.
ESC_P Move the cursor up a line.
ESC_< Specify the beginning of clipboard.
ESC_> Specify the end of clipboard.
1.1.11 display this
Syntax
display this [ by-linenum ]
Any view
by-linenum: Specifies to display the current system configuration in lines together with line numbers.
Description
Use the display this command to display configuration information under the current view.
After finishing a set of configuration under a view, you can use the display this command to check whether the configuration is correct.
Note that:
l A parameter is not displayed if it has the default configuration.
l A parameter is not displayed if the configuration has not taken effect.
l When you use the command under interface view, protocol view or protocol child view, the command displays the configuration corresponding to the current view.
Example
# Display configuration information of the current view.
[Sysname] user-interface vty 0
[Sysname-ui-vty0] display this
#
user-interface aux 0
idle-timeout 5 0
user-interface vty 0 4
authentication-mode none
user privilege level 3
idle-timeout 0 0
#
return
1.1.12 display version
Syntax
display version
View
Parameter
None
Description
Use the display version command to view system version information.
By viewing system version information, you can learn about the current software version, rack type and the information related to the main control board and interface boards.
Example
# Display system version information of the H3C S3610-52P.
H3C Comware Platform Software
Comware software, Version 5.20, ESS 0002
Copyright(c) 2004-2006 Hangzhou H3C Technologies Co., Ltd. All rights reserved.
H3C S3610-52P uptime is 0 week, 0 day, 14 hours, 10 minutes
H3C S3610-52P
128M bytes DRAM
16M bytes Flash Memory
Config Register points to FLASH
Hardware Version is REV.A
CPLD Version is CPLD 001
Bootrom Version is 123
[MAIN BOARD] 48FE + 4GE
1.1.13 header
Syntax
header { incoming | legal | login | motd | shell } [ text ]
undo header { incoming | legal | login | motd | shell }
View
System view
Parameter
incoming: Banner displayed when a user logs onto a terminal user interface by user name and password.
legal: Authorization banner before login.
login: Login banner at authentication.
motd: Banner displayed before the login interface.
shell: Banner displayed for entering user view.
text: Banner text to be specified. The system supports two input modes:
1) One is to enter all the banner text immediately following the command keyword. The starting character and ending character of the text entered must be the same. These two characters, however, will not be part of the banner. In this mode, up to 510 characters, including the command keyword, starting character, and ending character, can be entered.
2) The other is to enter all the banner text in multiple lines by pressing Enter. In this case, up to 2,000 characters, excluding command keyword, can be entered. To enter the banner text in multiple lines, you can use one of the following three methods:
l Directly press Enter following the command keyword, then enter the contents, and finish setting the banner by an ending character "%". In this case, neither the Enter sign nor "%" is part of the banner.
l Press Enter after entering a character following the command keyword, then enter the contents and finish setting the banner by an ending character the same as the character entered in the first line. In this case, neither the character in the first line nor the ending character is part of the banner.
l Press Enter after entering multiple characters (with the starting character different from the ending character) following the command keyword, then enter the contents and finish setting the banner by an ending character the same as the first character in the first line. In this case, neither the first character in the first line nor the ending character is part of the banner.
Description
Use the header command to create a banner.
Use the undo header command to clear a banner.
A banner starts with the first character entered and ends when this same character is entered again. After you enter the ending character, the system quits the interactive process automatically.
Note the following:
l The banner configured with the header motd command is displayed when you enter the user interface. If password authentication is enabled or an authentication scheme is specified, this banner is displayed before login authentication.
l The banner configured with the header legal command is displayed when you enter the user interface. If password authentication is enabled or an authentication scheme is specified, this banner is displayed before login authentication.
l With password authentication enabled or an authentication scheme specified, the banner configured with the header login command is displayed after the banner configured with the header motd command and before login authentication.
l The banner configured with the header shell command is displayed after the user session is established.
Example
# Set the banner to be displayed when a user enters user view.
<Sysname> system-view
[Sysname] header incoming %
Please input banner content, and quit with the character '%'.
Welcome to incoming(header incoming)%
[Sysname] header legal %
Please input banner content, and quit with the character '%'.
Welcome to legal(header legal)%
[Sysname] header login %
Please input banner content, and quit with the character '%'.
Welcome to login(header login)%
[Sysname] header motd %
Please input banner content, and quit with the character '%'.
Welcome to motd(header motd)%
[Sysname] header shell %
Please input banner content, and quit with the character '%'.
Welcome to shell(header shell)%
& Note:
l The character % is the starting/ending character of text in this example. Enter % after the displayed text will quit the header command.
l As the starting and ending character, % is not part of the welcome information.
# Telnet to the device to verify the above configuration (The login banner will be displayed only after you configure the login authentication).
**************************************************************************
* Copyright(c) 2004-2006 Hangzhou H3C Technologies Co., Ltd. *
* Without the owner's prior written consent, *
* no decompiling or reverse-engineering shall be allowed. *
**************************************************************************
Welcome to legal(header legal)
Press Y or ENTER to continue, N to exit.
Welcome to motd(header motd)
Welcome to login(header login)
Login authentication
Username:test
Password:
Welcome to shell(header shell)
<Sysname>
1.1.14 hotkey
Syntax
hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U } command
undo hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_T | CTRL_U }
View
System view
Parameter
CTRL_G: Assigns the hot key <CTRL+G> to a command.
CTRL_L: Assigns the hot key <CTRL+L> to a command.
CTRL_O: Assigns the hot key <CTRL+O> to a command.
CTRL_T: Assigns the hot key <CTRL+T> to a command.
CTRL_U: Assigns the hot key <CTRL+U> to a command.
command: The command line associated with the hot key.
Description
Use the hotkey command to assign a hot key to a command line.
Use the undo hotkey command to restore the default assignment scheme of the system.
By default, the system specifies corresponding commands for <Ctrl+G>, <Ctrl+L> and <Ctrl+O>, while the others are null.
l <Ctrl_G> to display current-configuration
l <Ctrl_L> to display ip routing-table
l <Ctrl_O> to undo debugging all
You can customize this scheme however.
Example
# Assign the hot key < Ctrl+T> to the display tcp status command.
<Sysname> system-view
[Sysname] hotkey ctrl_t display tcp status
# Display the configuration of hotkey.
<Sysname> display hotkey
----------------- HOTKEY -----------------
=Defined hotkeys=
Hotkeys Command
CTRL_G display current-configuration
CTRL_L display ip routing-table
CTRL_O undo debug all
CTRL_T display tcp status
=Undefined hotkeys=
Hotkeys Command
CTRL_U NULL
=System hotkeys=
Hotkeys Function
CTRL_A Move the cursor to the beginning of the current line.
CTRL_B Move the cursor one character left.
CTRL_C Stop current command function.
CTRL_D Erase current character.
CTRL_E Move the cursor to the end of the current line.
CTRL_F Move the cursor one character right.
CTRL_H Erase the character left of the cursor.
CTRL_K Kill outgoing connection.
CTRL_N Display the next command from the history buffer.
CTRL_P Display the previous command from the history buffer.
CTRL_R Redisplay the current line.
CTRL_V Paste text from the clipboard.
CTRL_W Delete the word left of the cursor.
CTRL_X Delete all characters up to the cursor.
CTRL_Y Delete all characters after the cursor.
CTRL_Z Return to the user view.
CTRL_] Kill incoming connection or redirect connection.
ESC_B Move the cursor one word back.
ESC_D Delete remainder of word.
ESC_F Move the cursor forward one word.
ESC_N Move the cursor down a line.
ESC_P Move the cursor up a line.
ESC_< Specify the beginning of clipboard.
ESC_> Specify the end of clipboard.
1.1.15 language-mode
Syntax
language-mode { chinese | english }
View
User view
Parameter
Chinese: Specifies the Chinese language mode.
english: Specifies the English language mode.
Description
Use the language-mode command to toggle the display language of the command line interface (CLI) between English and Chinese.
The default language is English.
Example
# Toggle the language from English to Chinese.
<Sysname> language-mode chinese
Change language mode, confirm? [Y/N]y
% Switch to Chinese mode.
1.1.16 quit
Syntax
quit
View
Any view
Parameter
None
Description
Use the quit command to quit to a lower-level view (if the current view is user view, you exit the system).
Example
# Switch from Ethernet1/0/3 interface view to system view, and then to user view.
[Sysname] interface Ethernet 1/0/3
[Sysname-Ethernet1/0/3] quit
[Sysname] quit
<Sysname>
1.1.17 return
Syntax
return
View
Any view except for user view
Parameter
None
Description
Use the return command to return to user view from any other view, as you would with the hot key <Ctrl+Z>.
Example
# Return to user view from GigabitEthernet1/0/3 interface view.
[Sysname] interface Ethernet 1/0/3
[Sysname-Ethernet1/0/3] return
<Sysname>
1.1.18 super
Syntax
super [ level ]
View
User view
Parameter
level: User level ranging from 0 to 3.
Description
Use the super command to switch from current user level to a specified user level, or the command level that the user can access.
Login users are classified into four levels that correspond to the four command levels. After users at different levels log in, they can only use commands at their own, or lower, levels. The four command levels are visit, monitor, system and manage, each identified with 0, 1, 2 and 3 respectively. The user can specify the command level and its view as the situation requires. Each command has its own default view and preference, which does not require reconfiguration.
Note that:
Users can switch to a lower user level unconditionally. To switch to a higher user level, however, they need to enter the password needed (The password can be set with the super password command.). If the entered password is incorrect or no password is configured, the switch fails. Therefore, before switching to a higher user level, users should configure the password needed.
Related command: super password.
Example
User privilege level is 3, and only those commands can be used
whose level is equal or less than this.
Privilege note: 0-VISIT, 1-MONITOR, 2-SYSTEM, 3-MANAGE
1.1.19 super password
Syntax
super password [ level user-level ] { simple | cipher } password
undo super password [ level user-level ]
View
System view
Parameter
user-level: User level in the range 1 to 3, with the default being 3, that is, if no user level is specified, the password to be set is used to switch to level-3 users.
simple: Specifies to set plain text password.
cipher: Specifies to set cipher text password.
password: A password in a string, which is case sensitive.
l If simple is adopted, the password is a string of 1 to 16 characters.
l If cipher is adopted, the password can be either a string of 1 to 16 characters in plain text, or a string of 24 characters in cipher text. For example, the plain text “1234567” corresponds to the cipher text “_(TT8F]Y\5SQ=^Q`MAF4<1!!”.
Description
Use the super password command to set the password needed to switch from a lower user level to a higher one.
Use the undo super password command to restore the default.
By default, no password is set to switch from a lower user level to a higher one.
Note that:
l If simple is specified, the configuration file saves a simple password.
l If cipher is specified, the configuration file saves a cipher password.
l The user must always enter a simple password, no matter simple or cipher is specified.
l Cipher passwords are recommended, as simple ones are easy getting stolen.
Example
# Set the password to abc switching the user level to three.
<Sysname> system-view
[Sysname] super password level 3 simple abc
# View the password for switching the user level.
[Sysname] display current-configuration
#
super password level 3 simple abc
# Set the password to abc in cipher text for switching the user level to three.
<Sysname> system-view
[Sysname] super password level 3 cipher abc
# View the password for switching the user level.
[Sysname] display current-configuration
#
sysname Sysname
#
super password level 3 cipher K8H(aUZ`J<&H>#:ZTPK'VA!!
…<omitted>
The password may be displayed in different cipher text due to different encryption mode.
1.1.20 sysname
Syntax
sysname sysname
undo sysname
View
System view
Parameter
sysname: Name of the device, a string containing 1 to 30 characters.
Description
Use the sysname command to set the name of the device.
Use the undo sysname demand to set the device to the default name.
The default name is H3C.
Modifying device name affects the prompt of the CLI. For example, if the device's name is Sysname, the prompt of user view is <Sysname>.
Example
# Set the name of the device to R2000.
<Sysname> system-view
[Sysname] sysname R2000
[R2000]
# Restore the default device name, which is H3C.
[R2000]undo sysname
[H3C]
1.1.21 system-view
Syntax
system-view
View
User view
Parameter
None
Description
Use the system-view command to enter system view from current user view.
Related command: quit, return.
Example
<Sysname> system-view
[Sysname]
Chapter 2 System Maintaining and Debugging Commands
2.1 System Maintaining Commands
2.1.1 ping
Syntax
ping [ ip ] [ -a source-ip | -c count | -f | -h ttl | -i interface-type interface-number | -m interval | -n | -p pad | -q | -r | -s packet-size | -t timeout | -tos tos | -v] * { ip-address | hostname }
View
Any view
Parameter
ip: Supports IPv4 protocol.
-a source-ip: Specifies the source IP address of the ICMP ECHO-REQUEST packet. Make sure you specify a legal IP address that is already configured for the device.
-c count: Specifies the number of times that the ICMP ECHO-REQUEST packets are sent, in the range 1 to 4294967295. The default value is 5.
-f: Discards packets larger than the MTU of a given interface, that is the ICMP ECHO-REQUEST packets are not fragmented.
-h ttl: Specifies the TTL value for ICMP ECHO-REQUEST packets, in the range of 1 to 255. Defaults to 255.
-i interface-type interface-number: Specifies the type and number of an egress interface.
-m interval: Specifies the interval to send ICMP ECHO-REQUEST packets. interval is the time interval, ranging from 1 to 65535, in seconds. Defaults to 200.
l If the device receives the response packets from the host within the timeout time, the interval for sending ICMP echo request packets next time will be the sum of the actual response time of the packet plus the specified interval time.
l If the device does not receive the response packets from the host within the timeout time, the interval for sending ICMP echo request packets next time will be the sum of the specified timeout time plus the interval time.
-n: Specifies that the Domain Name System (DNS) is disabled. DNS is enabled by default, that is, the hostname is translated into an address.
-p pad: Specifies the padded bytes in the ICMP ECHO-REQUEST packet, in hexadecimal format. For example, if pad is configured to be ff, then the packets will be padded with ff. By default, the padded bytes start from 0x01 up to 0x09 where another round starts again if necessary.
-q: Presence of this parameter indicates that only statistics are displayed. By default, all information is displayed.
-r: Records routes. By default, routes are not recorded.
-s packet-size: Specifies length of ICMP ECHO-REQUEST packets (not including the IP and ICMP headers), ranging from 20 to 8100, in byte. Defaults to 56.
-t timeout: Specifies the timeout value (in milliseconds) of the ICMP ECHO-REQUEST packets, in the range 0 to 65535 and defaults to 2000.
-tos tos: Specifies ToS of ICMP ECHO-REQUEST packets, in the range of 0 to 255. Defaults to 0.
-v: Displays received non ECHO-REPLY ICMP packets. By default, the system does not display non ECHO-REPLY ICMP packets.
ip-address: IP address of the destination device.
hostname: Name of the destination device, a string of 1 to 20 characters.
Description
Use the ping command to verify whether an address in an IP network is reachable, and to display the relative statistics.
Note the following:
l When the name of the current device is a key word, such as ip, use the ping ip ip command in place of the ping ip command.
l If you specify the packet sending interface by providing the -i keyword when configuring the ping command, you can ping only the addresses in a directly connected network segment.
Example
# Check whether the device with an IP address of 10.1.1.5 is reachable.
PING 10.1.1.5 : 56 data bytes, press CTRL_C to break
Reply from 10.1.1.5 : bytes=56 Sequence=1 ttl=255 time = 1 ms
Reply from 10.1.1.5 : bytes=56 Sequence=2 ttl=255 time = 2 ms
Reply from 10.1.1.5 : bytes=56 Sequence=3 ttl=255 time = 1 ms
Reply from 10.1.1.5 : bytes=56 Sequence=4 ttl=255 time = 3 ms
Reply from 10.1.1.5 : bytes=56 Sequence=5 ttl=255 time = 2 ms
--- 10.1.1.5 ping statistics ---
5 packet(s) transmitted
5 packet(s) 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 packet-number | -w timeout ] * { ip-address | hostname }
View
Any view
Parameter
-a source-ip: Specifies the source IP address of a tracert packet. Make sure you specify a legal IP address that is already configured for the device.
-f first-ttl: Specifies the first TTL, that is, the allowed number of hops for the first packet. Ranges from 1 to 255, defaults to 1, and must be less than the maximum TTL.
-m max-ttl: Specifies the maximum TTL, that is, the maximum allowed number of hops for a packet. Ranges from 1 to 255, defaults to 30, and must be greater than the first TTL.
-p port: Specifies the UDP port number of the destination device, in the range of 1 to 65535. Defaults to 33434. Users normally do not need to modify this parameter.
-q packet-number: Specifies the number of probe packets sent each time, in the range of 0 to 65535. Defaults to 3.
-w timeout: Specifies the packet timeout time, ranging from 0 to 65535, in milliseconds. The default value is 5 ms.
ip-address: IP address of the destination device.
hostname: Name of the destination device, a string of 1 to 20 characters.
Description
Use the tracert command to display the route that an IPv4 packet passes through from the current device to the destination device. .
After users have identified network failure with the ping command, they can use the tracert command to determine the failed node(s).
Output information of the tracert command includes IP addresses of all the routers used by the packets while traveling from the source to the destination device. If the router times out, "* * *" will be displayed.
Example
# Display the route that a packet passes through from the current device to the destination device, whose IP address is 18.26.0.115.
traceroute to 18.26.0.115(18.26.0.115) 30 hops max, 40 bytes packet, press CTRL_C to break
1 128.3.112.1 0 ms 0 ms 0 ms
2 128.32.201.1 19 ms 19 ms 19 ms
3 128.32.216.1 39 ms 19 ms 19 ms
4 128.32.136.23 19 ms 39 ms 39 ms
5 128.32.168.22 20 ms 39 ms 39 ms
6 128.32.197.4 59 ms 119 ms 39 ms
7 131.119.2.5 59 ms 59 ms 39 ms
8 129.140.70.13 80 ms 79 ms 99 ms
9 129.140.71.6 139 ms 139 ms 159 ms
10 129.140.81.7 199 ms 180 ms 300 ms
11 129.140.72.17 300 ms 239 ms 239 ms
12 * * *
13 128.121.54.72 259 ms 499 ms 279 ms
14 * * *
15 * * *
16 * * *
17 * * *
18 18.26.0.115 339 ms 279 ms 279 ms
2.2 System Debugging Commands
2.2.1 debugging
Syntax
debugging { all [ timeout time-value ] | module-name [ option ] }
undo debugging { all | module-name [ option ] }
View
User view
Parameter
all: Specifies all debugging functions.
timeout time-value: Specifies the timeout time during which the debugging all command is valid. If the all keyword is specified to enable all debugging, the system will automatically execute the undo debugging all command to disable all debugging after the specified time-value time. The time-value argument ranges from 1 to 1440, in minutes.
module-name: Name of a module, such as ARP, and ATM. You can use the debugging ? command to display the names of the supported modules of the current device.
option: Debugging option of the specified module. For different modules, the number of debugging options and their contents are different. You can use the debugging module-name ? command to view the supported debugging options of the specified module of the current device.
Description
Use the debugging command to enable the debugging of a specific module.
Use the undo debugging command to disable the debugging of a specific module.
By default, all modules have their debugging functions disabled.
Note the following:
l This command is intended for network administrator to diagnose network failure.
l Output of the debugging information may degrade system efficiency, especially during the execution of the debugging all command. Therefore, you are recommended to use the command with caution.
l After finishing debugging, you can use the undo debugging all command to disable all the debugging functions.
l The debugging output can be displayed only after you enable the current terminal to monitor system information by using the terminal monitor command and execute the debugging and terminal debugging commands.
Related command: terminal debugging and display debugging.
Example
# Enable IP packet debugging.
<Sysname> debugging ip packet
2.2.2 display debugging
Syntax
display debugging [ interface interface-type interface-number ] [ module-name ]
View
Any view
Parameter
interface-type interface-number: Specifies the interface type and interface number.
module-name: Module name.
Description
Use the display debugging command to display enabled debugging functions.
Related command: debugging.
Example
# Display all debugging functions.
<Sysname> display debugging
IP packet debugging is on
2.2.3 terminal debugging
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameter
None
Description
Use the terminal debugging command to enable debugging output of the current device. Use the undo terminal debugging command to disable the debugging output of the current device.
By default, the debugging output is disabled.
Note that the debugging output can be displayed only after you enable the current terminal to monitor system information by using the terminal monitor command and execute the terminal debugging command. For details about the terminal monitor command, see the Information Center part.
Related command: debugging and display debugging.
Example
# Enable the debugging output of the current device.
<Sysname> terminal debugging
% Current terminal debugging is on
Chapter 3 Device Management Commands
& Note:
You can express the path to and the names of the BootROM upgrade file, boot file, and configuration file in the Flash in the following formats:
l "Path + file name": That is, the full file name is used to indicate a file in the specified path. A full file name can contain up to 63 characters.
l "File name": That is, only the file name, without path name, is used to indicate a file under the current working path. A file name can contain up to 56 characters.
l BootROM upgrade file, boot file, and configuration file can be stored under the root directory flash:/ only.
3.1 Device Management Commands
3.1.1 boot-loader
Syntax
boot-loader file file-url
View
User view
Parameter
file-url: Path and name of the boot file, 1 to 63 characters long.
Description
Use the boot-loader command to specify a boot file on a device.
& Note:
If the entered file name excludes “flash:/”, the system will automatically add this field before the entered path. Therefore, the file name that can be entered is actually 1 to 56 characters long.
Related command: display boot-loader.
Example
# Specify the file plat.bin as the boot file for next startup.
<Sysname> boot-loader file plat.bin
This command will set boot file, Continue? [Y/N]:y
The specified file will be used as a boot file at the next time!
3.1.2 bootrom
Syntax
bootrom update file file-url
View
User view
Parameter
update: Upgrade a BootROM file.
file-url: Path and name of the BootROM file, 1 to 63 characters long.
Description
Use the bootrom command to upgrade the BootROM file on a device.
& Note:
If the entered file name excludes “flash:/”, the system will automatically add this field before the entered path. Therefore, the file name that can be entered is actually 1 to 56 characters long.
Example
# Use the a.btm file to upgrade the BootROM file on a device.
<Sysname> bootrom update file a.btm
This command will update bootrom file, Continue? [Y/N]y
Now updating bootrom, please wait...
BootRom file updating finished!
3.1.3 display boot-loader
Syntax
display boot-loader
View
Any view
Parameter
None
Description
Use the display boot-loader command to display the current boot file and the boot file for next startup.
Related command: boot-loader.
Example
# Display the current boot file and the boot file for next startup.
<Sysname> display boot-loader
The current boot app is: s3610_5510-cmw520-e0002.bin
The app that will boot upon reboot is: s3610_5510-cmw520-e0002.bin
Table 3-1 Description on fields on the display boot-loader command
Field |
Description |
The current boot app is: |
File used for the current boot of the device. |
The app that will boot upon reboot is: |
Boot file used for the next boot of the device. |
3.1.4 display cpu-usage
Syntax
display cpu-usage [ number [ offset ] [ verbose ] [ from-device ] ]
View
Any view
Parameter
number: Number of CPU usage statistics records to be displayed.
offset: Offset counting back from the latest CPU usage record.
verbose: Displays detailed information of CPU usage statistics.
from-device: Displays external storage devices such as FLASH and hard disk. The device currently does not support the from-device keyword.
Description
Use the display cpu-usage command to display the CPU usage statistics.
The system collects statistics information about CPU usage periodically (usually every 60 seconds), and saves the statistics information to the history record buffer. If the number and offset arguments are specified, this command displays the specific number of CPU usage statistics records starting from the record determined by the offset argument.
Equivalent to the display cpu-usage 1 0 verbose command, the display cpu-usage command displays detailed information of the last CPU usage statistics record.
Example
# Display detailed information of the last CPU usage statistics record.
===== Current CPU usage info =====
CPU Usage Stat. Cycle: 33 (Second)
CPU Usage : 15%
CPU Usage Stat. Time : 2006-09-22 00:11:25
CPU Usage Stat. Tick : 0x168(CPU Tick High) 0x9c403518(CPU Tick Low)
Actual Stat. Cycle : 0x0(CPU Tick High) 0x32619143(CPU Tick Low)
TaskName CPU Runtime(CPU Tick High/CPU Tick Low)
DrvT 0% 0/ 1f97ef
vt1 0% 0/ 7cb19
VIDL 85% 0/2b18e14d
TICK 1% 0/ b28f9a
STMR 0% 0/ 1ee8d
iSh0 0% 0/ 2af717
AtkT 0% 0/ 1ceb
LPDT 0% 0/ 8d8
vt0 0% 0/ 344cb2
DEV 0% 0/ 2c5c5
STND 0% 0/ 6b720
SOCK 0% 0/ 7a57c
ACL 0% 0/ 2270e
mac 0% 0/ 35b76
LAGG 0% 0/ 203fd
MSTP 0% 0/ 16b27
GARP 0% 0/ 10a356
CLST 0% 0/ 195e4e
NDP 0% 0/ 1f181
NTDP 1% 0/ 8f7c25
HABP 0% 0/ 27872
ARP 0% 0/ b46f3
IP 1% 0/ a2c03a
HTTP 0% 0/ 1bea0
NTPT 1% 0/ e99434
VTYD 0% 0/ 10013c
vt2 0% 0/ 6d876
FIB6 0% 0/ 16e1c
ND 0% 0/ 1bc3ce
TRAP 0% 0/ 16b5bc
RMON 0% 0/ 1d6f1
DT1X 0% 0/ 7a9b3a
ACM 0% 0/ 6e3d33
LSSO 0% 0/ 29b9b
LS 0% 0/ 1f14af
RDSO 0% 0/ 28462
RDS 1% 0/ ecbb84
SC 0% 0/ 6c3069
TAC 0% 0/ e5ba5
vt3 0% 0/ 7c519
ROUT 1% 0/ d16c3c
MFIB 0% 0/ 46e6
IFNT 0% 0/ 1aa46
3.1.5 display device
Syntax
display device [ manuinfo | subslot subslot-number | verbose ]
View
Any view
Parameter
manuinfo: Specifies to display the manufacture information about the device.
subslot subslot-number: Specifies to display the detailed information about the specified subcard. The subslot-number argument ranges from 0 to the maximum subslot number.
verbose: Specifies to display the detailed information about the device. This keyword does not work together with the subslot keyword. With no subslot-number argument specified, the detailed information about the device will be displayed if you provide this keyword; otherwise, details will not be displayed. With subslot-number argument specified, detailed information about the device will definitely be displayed.
Description
Use the display device command to display module type and working status information of each card.
Example
# Display brief information of cards on a device.
<Sysname> display device
Slot No. Brd Type Brd Status Subslot Num Sft Ver
1 MAIN Normal 2 V500R001B02D005SP01
Table 3-2 Description on fields on the display device command
Field |
Description |
Slot No. |
Slot number |
Brd Type |
Card type |
Brd Status |
Card status |
Subslot Num |
Number of subslots |
Sft Ver |
Software version |
3.1.6 display fan
Syntax
display fan [ fan-id ]
View
Any view
Parameter
fan-id: Built-in fan number.
Description
Use the display fan command to display the operating state of built-in fans.
Example
# Display the operating state of all fans in a device.
<Sysname> display fan
Fan 1 State: Normal
The above information displays all fans work normally.
3.1.7 display memory
Syntax
display memory
View
Any view
Parameter
None
Description
Use the display memory command to display the usage of the memory of the device.
Example
# Display the usage of the memory of the device.
<Sysname> display memory
System Total Memory(bytes): 80593920
Total Used Memory(bytes): 37123232
Used Rate: 46%
Table 3-3 Description on fields on the display memory command
Field |
Description |
System Total Memory(bytes) |
Total size of the system memory (in bytes) |
Total Used Memory(bytes) |
Size of the memory used (in bytes) |
Used Rate |
Percentage of the memory used to the total memory |
3.1.8 display power
Syntax
display power [ power-id ]
View
Any view
Parameter
power-id: Power supply number.
Description
Use the display power to display the status of the power supply of a device.
Example
# Display the status of the power supply of a device.
<Sysname> display power
Power 1 State: Normal
Power 2 State: Fault
The above information indicates that power supply 1 works normally, and power supply 2 are fault.
3.1.9 display schedule reboot
Syntax
display schedule reboot
View
Any view
Parameter
None
Description
Use the display schedule reboot command to display the device reboot time set by the user.
Related command: schedule reboot at and schedule reboot delay.
Example
# Display the reboot time of a device.
<Sysname> display schedule reboot
System will reboot at 16:00:00 2006/03/10 (in 2 hours and 5 minutes).
The above information indicates the system will reboot at 16:00:00 on March 10, 2006 (in two hours and five minutes).
3.1.10 reboot
Syntax
reboot
View
User view
Parameter
None
Description
Use the reboot command to reboot the whole system.
Example
# Reboot the device.
This command will reboot the system. The current configuration has not been saved and will be lost if you continue. Continue? [Y/N]:y
Now rebooting, please wait...
3.1.11 reset unused porttag
Syntax
reset unused porttag
View
User view
Parameter
None
Description
Use the reset unused porttag command to clear the 16bit index saved but not used in the current system.
A confirmation is required when you carry out this command. If you fail to make a confirmation within 30 seconds or enter “N” to cancel the operation, the command will not be carried out.
Example
# Clear the 16bit index saved but not used in the current system.
<Sysname> reset unused porttag
Current operation will delete all unused port tag(s). Continue? [Y/N]:y
<Sysname>
3.1.12 schedule reboot at
Syntax
schedule reboot at hh:mm [ date ]
undo schedule reboot
View
User view
Parameter
hh:mm: Reboot time of a device, in the format of hh:mm (hours:minutes). The value of the hh argument ranges of is 0 to 23, and the value of the mm argument ranges from 0 to 59.
date: Reboot date of a device, in the format mm/dd/yyyy (Month/day/year) or in the format yyyy/mm/dd (year/month/day) The yyyy value ranges from 2000 to 2035, the mm value ranges from 1 to 12, and the dd value depends on a specific month.
Description
Use the schedule reboot at command to enable the scheduled reboot function and specify a specific reboot time and date.
Use the undo schedule reboot command to disable the scheduled reboot function.
By default, the scheduled reboot function is disabled.
There are two cases if no specific reboot date is specified:
l When the specified reboot time is later than the current time, the device will be rebooted at the reboot time of the current day.
l When the specified reboot time is earlier than the current time, the device will be rebooted at the reboot time the next day.
Note that:
l The precision of the device timer is 1 minute. One minute before the reboot time, the device will prompt “REBOOT IN ONE MINUTE” and will be rebooted in one minute.
l The difference between the reboot date and the current date cannot exceed 30 x 24 hours (namely, 30 days).
l After you execute the above command, the device will prompt you to confirm the configuration. You must enter <Y> or <y> to make the configuration take effect. The original configuration will be overwritten at the same time.
l If a date (month/day/year or year/month/day) later than the current date is specified for the schedule reboot at command, the device will be rebooted at the reboot time.
l If you use the clock command after the schedule reboot at command to adjust the system time, the reboot time set by the schedule reboot at command will become invalid.
Example
# Configure the device to reboot at 22:00 (supposing that the current time is 16:36).
<Sysname> schedule reboot at 22:00
Reboot system at 22:00 2006/02/20(in 13 hour(s) and 42 minute(s))
confirm?[Y/N]:
# If you have used the terminal logging command to enable the log display function on the terminal before setting a reboot time, the system will automatically display related log information after you enter <y>. By default, the log display function is enabled.
%Mar 21 16:36:51:601 2006 H3C CMD/5/REBOOT:
aux0: Set schedule reboot parameters at 16:36:51 2006/03/21, and system will reboot at 22:00 2006/03/21.
3.1.13 schedule reboot delay
Syntax
schedule reboot delay { hh:mm | mm }
undo schedule reboot
View
User view
Parameter
hh:mm: Device reboot wait time, in the format of hh:mm (hours:minutes). The value of the hh argument ranges of is 0 to 720, and the value of the mm argument ranges from 0 to 59. The value of hh:mm can be up to 720:00.
mm: Device reboot wait time in minutes, in the range of 0 to 43,200.
Description
Use the schedule reboot delay command to enable the scheduled reboot function and set a reboot wait time.
Use the undo schedule reboot command to disable the scheduled reboot function.
By default, the scheduled reboot function is disabled.
Note that:
l The reboot wait time can be in the format of hh:mm (hours:minutes) or mm (absolute minutes). The absolute minutes cannot exceed 30 x 24 x 60 minutes, namely, 30 days.
l The precision of the device timer is 1 minute. One minute before the reboot time, the device will prompt “REBOOT IN ONE MINUTE” and will be rebooted in one minute.
l After you execute the above command, the device will prompt you to confirm the configuration. You must enter <Y> or <y> to make the configuration take effect. The original configuration will be overwritten at the same time.
l If you use the clock command after the schedule reboot delay command to adjust the system time, the reboot wait time set by the schedule reboot delay command will become invalid.
Example
# Configure the device to reboot in 88 minutes (supposing the current time is 16:50).
<Sysname> schedule reboot delay 88
Reboot system at 18:18 2006/03/21(in 1 hour(s) and 28 minute(s))
confirm?[Y/N]:
# If you have used the terminal logging command to enable the log display function on the terminal before setting a reboot time, the system will automatically display related log information after you enter <y>. By default, the log display function is enabled on the terminal.
<Sysname>
%Mar 21 16:50:13:369 2006 H3C CMD/5/REBOOT:
aux0: Set schedule reboot parameters at 16:50:13 2006/03/21, and system will reboot at 18:18 2006/03/21.