Overview
This article provides information regarding the CLI command clock
, which is used to configure the date and time.
You can use the clock
command to manually configure the date, time, and timezone on the appliance. If you want the time to be set via NTP server, use the NTP command.
Information
NOTE: The following syntax convention is used:
- {}: Options are enclosed in braces and are separated by '|'
- []: Optional keywords are enclosed in brackets
- <>: User input is required where variables are enclosed in greater-than and less-than symbols
The following table describes the commands used for performing common actions related to clock:
Action Description |
Command |
Parameter Description |
To set the appliance's time and date | clock set <hh>:<mm>:<ss> [<yyyy>/<mm>/<dd>] |
<hh>:<mm>:<ss> [<yyyy>/<mm>/<dd>] - If the date is not set, the time will change without affecting the date. Time adjustment is not allowed if NTP is enabled. |
To set the appliance's time zone | clock timezone {<region>|UTC|UTC-offset <utc-offset>} |
|
Note: Using these commands will force the UI to restart without a prompt.
Example
Set the time zone and adjust the system clock to 11:00 pm.
clock timezone Australia Melbourne
clock set 23:00:00
Find more CLI commands.
Priyanka Bhotika
Comments