C613-50170-01 Rev B
Command Reference for x510 Series
235
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
YSTEM
C
ONFIGURATION
AND
M
ONITORING
C
OMMANDS
CLOCK
SET
clock set
Overview
This command sets the time and date for the system clock.
Syntax
clock set <
hh:mm:ss
> <
day
> <
month
> <
year
>
Mode
Privileged Exec
Usage
Configure the timezone before setting the local time. Otherwise, when you change
the timezone, the device applies the new offset to the local time.
NOTE
:
If Network Time Protocol (NTP) is enabled, then you cannot change the time or
date using this command. NTP maintains the clock automatically using an external
time source. If you wish to manually alter the time or date, you must first disable NTP.
Example
To set the time and date on your system to 2pm on the 2nd of October 2016, use
the command:
awplus#
clock set 14:00:00 2 oct 2016
Related
Commands
Parameter
Description
<hh:mm:ss>
Local time in 24-hour format
<day>
Day of the current month, from 1 to 31
<month>
The first three letters of the current month
<year>
Current year, from 2000 to 2035