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:
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 specifyntp
to retrieve the date and time from a configured NTP server, or specifyntp ntp-server
to retrieve the date and time from the given NTP server.user@host> set date ntp ntp-server
For example:
user@host> set date ntp 25 Jun 16:38:28 ntpdate[2314]: step time server 192.0.2.1 offset -0.004182 sec