Steve Kostecke wrote: > On 2008-10-09, chowalit.lab Chowalit Lab Linux <[EMAIL PROTECTED]> > 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 -- Martin Burnicki Meinberg Funkuhren Bad Pyrmont Germany _______________________________________________ questions mailing list questions@lists.ntp.org https://lists.ntp.org/mailman/listinfo/questions