set date ntp
Syntax
set date ntp <servers | force | key key | node node-number | routing-instance routing-instance-name | source-address source-address>
Description
Set the date and local time. If reject mode is enabled and the system rejected the update from the NTP server because it exceeds the configured threshold value, an administrator has two options to overrule the reject mode action: manually set the date and time in YYYYMMDDhhmm.ss format, or force synchronization of device time with the NTP server update by specifying the force option.
Options
servers | Specify the IP address of one or more NTP servers. |
force | Force system date and time to update to NTP server values. The device date and time are synchronized with the NTP proposed date and time even if reject is set as the action and the difference between the device time and NTP proposed time exceeds the default or the configured threshold value. |
key key | Specify a key number to authenticate the NTP server used to
synchronize the date and time. You must specify the same key number
used to authenticate the server, configured at the |
node node-name | Specify system date and time using NTP servers on specific node. |
routing-instance routing-instance-name | Specify the routing instance through which server is available. |
source-address source-address | Specify the source address that the SRX Series devices use to contact the remote NTP server. |
Required Privilege Level
view
Output Fields
When you enter this command, you are provided feedback on the status of your request.
Sample Output
set date ntp force
user@host> set date ntp force 18 Jul 16:52:43 ntpdate[3319]: NTP update request has been accepted, The time offset is 147605840.624994 sec from the time server 66.129.255.62 which is larger than the maximum threshold of 400 sec allowed.
Release Information
Command introduced in Junos OS Release 15.1X49-D70.