H3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)

HomeSupportSwitchesH3C S5500 Switch SeriesReference GuidesCommand ReferencesH3C S5500-SI Series Ethernet Switches Command Manual-Release 1205-(V1.03)
02-Basic System Configuration and Maintenance Command

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 of the month that varies with months, and YYYY is a year in the range 2000 to 2035.

Description

Use the clock datetime command to set the current time and date of the device.

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 current system time to 14:10:20 08/01/2005.

<Sysname> clock datetime 14:10:20 08/01/2005

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

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, 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)

All configuration commends except those of manage level

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> system-view

[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:

l           Move the cursor to the starting position of the content and press the <Esc+Shift+,> combination (, is an English comma).

l           Move the cursor to the ending position of the content and press the <Esc+Shift+.> combination (. Is an English dot) to copy the specified content to the clipboard.

Example

<Sysname> display clipboard

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

<Sysname> display clock

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           timerange: View the configuration information of time range.

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 effective configuration of a device.

A parameter is not displayed if it has the default configuration.

You can use the display current-configuration command to check the configuration to ensure its validity. A configuration is not displayed if it has not taken effect.

Related command: save, reset saved-configuration, 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

#

vlan 1

#

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

#

interface NULL0

#

interface LoopBack0

 ip address 1.1.1.100 255.255.255.255

#

interface Vlan-interface1

 ip address 192.168.0.53 255.255.255.0

#

interface GigabitEthernet1/0/1

#

interface GigabitEthernet1/0/2

#

interface GigabitEthernet1/0/3

#

interface GigabitEthernet1/0/4

#

interface GigabitEthernet1/0/5

#

interface GigabitEthernet1/0/6

#

interface GigabitEthernet1/0/7

#

interface GigabitEthernet1/0/8

#

interface GigabitEthernet1/0/9

#

interface GigabitEthernet1/0/10

#

interface GigabitEthernet1/0/11

#

interface GigabitEthernet1/0/12

#

interface GigabitEthernet1/0/13

#

interface GigabitEthernet1/0/14

#

interface GigabitEthernet1/0/15

#

interface GigabitEthernet1/0/16

#

interface GigabitEthernet1/0/17

#

interface GigabitEthernet1/0/18

#

interface GigabitEthernet1/0/19

#

interface GigabitEthernet1/0/20

#

interface GigabitEthernet1/0/21

#

interface GigabitEthernet1/0/22

#

interface GigabitEthernet1/0/23

#

interface GigabitEthernet1/0/24

#

interface GigabitEthernet1/0/25

 shutdown

#

interface GigabitEthernet1/0/26

 shutdown

#

interface GigabitEthernet1/0/27

 shutdown

#

interface GigabitEthernet1/0/28

 shutdown

#

rip 1

 undo validate-source-address

 timers garbage-collect 23

#

 ip route-static default-preference 100

#

user-interface aux 0

 idle-timeout 0 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*

vlan 1

 primary authentication 127.0.0.1 1645

 primary accounting 127.0.0.1 1646

 ip address 1.1.1.100 255.255.255.255

interface Vlan-interface1

 ip address 192.168.0.53 255.255.255.0

interface GigabitEthernet1/0/1

interface GigabitEthernet1/0/2

interface GigabitEthernet1/0/3

interface GigabitEthernet1/0/4

interface GigabitEthernet1/0/5

interface GigabitEthernet1/0/6

interface GigabitEthernet1/0/7

interface GigabitEthernet1/0/8

interface GigabitEthernet1/0/9

interface GigabitEthernet1/0/10

interface GigabitEthernet1/0/11

interface GigabitEthernet1/0/12

interface GigabitEthernet1/0/13

interface GigabitEthernet1/0/14

interface GigabitEthernet1/0/15

interface GigabitEthernet1/0/16

interface GigabitEthernet1/0/17

interface GigabitEthernet1/0/18

interface GigabitEthernet1/0/19

interface GigabitEthernet1/0/20

interface GigabitEthernet1/0/21

interface GigabitEthernet1/0/22

interface GigabitEthernet1/0/23

interface GigabitEthernet1/0/24

interface GigabitEthernet1/0/25

interface GigabitEthernet1/0/26

interface GigabitEthernet1/0/27

interface GigabitEthernet1/0/28

rip 1

 ip route-static default-preference 100

# 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

#

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

#

rip 1

 undo validate-source-address

 timers garbage-collect 23

#

 ip route-static default-preference 100

#

user-interface aux 0

 idle-timeout 0 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 or save 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 trapbuffer

l           display loopback-detection

l           display dhcp-snooping

l           display igmp-snooping group

l           display mld-snooping group

l           display gvrp statistics

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 ipv6 interface

l           display ipv6 fib

l           display fib

l           display ipv6 neighbors all

l           display ip routing-table

l           display ipv6 routing-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.

<Sysname> display diagnostic-information

Save or display diagnostic information (Y=save, N=display)?[Y/N]:n

As the display is long, more details are omitted here.

1.1.9  display history-command

Syntax

display history-command

View

Any view

Parameter

None

Description

Use the display history-command command to display effective history commands performed in current user view.

For related configurations, see the section covering the history-command max-size command in the Login part.

Example

# Display effective history commands in current user view (the display information varies with configuration).

<Sysname> display history-command

  display history-command

  system-view

  vlan 2

  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.

<Sysname> display hotkey

----------------- HOTKEY -----------------

 

            =Defined hotkeys=

Hotkeys Command

CTRL_G  display current-configuration

CTRL_L  display ip routing-table

CTRL_O  undo debug 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 ]

