[ntp:questions] Selective peerstats collection
David Lord
snews at lordynet.org
Sun Dec 2 17:51:44 UTC 2012
David Taylor wrote:
> I would like to add peerstats monitoring, but only for certain servers -
> some on my LAN. Something like:
>
> server <LAN-address> iburst nopeerstats
> server <LAN-address> iburst peerstats
> server <LAN-address> iburst peerstats
> server <WAN-address> iburst nopeerstats
> server <WAN-address> iburst nopeerstats
> pool us.pool.ntp.org iburst nopeerstats
>
> I haven't seen any way of doing this, but perhaps I've missed an option.
> The problem is that peerstats files can be quite large (especially on
> stratum-1 servers running at 16s polling), and I'm only interested in
> data from a couple of other servers.
>
> If there are others interested in this perhaps I might suggest an
> enhancement.
I use peer_summary (and loop_summary) from the ntpd distro. It
may not be what you are looking for. It should also be easy to
set a cron job to filter peerstats each day to extract entries
for peers you want.
This is from peer_summary on 192.168.59.67:
Two stratum-1 on the lan, 192.168.59.61 from a Sure gps/pps
usually with offset < 3 usec, and 192.168.59.64 from a Conrad MSF
receiver usually with offset < 300 usec.
peerstats.20110101
ident cnt mean rms max delay dist disp
==========================================================================
192.168.59.22 112 0.158 0.624 1.557 0.567 23.763 9.854
192.168.59.61 90 0.585 0.812 1.731 0.811 22.482 9.296
192.168.59.64 207 -0.421 0.853 3.106 0.415 192.259 7.576
192.168.59.210 92 0.424 0.566 1.567 0.630 20.648 8.252
158.152.1.76 55 -0.088 0.768 2.052 30.318 46.053 16.456
130.159.196.117 52 -0.124 0.731 1.691 39.524 51.098 16.490
peerstats.20110102
ident cnt mean rms max delay dist disp
==========================================================================
192.168.59.64 123 -0.400 0.614 1.926 0.439 75.387 11.580
130.159.196.117 54 -0.450 0.605 1.349 39.723 51.278 17.175
192.168.59.210 70 0.067 0.357 0.779 0.509 20.887 10.380
192.168.59.22 69 0.184 0.652 1.586 0.510 22.603 11.703
192.168.59.61 68 -0.057 0.710 1.769 0.814 21.502 10.176
158.152.1.76 51 -0.159 0.403 0.897 30.348 46.637 18.630
peerstats.20110103
ident cnt mean rms max delay dist disp
==========================================================================
192.168.59.61 66 0.122 0.869 2.253 0.791 21.119 10.249
192.168.59.22 80 -0.478 0.943 1.976 0.500 22.926 11.451
192.168.59.210 76 0.284 0.502 1.273 0.571 23.238 11.904
192.168.59.64 137 -0.011 0.542 1.415 0.424 194.827 14.167
158.152.1.76 49 -0.326 0.566 1.631 30.360 46.568 18.700
130.159.196.117 49 -0.367 0.966 2.939 39.840 51.162 18.083
David
More information about the questions
mailing list