Testing a NTP server

Accurate timestamps on network and server hardware is critical for daily operations and troubleshooting. The NTP service is used to keep the clocks in sync, but how can we tell if the services is running as expected?

By running ntpdate with the -q option (query only, don’t set date) we can validate the server is returning a proper answer:

[email protected]:~$ ntpdate -q pool.ntp.org
server, stratum 1, offset 0.003985, delay 0.04179
server, stratum 2, offset 0.002441, delay 0.05338
server, stratum 2, offset 0.000726, delay 0.09357
server, stratum 2, offset -0.004938, delay 0.07932
13 Jul 09:42:28 ntpdate[9050]: adjust time server offset 0.003985 sec


106 Words

2020-07-13 09:42 -0500

comments powered by Disqus