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