[ntp:questions] NTP server - Number of received petitions.

Raúl raul at rmgi.net
Tue Mar 21 12:30:01 UTC 2017

Hello Miroslav,

Of course, I'm not interested in individual clients, just the total number
of requests in, f.e., one hour. Maybe I did not explain myself correctly in
my previous messages.

So, using "ntpdc -c iostats", the numbers under the labels "received
packets" and "packets sent" are the total number of requests
received/served since the last server reboot?

Thanks for your help,


On 21 March 2017 at 12:17, Miroslav Lichvar <mlichvar at redhat.com> wrote:

> On Tue, Mar 21, 2017 at 12:01:21PM +0000, Raúl wrote:
> > But I don't need anything special, I'm just looking how to know the load
> of
> > my NTP server, how many request I'm receiving from clients. I thought
> that
> > doing that would be easy.
> If you just need current rate of requests and don't care about
> individual clients, you could periodically call ntpdc -c iostats and
> calculate the rate from the total number of received packets using awk
> for instance:
> while true; do ntpdc -c iostats; sleep 1; done | \
>         awk '/received packets/{ print $3 - last; last=$3}'
> --
> Miroslav Lichvar

More information about the questions mailing list