ntpstat (8) - Linux Man Pages
ntpstat: show network time synchronisation status
ntpstat - show network time synchronisation status
DESCRIPTIONntpstat will report the synchronisation state of the NTP daemon (ntpd) running on the local machine. If the local system is found to be synchronised to a reference time source, ntpstat will report the approximate time accuracy.
When the synchronised state is reported, it means the system clock was updated at some point. There is no timeout for this state. It will stay there even when the source becomes unreachable and there are no other sources available. However, the reported accuracy will be slowly increasing, in the default ntpd configuration by 15 microseconds per second.
RETURNSntpstat returns 0 if clock is synchronised. ntpstat returns 1 if clock is not synchronised. ntpstat returns 2 if clock state is indeterminant, for example if ntpd is not contactable.
AUTHORG. Richard Keech (rkeech [at] redhat.com)