Skip to content

Commit 493bed1

Browse files
authored
Update Command-Reference.md
Updated relevant new CLI commands for clock mgmt config clock timezone <timezone> config clock date <YYYY-MM-DD> <HH:MM:SS> show clock timezones
1 parent 20d594e commit 493bed1

File tree

1 file changed

+56
-0
lines changed

1 file changed

+56
-0
lines changed

doc/Command-Reference.md

+56
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,62 @@ This command displays the current date and time configured on the system
541541
Mon Mar 25 20:25:16 UTC 2019
542542
```
543543
544+
**config clock date**
545+
546+
This command will set the date-time of the systetm, given strings with date-time format <YYYY-MM-DD> <HH:MM:SS>
547+
548+
- Usage:
549+
```
550+
config clock date <YYYY-MM-DD> <HH:MM:SS>
551+
```
552+
553+
- Parameters:
554+
- _date_: valid date in format YYYY-MM-DD
555+
- _time_: valid time in format HH:MM:SS
556+
557+
- Example:
558+
```
559+
admin@sonic:~$ config clock date 2023-04-10 13:54:36
560+
```
561+
562+
**config clock timezone**
563+
564+
This command will set the timezone of the systetm, given a string of a valid timezone.
565+
566+
- Usage:
567+
```
568+
config clock timezone <timezone>
569+
```
570+
571+
- Parameters:
572+
- _timezone_: valid timezone to be configured
573+
574+
575+
- Example:
576+
```
577+
admin@sonic:~$ config clock timezone Africa/Accra
578+
579+
580+
**show clock timezones**
581+
582+
This command Will display list of all valid timezones to be configured.
583+
584+
- Usage:
585+
```
586+
show clock timezones
587+
```
588+
589+
- Example:
590+
```
591+
root@host:~$ show clock timezones
592+
Africa/Abidjan
593+
Africa/Accra
594+
Africa/Addis_Ababa
595+
Africa/Algiers
596+
Africa/Asmara
597+
...
598+
```
599+
544600
**show boot**
545601

546602
This command displays the current OS image, the image to be loaded on next reboot, and lists all the available images installed on the device

0 commit comments

Comments
 (0)