Chapter 1 Basic
System Configuration & Debugging Commands
Syntax
clock datetime HH:MM:SS { YYYY/MM/DD | MM/DD/YYYY }
View
User view
Parameter
HH:MM:SS:
Current time, where HH ranges from 0 to 23, MM and SS range from 0 to 59.
YYYY/MM/DD
or MM/DD/YYYY: Current date, where YYYY is the year ranging from 2000 to
2099, MM is the month ranging from 1 to 12, and DD is the day ranging from 1 to
31.
Description
Use the clock datetime command to set
the current date and time of the Ethernet switch.
By default, it is 23:55:00 04/01/2000 when
the system starts up.
In an environment that needs to obtain
exact absolute time, it is required to use this command to set the current date
and time of the Ethernet switch.
Related command: display clock.
Example
# Set the current date and time of the
Ethernet switch to 0:0:0 2001/01/01.
<H3C> clock datetime 0:0:0
2001/01/01
Syntax
clock summer-time zone-name { one-off | repeating } start-time
start-date end-time end-date offset-time
undo clock summer-time
View
User view
Parameter
zone-name:
Name of the summer time, a string of 1 to 32 characters.
one-off: Sets
the summer time for only one year (the specified year).
repeating: Sets
the summer time for every year starting from the specified year.
start-time:
Start time of the summer time, in the form of HH:MM:SS.
start-date: Start
date of the summer time, in the form of YYYY/MM/DD or MM/DD/YYYY.
end-time:
End time of the summer time, in the form of HH:MM:SS.
end-date:
end date of the summer time, in the form of YYYY/MM/DD or MM/DD/YYYY.
offset-time:
Offset of the summer time relative to the standard time, in the form of
HH:MM:SS.
Description
Use the clock summer-time command to
set the name, time range and time offset of the summer time.
After the setting, you can use the display
clock command to check the results.
Example
# Set the summer 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.
<H3C> clock summer-time abc1
one-off 06:00:00 08/01/2005 06:00:00 09/01/2005 01:00:00
# Set the summer time named abc2, which starts
from 06:00:00 08/01, ends until 06:00:00 09/01, and is one hour ahead of the
standard time every year from 2005 on.
<H3C> clock summer-time abc2
repeating 06:00:00 08/01/2005 06:00:00 09/01/2005 01:00:00
Syntax
clock timezone zone-name { add | minus } HH:MM:SS
undo clock timezone
View
User view
Parameter
zone-name:
Name of the time zone, in length of 1 to 32 characters.
add: Sets
the time zone to a time before the UTC time.
minus: Sets
the time zone to a time behind the UTC time.
HH:MM:SS:
Time to be subtracted from the UTC time, in the form of HH:MM:SS.
Description
Use the clock timezone command to
set the local time zone.
Use the undo clock timezone command
to restore the local time zone to the default UTC (universal time coordinated) time
zone.
After the setting, you can use the display
clock command to check the results. The log information time and the debug
information time adopts the local time that has been adjusted by the time zone
and the summer time.
Related command: clock summer-time
and display clock.
Example
# Set the local time zone named z5, which
is five hours ahead of the UTC time.
<H3C> clock timezone z5 add
05:00:00
Syntax
language-mode { chinese | english }
View
User view
Parameter
chinese:
Sets the CLI language environment to Chinese.
English:
Sets the CLI language environment to English.
Description
Use the language-mode command to
toggle between the language modes (that is, language environments) of the
command line interface (CLI) to meet your requirement.
By default, the CLI language mode is english.
Example
# Toggle from the english mode to the chinese
mode.
<H3C> language-mode chinese
Syntax
quit
View
Any view
Parameter
None
Description
Use the quit command to return from
current view to lower level view, or exit the system if current view is user
view.
The following lists the three levels of
views available (from lower level to higher level):
l
User view
l
System view
l
VLAN view, Ethernet port view, and so on
Related command: return and system-view.
Example
# Return from system view to user view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] quit
<H3C>
Syntax
return
View
System view and higher level views
Parameter
None
Description
Use the return command to return
from current view to user view. The composite key <Ctrl+Z> has the same
effect with the return command.
Related command: quit.
Example
# Return from interface view to user view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] interface Ethernet 1/0/1
[H3C-Ethernet1/0/1] return
<H3C>
Syntax
sysname sysname
undo sysname
View
System view
Parameter
sysname: System name of the Ethernet
switch. It is a character string in length of 1 to 30 characters. By default,
it is H3C.
Description
Use the sysname command to set the
system name of the Ethernet switch. Changing the system name will affect the
CLI prompt. For example, if the system name of the switch is H3C, the prompt for
user view is <H3C>.
Use the undo sysname command
to restore the default system view of the Ethernet switch.
Example
# Set the system name of the Ethernet
switch to H3CLANSwitch.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] sysname H3CLANSwitch
[H3CLANSwitch]
Syntax
system-view
View
User view
Parameter
None
Description
Use the system-view command to enter
system view from user view.
Related command: quit and return.
Example
# Enter system view from user view.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C]
Syntax
display clock
View
Any view
Parameter
None
Description
Use the display clock command to
display the current date and time of the system, so that you can adjust them if
they are wrong.
The maximum date and time that can be
displayed by this command is 23:59:59 9999/12/31.
Related command: clock datetime.
Example
# Display the current date and time of the
system.
<H3C> display clock
18:36:31 beijing Sat 2002/02/02
Time Zone : beijing add 01:00:00
Summer-Time : bj one-off 01:00:00
2003/01/01 01:00:00 2003/08/08 01:00:00
Table 1-1 Description on the fields of the display clock command
|
Field
|
Description
|
|
18:36:31 beijing Sat 2002/02/02
|
Current date and time of the system
|
|
Time Zone
|
Configured time zone information
|
|
Summer-Time
|
Configured summer time information
|
Syntax
display debugging [ unit unit-id ] [ interface interface-type
interface-number ] [ module-name ]
View
Any view
Parameter
unit-id:
Unit ID of a switch.
interface-type: Interface type.
interface-number: Interface number.
module-name:
Functional module name.
Description
Use the display debugging command to
display enabled debugging on a specified device. Executing this command without
any parameter will display all enabled debugging.
Related command: debugging.
Example
# Display enabled debugging on unit 1.
<H3C> display debugging unit 1
IP packet debugging is on
IP icmp debugging is on
Syntax
display users [ all ]
View
Any view
Parameter
all: Displays
the information about all user terminal interfaces.
Description
Use the display users command to
display the status and configuration information about user terminal interfaces.
Example
# Display the status and configuration
information about user terminal interfaces.
<H3C> display users
UI Delay Type Ipaddress
Username Userlevel
0 AUX 0
00:00:17 3
8 VTY 0 01:37:55 TEL
192.168.0.200 3
+ 9 VTY 1 00:00:00 TEL
192.168.0.3 3
12 VTY 4 00:00:00 TEL
192.168.0.115 3
+ : Current operation user.
F : Current operation user work in
async mode.
Table 1-2 Description on the output user
terminal interface information
|
Item
|
Description
|
|
UI
|
User interface
|
|
Delay
|
Delay time when no interaction occurs
between user and device
|
|
Type
|
User login type
|
|
Ipaddress
|
IP address used when login using telnet
program
|
|
Username
|
User name
|
|
User level
|
User level
|
Syntax
display version
View
Any view
Parameter
None
Description
Use the display version command to
display the information (such as the version information) about the switch
system.
Specifically, you can use this command to
check the software version and issue time, the basic hardware configuration,
and some other information about the switch.
Example
# Display the version of the system.
<H3C> display version
H3C Comware Platform Software.
Comware software, Version 3.10,
Release 1500
Copyright(c) 2004-2007 Hangzhou H3C
Technologies. Co., Ltd. All rights reserved.
H3C S3100-52P uptime is 0 week, 0
day, 15 hours, 20 minutes
H3C S3100-52P with 1 MIPS Processor
64M bytes DRAM
8196K bytes Flash Memory
Config Register points to FLASH
Hardware Version is REV.C
CPLD Version is CPLD 001
Bootrom Version is 101
[Subslot 0] 48 FE Hardware Version is
REV.C
[Subslot 1] 4 GE Hardware Version is
REV.C
Syntax
debugging module-name
[ debugging-option ]
undo debugging { all | module-name [ debugging-option ] }
View
User view
Parameter
module-name:
Module name.
debugging-option: Debugging option.
all: Used to
disable all debugging.
Description
Use the debugging command to enable
system debugging.
Use the undo debugging command to
disable system debugging.
By default, all debugging is disabled for
the system.
Enabling debugging will generate a great
deal of debugging information and thus will affect the efficiency of the
system. Therefore, it is recommended not to enable debugging for multiple
functional modules at the same time. The undo debugging all command brings
great convenience for you to disable all debugging at a time instead of
disabling them one by one.
Related command: display debugging.
Example
# Enable IP packet debugging.
<H3C> debugging ip packet
IP packet debugging switch is on.
The above command output indicates that the
IP packet debugging is enabled.
Syntax
display diagnostic-information
View
Any view
Parameter
None
Description
Use the display diagnostic-information
command to display system diagnostic information, or save system diagnostic
information to a file suffixed with diag in the Flash memory.
Example
# Save system
diagnostic information to the file default.diag.
<H3C> display
diagnostic-information
This operation may take a few
minutes, continue?[Y/N]y
Diagnostic-information is saved to
Flash or displayed(Y=save N=display)?[Y/N]y
Please input the file name(*.diag)[flash:/default.diag]:
% Output information to file: flash:/default.diag.
Please wait......
................................................
# Display the current diagnostic
information of the system.
<H3C> display
diagnostic-information
This operation may take a few
minutes, continue?[Y/N]y
Diagnostic-information is saved to
Flash or displayed(Y=save N=display)?[Y/N]n
-------------------- display version
--------------------
……
<Omitted>
Syntax
terminal debugging
undo terminal debugging
View
User view
Parameter
None
Description
Use the terminal debugging command
to enable terminal display for debugging information.
Use the undo terminal debugging
command to disable terminal display for debugging information.
By default, terminal display for debugging
information is disabled.
Related command: debugging.
Example
# Enable terminal display for debugging
information.
<H3C> terminal debugging
Syntax
ping [ -a
ip-address ] [-c count ] [ -d ] [ -f ] [ -h
ttl ] [ -i interface-type interface-number [ ip ] [
-n ] [ - p pattern ] [ -q ] [ -s packetsize
] [ -t timeout ] [ -tos tos ] [ -v ] host
View
Any view
Parameter
-a ip-address: Sets the source IP address to send the ICMP ECHO-REQUEST packets.
-c count: Specifies how many times the ICMP ECHO-REQUEST packet will be
sent. The count argument is the times, which ranges from 1 to 4,294,967,295 and
defaults to 5.
-d: Sets the
socket to DEBUGGING mode. By default, it is non-DEBUGGING mode.
-f:
Specifies to discard a packet directly instead of fragmenting it if its length
is greater than the MTU (maximum transmission unit) of the interface.
-h ttl:
Sets the TTL (time to live) value of the ICMP ECHO-REQUEST packets in the range
of 1 to 255. By default, the TTL value is 255.
-i: Selects
the port to send the packets.
interface-type: Interface type.
interface-number: Interface number.
ip: Selects
the IP ICMP packet.
-n:
Specifies to regard the host argument as an IP address without performing
domain name resolution. By default, the host argument is first regarded as an
IP address; if it is not an IP address, domain name resolution is performed.
-p pattern: Specifies the padding byte pattern of the ICMP ECHO-REQUEST
packets. The pattern argument is a byte in hexadecimal. For example, -p ff
fills a packet with only ff. By default, the system fills a packet with 0x01,
0x02, and so on, until 0x09; then it repeats this procedure from 0x01 again.
-q: Specifies
to display only the statistics and not to display the details. By default, all
the information including the details and statistics will be displayed.
-s packetize: Specifies the size (in bytes) of each ICMP ECHO-REQUEST packet (excluding
the IP and ICMP headers). The packetize argument ranges from 20 to 32,000 and defaults
to 56 bytes.
-t
timeout: Sets the timeout time (in ms) waiting for
an ICMP ECHO-REPLY packet after an ICMP ECHO-REQUEST packet is sent. The timeout
argument ranges from 0 to 65535 and defaults to 2,000 ms.
-tos tos:
Sets the ToS value of the ICMP ECHO-REQUEST packets in the range of 0 to 255.
By default, this value is 0.
-v: Specifies
to display other ICMP packets received (that is, non-ECHO-REPLY packets) as
well as the ECHO-REPLY packets. By default, except for the ECHO-REPLY packets,
other ICMP packets are not displayed.
host: Domain
name or IP address of the destination host.
Description
Use the ping command to check the IP
network connectivity and the reachability of a host.
The executing procedure of the ping
command is as follows: First, the source host sends an ICMP ECHO-REQUEST packet
to the destination host. If the connection to the destination network is
normal, the destination host receives this packet and responds with an ICMP
ECHO-REPLY packet.
You can use the ping command to
check the network connectivity and the quality of a network line. This command
can output the following information:
l
Response status of the destination to each ICMP
ECHO-REQUEST packet. If no response packet is received within the timeout time,
including the number of bytes, packet sequence number, TTL and response time of
the response packet. If no response packet is received within the timeout time,
the message "Request time out" is displayed
instead.
l
Final statistics, including the numbers of sent
packets and received response packets, the irresponsive packet percentage, and
the minimum, average and maximum values of response time.
You can set a relatively long timeout time
waiting for response packet if the network transmission is slow.
Related command: tracert.
Example
# Check the reachability of the host with
IP address 202.38.160.244.
<H3C> ping 202.38.160.244
ping 202.38.160.244 : 56 data bytes
Reply from 202.38.160.244 : bytes=56
sequence=1 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56
sequence=2 ttl=255 time = 2ms
Reply from 202.38.160.244 : bytes=56
sequence=3 ttl=255 time = 1ms
Reply from 202.38.160.244 : bytes=56
sequence=4 ttl=255 time = 3ms
Reply from 202.38.160.244 : bytes=56
sequence=5 ttl=255 time = 2ms
--202.38.160.244 ping statistics--
5 packet transmitted
5 packet received
0% packet loss
round-trip min/avg/max = 1/2/3 ms
Syntax
tracert [ -a
source-ip ] [ -f first-ttl ] [ -m max-ttl
] [ -p port ] [ -q num-packet ] [ -w timeout
] string
View
Any view
Parameter
-a source-ip: Sets the source IP address used by this command.
-f first-ttl: Sets the initial TTL of the packets to be
sent, so that this command displays the addresses of only those gateways on the
path whose hop counts are not smaller than the hop count specified by the first-ttl
argument. For example, if the first-ttl argument is three, the command displays
the addresses of the gateways from the third hop The first-ttl argument ranges
from 1 to 255 and defaults to 1.
-m max-ttl: Sets the maximum TTL value of the packets to be sent. After the command sends a packet with the maximum TTL, it will not
send any more packets. With this argument, this command displays the addresses
of only those gateways from the source destination to the hop count specified
by the argument. For example, if the max-ttl argument is 5, the command
displays the addresses of the gateways from the source to the fifth count. The max-ttl
argument ranges from 1 to 255 and defaults to 30.
-p port: Sets the destination port of the packets to be sent. The port argument ranges from 0 to 65535 and defaults to 33434.
Generally, you need not change the argument.
-q num-packet: Sets the
number of packets to be sent every time. The nqueries argument ranges from 0 to
65,535 and defaults to 3.
-w
timeout: Sets the timeout time to wait for ICMP error
packets. The timeout argument ranges from 0 to 65,535
and defaults to 5,000 (in milliseconds).
string: IP
address of the destination host, or host name of the remote system with 1 to 20
characters.
Description
Use the tracert command to trace the
gateways the test packets passes through during its journey from the source to
the destination. This command is mainly used to check the network connectivity.
It can help you locate the trouble spot of the network.
The executing procedure of the tracert
command is as follows: First, the source sends a packet with the TTL of 1, and
the first hop device returns an ICMP error message indicating that it cannot
forward this packet because of TTL timeout. Then, the source resends a packet
with the TTL of 2, and the second hop device also returns an ICMP TTL timeout
message. This procedure goes on and on until a packet gets to the destination
or the maximum TTL is reached. During the procedure, the system records the
source address of each ICMP TTL timeout message in order to offer the path that
the packets pass through to the destination.
If you find that the network is in trouble
by using the ping command, you can use the tracert command to
find where the trouble is in the network.
The tracert command can output the
IP addresses of all the gateways the packets pass through to the destination.
It output the string "***" if a gateway times out.
Example
# Trace the gateways the packets pass
through during its journey to the destination with IP address 18.26.0.115.
<H3C> tracert 18.26.0.115
tracert to allspice.lcs.mit.edu
(18.26.0.115), 30 hops max
1 helios.ee.lbl.gov (128.3.112.1) 0
ms 0 ms 0 ms
2 lilac-dmc.Berkeley.EDU
(128.32.216.1) 19 ms 19 ms 19 ms
3 lilac-dmc.Berkeley.EDU
(128.32.216.1) 39 ms 19 ms 19 ms
4 ccngw-ner-cc.Berkeley.EDU
(128.32.136.23) 19 ms 39 ms 39 ms
5 ccn-nerif22.Berkeley.EDU
(128.32.168.22) 20 ms 39 ms 39 ms
6 128.32.197.4 (128.32.197.4) 59 ms
119 ms 39 ms
7 131.119.2.5 (131.119.2.5) 59 ms 59
ms 39 ms
8 129.140.70.13 (129.140.70.13) 80 ms
79 ms 99 ms
9 129.140.71.6 (129.140.71.6) 139 ms
139 ms 159 ms
10 129.140.81.7 (129.140.81.7) 199 ms
180 ms 300 ms
11 129.140.72.17 (129.140.72.17) 300
ms 239 ms 239 ms
12 * * *
13 128.121.54.72 (128.121.54.72) 259
ms 499 ms 279 ms
14 * * *
15 * * *
16 * * *
17 * * *
18 ALLSPICE.LCS.MIT.EDU (18.26.0.115)
339 ms 279 ms 279 ms
Syntax
boot boot-loader [ backup-attribute ] { file-url | device-name
}
View
User view
Parameter
backup-attribute: Sets the specified file to a backup file.
file-url: Path
+ name of an host software file in the Flash memory.
device-name:
File name, in the form of unit[NO.]>flash:, which is used to save the
specified file to the Flash memory of a specified switch.
Description
Use the boot boot-loader command to
specify the host software that will be adopted when the switch reboots next
time.
You can use this command to specify a .bin file
in the Flash memory as the host software to be adopted at reboot.
Example
# Specify the host software that will be
adopted when the current switch reboots next time.
<H3C> boot boot-loader s3100-52P.bin
The specified file will be booted
next time on unit 1!
Syntax
boot bootrom
{ file-url | device-name }
View
User view
Parameter
file-ulr: Path
+ name of a BootROM file (that is, a .btm file) in the Flash memory.
device-name:
File name, beginning with a device name in the form of unit[NO.]>flash, used
to save the specified file to the Flash memory of a specified switch.
Description
Use the boot bootrom command to
update the BootROM.
Example
# Update the BootROM of the switch using
the file named S3100-52P.btm.
<H3C> boot bootrom S3100-52P.btm
Syntax
display boot-loader
View
Any view
Parameter
None
Description
Use the display boot-loader command
to display the host software (.bin file) that will be adopted when the switch reboots.
Example
# Display the host software that will be
adopted when the switch reboots.
<H3C>display boot-loader
Unit 1:
The current boot app is: s3100-52p.bin
The main boot app is: s3100-52p.bin
The backup boot app is: s3100-52p.bin
Table 3-1 Description on the fields of the display boot-loader command
|
Field
|
Description
|
|
The
current boot app is
|
Current
boot file of the system
|
|
The main
boot app is
|
Main boot
file of the system (default boot file)
|
|
The backup
boot app is
|
Backup
boot file of the system
|
Syntax
display cpu [
unit unit-id ]
View
Any view
Parameter
unit-id:
Unit ID of a switch.
Description
Use the display cpu command to
display the CPU usage of a specified switch.
Example
# Display the CPU usage of this switch.
<H3C> display cpu
Unit 1
Board 0 CPU busy status:
12% in last 5 seconds
12% in last 1 minute
12% in last 5 minutes
Table 3-2 Description on the fields of
the display cpu command
|
Field
|
Description
|
|
CPU busy status
|
Indicates that the following lines
describe the CPU occupancies in different time periods.
|
|
12% in last 5 seconds
12% in last 1 minute
12% in last 5 minutes
|
The CPU usage in the last five seconds is
12%.
The CPU usage in the last one minute is
12%.
The CPU usage in the last five minutes is
12%.
|
Syntax
display device [ manuinfo [ unit unit-id ] | unit unit-id
]
View
Any view
Parameter
manuinfo:
Displays the manufacture information of the specified switch.
unit-id: Unit
ID of a switch.
Description
Use the display device command to
display the information, such as the module type and operating status, about
each board (main board and sub board) of a specified switch.
You can use this command to display the following
information about each board: slot number, sub slot number, number of ports,
versions of PCB, FPGA, CPLD and BootROM software, address learning mode,
interface board type, and so on.
Example
# Display board information of this switch.
<H3C> display device
Unit 1
SlotNo SubSNo PortNum PCBVer FPGAVer CPLDVer
BootRomVer AddrLM Type State
0 0 48 REV.C NULL
001 101 IVL MAIN Normal
0 1 4 REV.C NULL
001 NULL IVL 4 GE Normal
3.1.6 display fan
Syntax
display fan [
unit unit-id [ fan-id ] ]
View
Any view
Parameter
unit-id:
Unit ID of a switch.
fan-id: ID
number of a fan.
Description
Use the display fan command to view
the working state of the built-in fans.
Example
# Display the
working state of the fans.
<H3C> display fan
Unit 1
Fan 1 State: Normal
The above information indicates that fan
work normally.
Syntax
display memory [ unit unit-id ]
View
Any view
Parameter
unit-id: Unit
ID of a switch.
Description
Use the display memory command to
display the memory usage of a specified switch.
Example
# Display the memory usage of this switch.
<H3C> display memory
Unit 1
System Available Memory(bytes):
36191232
System Used Memory(bytes): 13143716
Used Rate: 36%
Table 3-3 Description on the fields of the display memory command
|
Field
|
Description
|
|
System Available Memory(bytes)
|
Available memory size of the system, in
unit of bytes
|
|
System Used Memory(bytes)
|
Used memory size of the system, in unit
of bytes
|
|
Used Rate
|
Percentage of the used memory
|
Syntax
display power [ unit unit-id [ power-id ] ]
View
Any view
Parameter
unit-id:
Unit ID of a switch.
power-id:
Power ID.
Description
Use the display power command to view
the working state of the power supply of the switch.
Example
# Display the working
state of the power supply.
<H3C> display power
Unit 1
power 1
State : Normal
Type : AC
The above information indicates that the type
of the power is AC, and the power supplies normally.
Syntax
display schedule reboot
View
Any view
Parameter
None
Description
Use the display schedule reboot
command to display information about scheduled reboot.
Related command: reboot, schedule
reboot at.
Example
# Display the information about scheduled
reboot.
<H3C> display schedule reboot
System will reboot at 16:00:00
2002/11/1 (in 2 hours and 5 minutes).
Syntax
reboot [
unit unit-id ]
View
User view
Parameter
unit-id: Unit
ID of a switch.
Description
Use the reboot command to restart a
specified Ethernet switch.
When rebooting, the system checks whether there is any configuration
change. If there is, it prompts you to indicate whether or not to proceed. This
prevents you from losing your original configuration due to oblivion after
system reboot.
Example
# Directly restart this switch without
saving the current configuration.
<H3C> reboot
Start to check configuration with
next startup configuration file,
please wait......
This command will reboot the device.
Current configuration may be lost in next
startup if you continue. Continue?
[Y/N] y
This will reboot device. Continue?
[Y/N] y
<H3C>
%Apr 1 23:57:58:685 2000 H3C
DEV/5/DEV_LOG:- 1 -
Switch is rebooting...
Starting......
Syntax
schedule reboot at hh:mm [ mm/dd/yyyy | yyyy/mm/dd
]
undo schedule reboot
View
User view
Parameter
hh:mm:
Reboot time, where hh (hour) ranges from 0 to 23, and mm (minute) ranges from 0
to 59.
mm/dd/yyyy or
yyyy/mm/dd: Reboot date, where yyyy (year) ranges from 2,000 to 2,099, mm
(month) ranges from 1 to 12, and the range of dd (day) depends on the specific
month. You cannot set the date later than 30 days than the system current date.
Description
Use the schedule reboot at command
to schedule a reboot on the current switch and set the reboot date and time.
Use the undo schedule reboot command
to cancel the scheduled reboot.
By default, no scheduled reboot is set on
the switch.
There is at most
one minute defer for scheduled reboot, that is, the switch will reboot within
one minute after reaching the specified reboot date and time.
After you execute the schedule reboot at
command with a future date specified, the switch will reboot at the specified
time with at most one minute delay.
After you execute the schedule reboot at
command without specifying a date, the switch will:
l
Reboot at the specified time on the current day
if the specified time is later than the current time.
l
Reboot at the specified time on the next day if
the specified time is earlier than the current time.
After you execute the command, the system
will prompt you to confirm. Enter "Y" or "y" for your
setting to take effect, and your setting will overwrite the old one (if
available).
If you adjust the system time by the clock
command after executing the schedule reboot at command, the schedule
reboot at command will be invalid and the scheduled reboot will not happen.
Related command: reboot, display
schedule reboot.
Example
# Suppose the current time is 05:06,
schedule a reboot so that the switch reboots at 22:00 on the current day.
<H3C> schedule reboot at 22:00
Reboot system at 22:00 2000/04/02(in
16 hours and 53 minutes)
confirm?[Y/N]:y
<H3C>
Syntax
schedule reboot delay { hh:mm | mm }
undo schedule reboot
View
User view
Parameter
hh:mm:
Reboot waiting delay, where hh ranges from 0 to 720, and mm ranges from 0 to 59.
mm: Reboot
waiting delay, ranging from 0 to 43,200 minutes.
Description
Use the schedule reboot delay
command to schedule a reboot on the switch, and set the reboot waiting delay.
Use the undo schedule reboot command
to cancel the scheduled reboot.
By default, no scheduled reboot is set on
the switch.
There is at most
one minute defer for scheduled reboot, that is, the switch will reboot within
one minute after waiting for the specified delay.
You can set the reboot waiting delay in two
formats: the hours:minutes format and the absolute minutes format, and both
must be less than or equal to 30 × 24 × 60 (that is, 30 days).
After you execute the command, the system
will prompt you to confirm. Enter "Y" or "y" for your
setting to take effect. Your setting will overwrite the old one (if available).
If you adjust the system time by the clock
command after executing the schedule reboot delay command, the schedule
reboot delay command will be invalid and the scheduled reboot will not
happen.
Related command: reboot, schedule
reboot at, undo schedule reboot, and display schedule reboot.
Example
# Suppose the current time is 05:02,
schedule a reboot so that the switch reboots after 70 minutes.
<H3C> schedule reboot delay 70
Reboot system at 06:12 2000/04/02(in
1 hours and 10 minutes)
confirm?[Y/N]:y
<H3C>
Syntax
schedule reboot regularity at hh:mm period
undo schedule reboot regularity
View
System view
Parameter
hh:mm: Reboot
time of the switch, in the hours:minutes format, where hh ranges from 0 to 24,
and mm ranges from 0 to 59.
period: Reboot period of the switch, in the format period = { daily |
{ monday | tuesday | wednesday | thursday | friday
| saturday | sunday }* }. daily indicates the reboot
period is one day, that is, the switch reboots at a specified time each day. { monday
| tuesday | wednesday | thursday | friday | saturday
| sunday }* indicates the day when the switch reboots.
Description
Use the schedule
reboot regularity command to enable the periodical
reboot function of the switch and set the reboot time.
Use the undo schedule
reboot regularity command to cancel the configured
reboot period.
By default, the reboot period of the switch
is not configured.
There is at most
one minute defer for scheduled reboot, that is, the switch will reboot within
one minute after reaching the specified reboot date and time.
After you execute the command, the system
will prompt you to confirm. Enter "Y" or "y" for your
setting to take effect. Your setting will overwrite the old one (if available).
If you adjust the system time by the clock
command after executing the schedule reboot regularity command, the schedule
reboot regularity command will be invalid.
Related command: reboot, schedule
reboot at, undo schedule reboot, and display schedule reboot.
Example
# Schedule a reboot so that the switch
reboots at 10:00 every Thursday.
<H3C> system-view
System View: return to User View with
Ctrl+Z.
[H3C] schedule reboot regularity at
10:00 thursday
Schedule reboot regularity, are you
sure?[Y/N]:y
[H3C]