View

Any view

Parameter

by-linenum: Specifies to display the number of each line.

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 (the display information varies with configuration).

<Sysname> system-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

Any 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 S5500-28C-SI.

<Sysname> display version

H3C Comware Platform Software

Comware software, Version 5.20, Release 1205

Copyright(c) 2004-2007 Hangzhou H3C Technologies Co., Ltd. All rights reserved.

H3C S5500-28C-SI uptime is 0 week, 5 days, 2 hours, 10 minutes

 

H3C S5500-28C-SI with 1 Processor

128M    bytes SDRAM

16384K  bytes Flash Memory

 

Hardware Version is REV.B

CPLD Version is 002

Bootrom Version is 117

[SubSlot 0] 24GE+4SFP Hardware Version is REV.B

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

# Configure a banner in 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 a part of the welcome information.

 

# Test the configuration remotely using Telnet.

**************************************************************************

* 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

 

 

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: Chinese language mode.

english: 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 GigabitEthernet1/0/3 interface view to system view, and then to user view.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/3

[Sysname-GigabitEthernet1/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 current view, as you would with the hot key <Ctrl+Z>.

Related command: quit.

Example

# Return to user view from GigabitEthernet1/0/3 interface view.

<Sysname> system-view

[Sysname] interface GigabitEthernet 1/0/3

[Sysname-GigabitEthernet1/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

# Set the user level to 3.

<Sysname> super 3

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 as 3.

simple: Plain text password.

cipher: Cipher text password.

password: A password in a case-sensitive string.

l           For simple password, it is a string of 1 to 16 characters.

l           For cipher password, it is a string of 1 to 16 characters or 24 characters. For example, the simple 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 in simple form for switching user-level to 3.

<Sysname> system-view

[Sysname] super password level 3 simple abc

# Display the password for switching user-level.

[Sysname] display current-configuration

#

 super password level 3 simple abc

# Set the password to abc in cipher form for switching user-level to 3.

<Sysname> system-view

[Sysname] super password level 3 cipher abc

# Display the password for switching user-level.

[Sysname] display current-configuration

#

 super password level 3 cipher = ;)<01%^&;YGQ`>HJ:4U#@1!!

1.1.20  sysname

Syntax

sysname sysname

undo sysname

View

System view

Parameter

sysname: Name of the device, a string of 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 router 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 1 to 255 and defaults to 255.

-i interface-type interface-number: Specifies the packet sending interface by its type and number.

-m interval: Specifies the interval (in milliseconds) to send ICMP ECHO-RESPONSE packets, in the range 1 to 65535. The default value is 200 ms.

l           If a response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals to the actual response period plus the value of interval.

l           If no response from the destination is received within the timeout time, the interval to send the next ECHO-REQUEST equals to the timeout value plus the value of interval.

-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 (in bytes) of ICMP ECHO-REQUEST packets, in the range 20 to 8100 and 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 ECHO-REQUEST packets, in the range of 0 to 255. The default value is 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.

<Sysname> ping 10.1.1.5

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.

-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 1 to 65535. The default value is 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 0 to 65535. The default value is 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 trace the routers used by the packets while traveling from the source 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 routers used by packets while traveling from the current device, with an IP address of 18.26.0.115, to the destination device.

<Sysname> tracert 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: All debugging switches.

timeout time-value: Specifies the timeout time for the debugging all command. When all the switches are enabled, the system will automatically execute the undo debugging all command after the time. The value ranges from 1 to 1440, in minute.

module-name: Module name, such as ARP, IP. You can use the debugging ? command to display the current module name.

option: Specifies the debugging option for a specific module. Different modules have different debugging options in terms of their number and content. You can use the debugging module-name ? command to display the currently supported options.

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, 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, 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 { backup | main }

View

User view

Parameter

file file-url: Specifies a file name, a string of 1 to 63 characters.

main: Specifies a file as a main boot file.

backup: Specifies a file as a backup boot file.

Description

Use the boot-loader command to specify a boot file on a device.

By default, the boot file is specified as a main boot file.

Related command: display boot-loader.

Example

# Specify the main application used for boot of next time.

<Sysname> boot-loader file plat.bin main

  This command will set boot file, Continue? [Y/N]:y

  The specified file will be used as a main boot file at the next time!

3.1.2  bootrom

Syntax

bootrom update file file-url

View

User view

Parameter

update: Upgrades a BootROM file.

file file-url: Specifies a BootROM file name, a string of 1 to 63 characters.

Description

Use the bootrom command to upgrade the BootROM file.

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

3.1.3  bootrom-update security-check enable

Syntax

bootrom-update security-check enable

undo bootrom-update security-check enable

View

System view

Parameter

None

Description

Use the bootrom-update security-check enable command to enable the validity check function when upgrading a BootROM file.

Use the undo bootrom-update security-check enable command to disable the validity check function when upgrading a BootROM file.

By default, the validity check function is enabled at the time of upgrading a BootROM file.

Since the BootROM files of switching and routing processing units (SRPUs) and line processing units (LPUs) vary with devices, users are easily confused to make mistakes when upgrading BootROM files. After the validity check function is enabled, the device will strictly check BootROM upgrade files for correctness and version configuration information to ensure a successful upgrade.

Example

# Enable the validity check function when upgrading a BootROM file.

<Sysname> system-view

[Sysname] bootrom-update security-check enable

3.1.4  display boot-loader

Syntax

display boot-loader

View

Any view

Parameter

None

Description

Use the display boot-loader command to display the path, name, and main/backup attribute of a BootROM file on a device.

Related command: boot-loader.

Example

# Display the file adopted for the current and next boot of the device.

<Sysname> display boot-loader

The current boot app is:  flash:/s5500.bin

The main boot app is:     flash:/s5500.bin

The backup boot app is:   flash:/s5500backup.bin

Table 3-1 Description on the fields of the display boot-loader command

Field

Description

The current boot app is: flash:/s5500.bin

The main boot file used by the device for the current boot is s5500.bin.

The main boot app is: flash:/s5500.bin

The main boot file used by the device for the next boot is s5500.bin.

The backup boot app is:   flash:/s5500backup.bin

The backup boot file used by the device for the next boot is s5500backup.bin.

 

3.1.5  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 between the serial number of the first CPU usage statistics record to be displayed and that of the last CPU usage record to be displayed.

verbose: Specifies to display 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 takes statistics of CPU usage at intervals (usually every 60 seconds) and saves the statistical results in the history record area. The maximum number of records that can be saved depends on the device model. If number is set to N and offset to M, the system will display N consecutive records from the last Mth record.

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.

<Sysname> display cpu-usage

===== Current CPU usage info =====

CPU Usage Stat. Cycle: 18 (Second)

CPU Usage            : 19%

CPU Usage Stat. Time : 2006-02-20  07:31:36

CPU Usage Stat. Tick : 0x160e(CPU Tick High) 0xb56dfe41(CPU Tick Low)

Actual Stat. Cycle   : 0x0(CPU Tick High) 0x1bbd0b90(CPU Tick Low)

 

TaskName        CPU        Runtime(CPU Tick High/CPU Tick Low)

b2X0             1%               0/  54f30f

bC.0             0%               0/  19d661

VIDL            81%               0/16bc93c5

TICK             2%               0/  a79844

STMR             0%               0/    8066

FLSH             0%               0/    7782

SYSM             0%               0/  23cda6

PORT             0%               0/    a5c1

 bTX             0%               0/   2172f

bLK0             1%               0/  8b95f1

 bRX             0%               0/  1b24c3

ROUT             1%               0/  559c5a

 vt0             0%               0/   2df38

 DEV             0%               0/    fa83

STND             0%               0/   28e11

SOCK             0%               0/   7abee

 ACL             0%               0/    fbde

 mac             0%               0/    4441

LAGG             0%               0/    c2a6

MSTP             0%               0/   657f6

GARP             0%               0/   63af9

CLST             0%               0/   6a482

 NDP             0%               0/    c0f0

NTDP             0%               0/  3d4d4f

HABP             0%               0/    d69e

 ARP             0%               0/   49776

  IP             0%               0/  348230

HTTP             0%               0/    a26b

NTPT             1%               0/  7cd30e

VTYD             0%               0/   6ae71

FIB6             0%               0/    8a68

  ND             0%               0/  190ee9

TRAP             0%               0/   7b097

RMON             0%               0/    a863

DT1X             0%               0/  2ea1a7

 ACM             0%               0/  2a6690

LSSO             0%               0/   13293

  LS             0%               0/   be67a

RDSO             0%               0/   1387e

 RDS             1%               0/  631992

  SC             0%               0/  273bae

 TAC             0%               0/   57106

 vt1             0%               0/   2d254

IGSP             0%               0/    a294

IFNT             0%               0/    a232

 vt2             0%               0/  2eb0cb

FTPS             1%               0/  5af1f6

 

3.1.6  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

SubSNo PortNum PCBVer FPGAVer CPLDVer BootRomVer AddrLM Type       State       

0      28      REV.B  NULL    002     117        IVL    MAIN       Normal

3.1.7  display environment

Syntax

display environment

View

Any view

Parameter

None

Description

Use the display environment command to display the temperature information, including the current temperature and temperature thresholds of cards.

Example

# Display the temperature information of cards.

<Sysname> display environment

Temperature State: Normal

Temperature Value: 30 Degree Celsius

Warning Threshold: 55 Degree Celsius

3.1.8  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 shows that the fan is working normally.

3.1.9  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): 79546368                                           

Total Used Memory(bytes): 27098200                                             

Used Rate: 34%

3.1.10  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 the device.

Example

# Display the status of the power supply of the device.

<Sysname> display power

      Power    1                                                               

      State    : Normal                                                        

      Type     : AC.

3.1.11  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 the 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.12  reboot

Syntax

reboot

View

User view

Parameter

None

Description

Use the reboot command to reboot the whole system.

Example

# Reboot the device.

<Sysname> reboot

  This command will reboot the system. Since the current configuration may have changed, all changes may be lost if you continue. Continue? [Y/N]:y

3.1.13  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.14  schedule reboot at

Syntax

schedule reboot at hh:mm [ date ]

undo schedule reboot

View

User view

Parameter

hh:mm: Reboot time of the 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 the 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.

 

  Caution:

This command reboots the device in a future time, thus resulting in service interruption. Please use it with caution.

 

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.

<Sysname>

%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.15  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.

 

  Caution:

This command reboots the device after the specified delay time, thus resulting in service interruption. Please use it with caution.

 

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.

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become a Partner
  • Partner Resources
  • Partner Business Management
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网