[Contents] [Prev] [Next] [Index] [Report an Error]


Set Date and Time from NTP Servers

If the NTP server is unable to synchronize the current date and time on the router, a system log message similar to the following appears:

"time error %.0f over %d seconds; set clock manually". 

To set the date and time from all NTP servers configured at the [edit system ntp server] hierarchy level to determine the correct time, use the set date ntp command:

user@host> set date ntp 


You do not need to reboot the router when you use the set date ntp command.

To set the date and time from a NTP server configured at the [edit system ntp server] hierarchy level to determine the correct time, use the set date ntp command:

user@host> set date ntp <ntp-server>


To set the date and time from multiple NTP servers configured at the [edit system ntp server] hierarchy level to determine the correct time, use the set date ntp command:

user@host> set date ntp <ntp-server>


ntp-server—IP address of one or more NTP servers to query. When querying more than one server, enclose the IP addresses in quotes using the format "ip-address ip-address". For example:

user@host> set date ntp "200.49.40.1 129.127.28.4"
10 Feb 13:50:21 ntpdate[794]: step time server 129.127.28.4 offset 0.000163 sec

For more information about how to configure the Network Time Protocol, see Configure the Network Time Protocol and the JUNOS Internet Software Command Reference.


[Contents] [Prev] [Next] [Index] [Report an Error]