This article describes how to set the system time of an SRX Series device manually and configure Network Time Protocol (NTP) on the device.
For other topics, go to the SRX Getting Started main page.
This section contains the following:
user@host# set system time-zone Europe/Berlin
user@host#
set system time-zone Europe/Berlin
user@host> set date 201001251115.00
user@host>
set date 201001251115.00
user@host> set date ntp 78.46.194.186 27 Apr 16:10:48 ntpdate[981]: step time server 213.61.224.44 offset 0.000876 sec
user@host# set system ntp server 78.46.194.186 version 4 prefer user@host# set system ntp server 88.198.34.114 version 4
user@host# set system ntp server 78.46.194.186 version 4 prefer user@host#
set system ntp server 88.198.34.114 version 4
user@host# set system ntp boot-server 78.46.194.186
user@host# show system ntp server 78.46.194.186
user@switch> show ntp status status=0644 leap_none, sync_ntp, 4 events, event_peer/strat_chg, version="ntpd 4.2.0-a Thu Feb 14 03:06:23 UTC 2008 (1)", processor="i386", leap=00, stratum=2, precision=-20, rootdelay=170.961, rootdispersion=21.583, peer=46724, refid=172.17.27.46, reftime=cbc2b0d7.b5d026c0 Wed, Apr 30 2008 10:48:23.710, poll=6, clock=cbc2b0ef.b402b32b Wed, Apr 30 2008 10:48:47.703, state=4, offset=18.736, frequency=58.615, jitter=1.425, stability=0.080
show system uptime
match
current
user@host> show system uptime | match current Current time: 2009-04-22 17:21:20 CEST
no-resolve
user@host> show ntp associations no-resolve remote refid st t when poll reach delay offset jitter ============================================================================== *192.53.103.104 .PTB. 1 - 504 1024 377 62.492 6.408 0.120
user@host> show ntp associations no-resolve remote refid st t when poll reach delay offset jitter ==============================================================================
*192.53.103.104 .PTB. 1 - 504 1024 377 62.492 6.408 0.120
user@host> show log messages | match ntp
show log messages | match ntp
NOTE: If you are using the loopback interface with the Firewall Filters, then follow KB11436 - Why does Network Time Protocol (NTP) sometimes stop working if a loopback firewall filter is applied [juniper.net] .
2020-03-20: Article reviewed for accuracy. No changes made. Article is correct and complete