JN0-102: Juniper Networks Certified Associate Junos Exam | Command Prompt for 'set date' Command

Command Prompt for 'set date' Command

Prev Question Next Question

Question

At which command prompt would you issue the set date command?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

D

The correct answer is C. [edit system] user@router#.

The "set date <date>" command is used to set the system date on a Juniper Networks device running the Junos operating system. This command can be issued from the Junos CLI (Command Line Interface), which is accessed through a terminal connection to the device.

In Junos, the CLI is organized into a hierarchy of configuration statements, with each level of the hierarchy represented by a prompt. The set date command is a system-level command, meaning that it must be issued from the [edit system] hierarchy level.

The [edit system] prompt is used to configure system-level parameters such as the hostname, domain name, time zone, and NTP (Network Time Protocol) server settings. To set the system date, you would first enter the [edit system] hierarchy by typing:

user@router> configure Entering configuration mode

[user@router]# edit system [user@router][edit system]#

At this point, you can issue the set date command followed by the desired date in the format "YYYY-MM-DD HH:MM:SS", for example:

[user@router][edit system]# set date 2023-03-09 12:30:00

Finally, you would commit the changes by typing "commit" at the [edit system] prompt:

[user@router][edit system]# commit commit complete

After committing the changes, the system date will be updated to the specified value.