We have two Linux servers, ServerA and ServerB. The system time on ServerA seems to be slightly behind ServerB, only by a few hundredths of a second.
I am trying to diagnose an issue with a distributed transaction and have noticed slight inconsistencies between the times of the two servers, but I need some way to prove it. I need something that will tell me “ServerA is 0.002 of a second behind ServerB”. Perhaps not as verbose as this but you get the picture.
Is there any way to prove this? I.e. Is there a utility/script/command that I can use to tell me what exactly the offset is?
You can use
ntpdatein query-only mode on both servers and compare the results (e.g., how far out does it report each server to be). Compare them against the same time source, of course. And recommend to the admins that if the machines aren’t already keeping themselves up to date withntpd, they should be. If timing is that critical to what you’re doing, you should have a local timeserver that periodically syncs to the outside world, and which your local servers sync with.