Tom Diehl on 22 Mar 2004 15:18:03 -0000


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Re: ntp...how do I know it's working?


On Mon, 22 Mar 2004, Mike Chirico wrote:

> Is there a quick way to find out if ntp is working correctly?

Yup!!
"ntpq servername"
Try the pe as and rv commands. 

Below is what one of my ntp serves looks like:
ntpq> pe
     remote           refid      st t when poll reach   delay   offset  jitter
==============================================================================
+icarus.rogueind NAVOBS1.MIT.EDU  2 u   52 1024  377    0.170    1.831   0.334
*taz.rogueind.co time-B.timefreq  2 u  875 1024  377    0.519   -6.018   1.470

ntpq> as
ind assID status  conf reach auth condition  last_event cnt
===========================================================
  1 33220  9424   yes   yes  none  candidat   reachable  2
  2 33221  9624   yes   yes  none  sys.peer   reachable  2

ntpq> rv
status=0674 leap_none, sync_ntp, 7 events, event_peer/strat_chg,
version="ntpd 4.1.2@1.892 Wed Oct 29 06:06:59 EST 2003 (1)",
processor="i686", system="Linux2.4.22-1.2174.nptl", leap=00, stratum=3,
precision=-16, rootdelay=70.282, rootdispersion=78.623, peer=33221,
refid=taz.rogueind.com,
reftime=c4097d08.05ef416b  Mon, Mar 22 2004  9:56:08.023, poll=10,
clock=c409807a.3cfb43d8  Mon, Mar 22 2004 10:10:50.238, state=4,
offset=-0.942, frequency=150.421, jitter=7.309, stability=0.004
ntpq>


HTH,

Tom
___________________________________________________________________________
Philadelphia Linux Users Group         --        http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion  --   http://lists.phillylinux.org/mailman/listinfo/plug