[ntp:questions] Offset Average (Normal)?

David J Taylor david-taylor at blueyonder.co.uk.invalid
Wed Mar 14 06:55:06 UTC 2012

"Alby VA" <albyva at empire.org> wrote in message 
news:2ece7b6a-e150-432d-b23a-a4bde46df2d8 at j11g2000yqj.googlegroups.com...
> Hmmmmm, what do you think about this command for getting
> loopstat data?
> tail -n1 -r loopstats | awk '{print $3}'
> tail -n1 -r loopstats  = This looks at the last line of the loopstat
> file
> awk  '{print $3}' === This pulls the data from the 3rd field which is
> the offset info
> Example:
> --
> godzilla# tail -n1 -r loopstats | awk '{print $3}'
> 0.000002814
> If you could code that into a perl script that MRTG uses, we'd be
> golden.

To work over a network, I really need data which is available through the 
standard ntpq command.  You are welcome to find a Perl expert who could 
coude that for your local PC, though.

I will raise a bug report for NTP about the precision of the data being 
sometimes now marginal.


More information about the questions mailing list