[ntp:questions] Peer Review of ntpq -c rv

Alby VA albyva at empire.org
Fri Mar 9 19:04:06 UTC 2012


On Mar 9, 11:43 am, David Lord <sn... at lordynet.org> wrote:
> Alby VA wrote:
> > On Mar 8, 6:43 am, David Lord <sn... at lordynet.org> wrote:
> >> Alby VA wrote:
>
> >> ....
>
> >>>>>> David
> >>>>>  Does this mean there is something I need to tweek to get
> >>>>> my offsets lower? Could the delays from the remote NTP
> >>>>> servers be my issue?
> >>>> I don't know if that's the case. I setup my two servers
> >>>> to use the nearest ntp servers that didn't share the same
> >>>> sources. There are tools to assist in the ntp distribution
> >>>> or you can select from the list of public servers at
> >>>> ntp.org. The stratum is usually of no importance. I had
> >>>> several stratum3 servers in my initial selection but the
> >>>> same servers are now stratum2 or stratum1. By nearest, I
> >>>> mean those with shortest delay.
> >>>> I'd remove the sources with highest delay, maybe just by
> >>>> marking as noselect.
> >>>> My own server with gps/pps source gives a couple of blips
> >>>> each morning due to load from cron jobs. The other pcs
> >>>> show variations from load and from temperature.
> >>>>http://www.lordynet.org.uk/mrtg/stats/ntp/
> >>>> David
> >>>  David:
> >>>  Can I get your mrtg.cfg and perl script for those graph/stats?
> >>> I think mine are just mislabeled...
> >> They can be downloaded from
>
> >> <ftp://ftp0.lordynet.org.uk/pub/os/NetBSD/mrtg_ntp.tbz>
>
> >> David
>
> > David:
>
> >  I downloaded your configs and setup MRTG to run GetNTPus_ntpq.pl,
> > but it doesn't seem to be pulling any data. Did I miss something?
>
> > URL:http://godzilla.empire.org/
>
> Have you tried running GetNTPus_ntpq.pl from commandline.
>
> # perl /root/scripts/mrtg/GetNTPus_ntpq.pl me6000
> 2
> 0
> 0
> 0
>
> You should get the offset in usec reported in either of
> the first two lines depending if positive or negative.
>
> If that doesn't produce a meaningful output, is output
> from "ntpq -c rv -p" ok?
>
> David


 Yup. This is what I get when running the script manually:

godzilla# perl GetNTPus.pl
45
0
0
0
godzilla#


 Here is the yield of ntpq -c rv -p

godzilla# ntpq -c rv -p
assID=0 status=0118 leap_none, sync_atomic, 1 event, event_8,
version="ntpd 4.2.6p5 at 1.2349-o Mon Feb 20 22:00:33 UTC 2012 (1)",
processor="amd64", system="FreeBSD/9.0-RELEASE", leap=00, stratum=1,
precision=-19, rootdelay=0.000, rootdisp=0.385, refid=PPS,
reftime=d304d27f.dc13beb4  Fri, Mar  9 2012 14:03:27.859,
clock=d304d287.439a8e4d  Fri, Mar  9 2012 14:03:35.264, peer=41909,
tc=4, mintc=3, offset=0.044, frequency=-24.812, sys_jitter=0.002,
clk_jitter=0.002, clk_wander=0.001
     remote           refid      st t when poll reach   delay
offset  jitter
==============================================================================
+ntp.alaska.edu  .GPS.            1 u  131  128  137  120.695
-2.053  11.166
-utcnist2.colora .ACTS.           1 u   50  128  377   63.597
-0.943   0.507
-time-a.nist.gov .ACTS.           1 u  122  128  275   70.842
7.885  40.959
-tick.usask.ca   .GPS.            1 u  114  128  377   98.079
-10.275   0.566
+cronos.cenam.mx .GPS.            1 u   59  128  377   93.774
-5.426  14.921
oPPS(0)          .PPS.            0 l    8   16  377    0.000
0.044   0.002
*GPS_NMEA(0)     .GPSb.           0 l   11   16  377    0.000
-4.836  18.343
godzilla#
godzilla#






More information about the questions mailing list