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


set date ntp

Syntax

set date ntp <ntp-server>

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 ntp command.

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

view

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.9 
14 Sep 22:00:50 ntpdate[20603]: step time server 192.17.12.9 offset 0.000461 sec

Sample 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

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