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?
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 18.104.22.168, stratum 1, offset 0.003985, delay 0.04179 server 22.214.171.124, stratum 2, offset 0.002441, delay 0.05338 server 126.96.36.199, stratum 2, offset 0.000726, delay 0.09357 server 188.8.131.52, stratum 2, offset -0.004938, delay 0.07932 13 Jul 09:42:28 ntpdate: adjust time server 184.108.40.206 offset 0.003985 sec