[ntp:questions] On NTP server, how to check offset between client and NTP server?

Martin Burnicki martin.burnicki at meinberg.de
Fri Oct 10 07:46:08 UTC 2008

Steve Kostecke wrote:

> On 2008-10-09, chowalit.lab Chowalit Lab Linux <chowalit.lab at gmail.com>
> wrote:
>> I have stratum 2 NTP server. My client request time from my
>> NTP server. On my NTP server, how to know offset of between my
>> client and my server ? I found ntp_script software suite from
>> http://www.schlitt.net/scripts/ntp/. It's not solve my problem
>> directly.
> If your "client" is also running ntpd you can use ntpq to see the
> client's view of its offset from the server. Just run 'ntpq -p' on the
> client system.

If I've understood the original question correctly then this monitoring
should be done from the server. So there are several possibilities:

1.) run ntpq -p on the server but actually send the request to the client:
ntpq -p <client-ip>

2.) if the client does not respond to 'ntpq -p' requests, use ntpdate:
ntpdate -q <client-ip>

3.) if monitoring should be done continuously and you have only a couple of
known clients, you can add them to your server's ntp.conf file and tell the
server just to poll them but not to try to synchronize to the clients. 
In ntp.conf:
server <client-ip> noselect

In the latter case, if you run 'ntpq -p' on the server you also get a list
which tells you the estimated time offset of each client.

Martin Burnicki

Meinberg Funkuhren
Bad Pyrmont

More information about the questions mailing list