Check the NTP Status
Purpose
View the configuration of the NTP server and the status of the system.
Action
To check NTP status, enter the following Junos OS CLI operational mode command:
Sample Output
user@host> show ntp status status=0644 leap_none, sync_ntp, 4 events, event_peer/strat_chg, processor="i386", system="JUNOS5.7-20030919-IMAyzc", leap=00, stratum=2, precision=-28, rootdelay=6.861, rootdispersion=10.465, peer=11004, refid=coetanian.company.net, reftime=c315b20a.a5c768df Fri, Sep 19 2003 9:49:14.647, poll=6, clock=c315b22a.1b31a08b Fri, Sep 19 2003 9:49:46.106, state=4, phase=-1.297, frequency=74.659, jitter=0.725, stability=0.005
Meaning
The sample output shows when the clock was last adjusted (reftime), together with its status and most recent exception event. Table 38 lists and describes the fields in the output of the show ntp status command.
Table 38: Sample Output Fields for the show ntp status Command
Output Field | Description |
|---|---|
status=0644 | Internal status flags. |
leap_none | The router is not doing a leap second. |
sync_ntp | The server and the router are synchronized. |
4events | The accumulated number of events since NTP was started. |
event_peer/strat_chg | Last event code. |
processor="i386", system="Junos5.7-20030919-IMAyzc" | Both fields identify the current system information. |
leap=00 | An internal value related to leap seconds. |
stratum=2 | The router stratum, which is always one higher than the stratum of the server to which the router is synchronized. If the router is not synchronized, the value is 16 instead of 2. |
precision=-28 | Order of magnitude of how small an interval the local system’s clock can measure. In this example, -28 means that the system can measure a period of -28 seconds, approximately 1/64 of a microsecond, or 16 nanoseconds. |
rootdelay=6.861 | One-way delay between the local system and the stratum 0 clock source. Essentially, this is the sum of the delays between this router and its synchronized source, the source and its source, and so on, all the way up to the atomic clock (which is stratum 0). |
rootdispersion=10.465 | The confidence level of the clock, in microseconds, that encompasses delay, jitter, and so on. |
peer=11004 | No information is available for this field yet. |
refid=coetanian.company.net, reftime=c315b20a.a5c768df Fri, Sep 19 2003 9:49:14.647 | These two fields identify the selected and synchronized source, and the last reference time received from it. |
poll=6 | The delay interval at which the synchronized server polls. In this example, 6 indicates that the server polls every 2^6 seconds, or every 64 seconds. |
clock=c315b22a.1b31a08b Fri, Sep 19 2003 9:49:46.106 | The current time. |
state=4 | No information is available for this field yet. |
phase=-1.297 | The calculated offset based on the local time, the server’s last reported time, and the sense of the delay between the router and the server. This is measured in milliseconds. |
frequency=74.659 | The clock frequency, in MHz. Note that this is the same order of magnitude as precision. |
jitter=0.725 | Variation in the time delay between the router and the server. |
stability=0.005 | A measure of how often the speed on the router must be changed to keep synchronized with the server. If the local clock is not perfectly stable, it will speed up or slow down, and NTP will have to counteract that tendency. |
Hide Navigation Pane
Show Navigation Pane
SHA1