On NTP server, how to check offset between client and NTP server?

On NTP server, how to check offset between client and NTP server?

Post by Steve Kost » Sat, 11 Oct 2008 03:30:10



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.

--
Steve Kostecke < XXXX@XXXXX.COM >
NTP Public Services Project - http://www.yqcomputer.com/
 
 
 

On NTP server, how to check offset between client and NTP server?

Post by Martin Bur » Sat, 11 Oct 2008 16:46:08


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
--
Martin Burnicki

Meinberg Funkuhren
Bad Pyrmont
Germany