set date ntp
Syntax
Description
Use an NTP server to synchronize the current date and time setting on the router.
You do not need to reboot the router when you use the
set date ntpcommand.Options
none—Uses the system NTP server list.
ntp-server—IP address of one or more NTP servers to query. When querying more than one server, use the format"ip-address ip-address"(for example,"1.2.3.4 192.17.22.9").Required Privilege Level
Usage Guidelines
See the JUNOS Internet Software Configuration Guide: Getting Started.
Sample Output: set date ntp (to query one server)
user@host>set date ntp 192.17.12.914 Sep 22:00:50 ntpdate[20603]: step time server 192.17.12.9 offset 0.000461 secSample Output: set date ntp (to query two servers)
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