show ntp status
Syntax
show ntp status <no-resolve>
Description
Display the values of internal variables returned by Network Time Protocol (NTP) peers.
Options
none | Display the values of internal variables returned by NTP peers. |
no-resolve | (Optional) Suppress symbolic addressing. |
Required Privilege Level
view
Output Fields
Table 1 describes
the output fields for the show ntp status
command. Output
fields are listed in the approximate order in which they appear.
Field Name |
Field Description |
---|---|
|
System status word, a code representing the status items listed. |
|
Indicates a normal synchronized state with no leap seconds
imminent. Other options could be |
|
Indicates the current synchronization source, in this
case, an NTP server. Other options include |
|
Indicates the number of events that have occurred since that last code change. An event is often the receipt of an NTP polling message. |
|
Describes the most recent event, in this case, the stratum of the peer server changed. |
|
A detailed description of the version of NTP being used. |
|
Indicates the current hardware platform and version of the processor. |
|
Detailed description of the name and version of the operating system in use. |
|
The number of leap seconds in use. |
|
The stratum of the peer server. Anything greater than 1 is a secondary reference source, and the number roughly represents the number of hops away from the stratum 1 server.. Stratum 1 is a primary reference, such as an atomic clock. |
|
The precision of the peer clock, how precisely the frequency and time can be maintained with this particular timekeeping system. |
|
The total roundtrip delay to the primary reference source, in seconds. |
|
The maximum error relative to the primary reference source, in seconds. |
|
An identification number of the peer in use. |
|
Reference identifier of the remote
peer. If the reference identifier is not known, this field shows a
value of |
|
The local time, in timestamp format, when the local clock was last updated. If the local clock has never been synchronized, the value is zero. |
|
The NTP broadcast message polling interval, in seconds. |
|
The current time on the local router clock. |
|
The current mode of NTP operation, where 1 is symmetric active, 2 is symmetric passive, 3 is client, 4 is server, and 5 is broadcast. |
|
Current estimated offset of the peer, in milliseconds. Indicates the time difference between the reference clock and the local clock. |
|
The frequency of the clock. |
|
Indicates the magnitude of jitter, in milliseconds, between several time queries. |
|
A measure of how well this clock can maintain a constant frequency. |
Sample Output
- show ntp status
- show ntp status | display xml (Starting in Junos OS and Junos OS Evolved Release 22.4R1)
show ntp status
user@host> show ntp status associd=0 status=0615 leap_none, sync_ntp, 1 event, clock_sync, version="ntpd 4.2.8p15-a Sun Oct 2 12:41:44 PDT 2022 (1)", processor="amd64", system="FreeBSDJNPR-12.1-20220929.32ed862a0f7_", leap=00, stratum=4, precision=-21, rootdelay=25.091, rootdisp=29.386, refid=172.16.0.1, reftime=e7290692.310f9fda Wed, Nov 23 2022 12:52:34.191, clock=e7290819.e3d61bef Wed, Nov 23 2022 12:59:05.889, peer=45960, tc=10, mintc=3, offset=-0.294143, frequency=-14.096, sys_jitter=0.000000, clk_jitter=0.169, clk_wander=0.020
show ntp status | display xml (Starting in Junos OS and Junos OS Evolved Release 22.4R1)
<user@host> show ntp status | display xml <rpc-reply xmlns:junos="http://xml.juniper.net/junos/22.4I0/junos"> <ntp-status> <associd>0</associd> <statusinfo>0615 leap_none, sync_ntp, 1 event, clock_sync</statusinfo> <version>"ntpd 4.2.8p15-a Sun Oct 2 12:41:44 PDT 2022 (1)"</version> <processor>"amd64"</processor> <system>"FreeBSDJNPR-12.1-20220929.32ed862a0f7_"</system> <leap>00</leap> <stratum>4</stratum> <precision>-21</precision> <rootdelay>25.091</rootdelay> <rootdisp>27.346</rootdisp> <refid>172.16.0.1</refid> <reftime>e7290692.310f9fda Wed, Nov 23 2022 12:52:34.191</reftime> <clock>e7290791.f3de0d45 Wed, Nov 23 2022 12:56:49.952</clock> <peer>45960</peer> <tc>10</tc> <mintc>3</mintc> <offset>-0.294143</offset> <frequency>-14.096</frequency> <sys-jitter>0.000000</sys-jitter> <clk-jitter>0.169</clk-jitter> <clk-wander>0.020</clk-wander> </ntp-status> <cli> <banner></banner> </cli> </rpc-reply>
Release Information
Command introduced before Junos OS Release 7.4.