Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

set date ntp

Syntax

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 [edit system ntp authentication-key number] hierarchy level.

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

Release Information

Command introduced in Junos OS Release 15.1X49-D70.