JN0-102 · Question #354
Which command would correctly set a router's date and time?
The correct answer is C. > set date 199708290900.00. To manually set a Juniper router's date and time, the set date command is used in operational mode. The command requires the date and time to be specified in the YYYYMMDDHHMM.SS format.
Question
Which command would correctly set a router's date and time?
Options
- A
set date 199708290900.00
- B
set system time 199708290900.00
- C
set date 199708290900.00
- D
set system time 199708290900.00
How the community answered
(25 responses)- A4% (1)
- C96% (24)
Why each option
To manually set a Juniper router's date and time, the `set date` command is used in operational mode. The command requires the date and time to be specified in the `YYYYMMDDHHMM.SS` format.
This command is in configuration mode (`#`), but setting the date/time is an operational task and not part of the persistent configuration.
This command is in configuration mode (`#`) and uses incorrect syntax for setting the system time.
The `set date` command is used in operational mode (indicated by `>`) to manually set the system's date and time, using the format `YYYYMMDDHHMM.SS`.
While in operational mode, the command `set system time` is not the correct syntax; the correct command is `set date`.
Concept tested: Setting system date and time
Source: https://www.juniper.net/documentation/us/en/software/junos/junos-basics/topics/topic-map/junos-os-basics-date-time.html
Topics
Community Discussion
No community discussion yet for this question.