3-1
3
Basic System Configuration Commands
Basic System Configuration Commands
clock datetime
Syntax
clock datetime
time
date
View
User view
Default Level
3: Manage level
Parameters
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. The zeros in the argument can be omitted
except for indicating 0 hours.
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 commands:
clock summer-time one-off
,
clock summer-time repeating
,
clock timezone
,
display clock
.
Examples
# Set the current system time to 14:10:20 08/01/2005.
<Sysname> clock datetime 14:10:20 8/1/2005
# Set the current system time to 00:06:00 01/01/2007.
<Sysname> clock datetime 0:6 2007/1/1
clock summer-time one-off
Syntax
clock summer-time
zone-name
one-off
start-time
start-date end-time
end-date
add
-
time
Содержание E4510-48G
Страница 109: ...2 18 Sysname interface bridge aggregation 1 Sysname Bridge Aggregation1 shutdown ...
Страница 309: ...6 4 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address dhcp alloc ...
Страница 324: ...8 3 Sysname interface vlan interface 1 Sysname Vlan interface1 ip address bootp alloc ...
Страница 530: ...2 5 Sysname mvlan 100 subvlan 10 to 15 ...
Страница 739: ...8 15 Sysname system view Sysname port security trap addresslearned ...
Страница 819: ...13 11 Sysname system view Sysname public key peer key2 import sshkey key pub ...
Страница 857: ...iii 7 Track Configuration Commands 7 1 Track Configuration Commands 7 1 display track 7 1 track nqa 7 2 ...
Страница 914: ...5 17 Sysname reset oam ...
Страница 1064: ...5 30 Slot 2 Set next configuration file successfully ...
Страница 1325: ...21 13 Examples Redirect to member 2 Sysname irf switch to 2 Sysname Slave 2 ...