2.3 NTP, Clock & Time Zones
clock set
Syntax Description
Default
Modes/Context
History
Role
Example
Related Commands
Note
clock set <hh:mm:ss> [<yyyy/mm/dd>]
Sets the time and date.
hh:mm:ss
yyyy/mm/dd
N/A
Config
3.1.0000
admin
switch (config) # clock set 23:23:23 2010/08/19
switch (config) # show clock
Time:
23:23:26
Date:
2010/08/19
Time zone:
UTC
(Etc/UTC)
UTC offset: same as UTC
switch (config) #
show clock
If not specified, the date will be left the same.
Time.
Date.
Mellanox Technologies
Rev 1.6.2
69