Which command would correctly set a router's date and time?
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.htmlThe 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:
sqlset 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:
sqlset 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:
bashset date yyyyMMddhhmm.ss
So, the correct answer in this case would be A:
bashset 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.