Mike Chirico on 22 Mar 2004 23:33:02 -0000 |
> Date: Mon, 22 Mar 2004 10:17:51 -0500 (EST) > From: Tom Diehl <tdiehl@rogueind.com> > To: plug@lists.phillylinux.org > Subject: [PLUG] Re: ntp...how do I know it's working? > Reply-To: plug@lists.phillylinux.org > > 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> Thank you. There is a "reject" on my system using the "as" command, but I assume that's normal when authentication is disabled. Comparing your "frequency" and "stablility" with the values on my server leaves to wondering if something isn't working correctly. It seems like I should have numbers here, but I'm still reading the documentation. ntpq> pe remote refid st t when poll reach delay offset jitter ======================================================================== ====== tock.usno.navy. 0.0.0.0 16 u - 64 0 0.000 0.000 4000.00 ntpq> as ind assID status conf reach auth condition last_event cnt =========================================================== 1 51964 8000 yes yes none reject ntpq> rv status=c011 sync_alarm, sync_unspec, 1 event, event_restart, version="ntpd 4.1.1c-rc1@1.836 Thu Feb 13 12:17:19 EST 2003 (1)", processor="i686", system="Linux2.6.4-thinUSB-ch1", leap=11, stratum=16, precision=-17, rootdelay=0.000, rootdispersion=0.360, peer=0, refid=0.0.0.0, reftime=00000000.00000000 Thu, Feb 7 2036 1:28:16.000, poll=4, clock=c409f3ef.98226809 Mon, Mar 22 2004 18:23:27.594, state=1, offset=0.000, frequency=0.000, jitter=0.008, stability=0.000 ntpq> Thanks, Mike Chirico ___________________________________________________________________________ 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
|
|