Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

Configure Date and Time Locally

You can set the date and time on a device running Junos OS by using the set date operational mode command:

To enter the date and time locally:

  1. From operational mode, manually set the date and time.

    Because this is an operational-mode command, there is no need to perform a commit operation.

    For example:

  2. Verify the time.

    The show system uptime command provides the following information: current time, last boot time, protocols start time, last configuration commit time.

You can use the set date command from operational mode to instruct the device to retrieve the date and time from a configured NTP server. For example:

  • From operational mode, issue the set date command and specify ntp to retrieve the date and time from a configured NTP server, or specify ntp ntp-server to retrieve the date and time from the given NTP server.

    For example: