Juniper Networks Certified Associate Junos Exam: Setting Router Date and Time

How to Set a Router's Date and Time Correctly

Prev Question Next Question

Question

Which command would correctly set a router's date and time?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

https://www.juniper.net/documentation/en_US/junos/topics/task/operational/junos-time-date-setting.html

The correct command to set a router's date and time depends on the mode you are in.

If you are in configuration mode, the correct command to set the router's date and time is:

sql
set system time yyyyMMddhhmm.ss

Here, yyyy represents the year, MM represents the month, dd represents the day, hh represents the hour, mm represents the minute, and ss represents the second. For example, to set the date and time to September 18, 2021, 10:30 AM and 30 seconds, the command would be:

sql
set system time 202109181030.30

Note that the time must be in 24-hour format.

If you are in operational mode, the correct command to set the router's date and time is:

bash
set date yyyyMMddhhmm.ss

So, the correct answer in this case would be A:

bash
set date 199708290900.00

However, in current versions of Junos, this command may not work as it sets the date in the past. It is recommended to use the set system time command instead.