Compare two NTP servers

ntp

I want to compare the time used by our internal servers against time.microsoft.com. Is there an easy way to do this?

Basically a third party sends me messages stamped with a time that has been synced iwth time.microsoft.com, unfortunately our servers are using a different time server, so I want to calculate if there is a significant difference between the our NTP synced time, and theirs.

Is there a simple way to accurately compare times?

regards,

David.

Best Answer

In Linux, ntpdate -q will query a remote server. Nagios' check_ntp script essentially does this for monitoring.

In older versions of Windows, I'd used ported version of ntp before. If you require a Windows specific solution, someone else may be able to contribute further.