ntpstat (8) - Linux Manuals

ntpstat: show network time synchronisation status

NAME

ntpstat - show network time synchronisation status

SYNOPSIS

ntpstat

DESCRIPTION

ntpstat 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.

RETURNS

ntpstat 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.

AUTHOR

G. Richard Keech (rkeech [at] redhat.com)

SEE ALSO

ntp_misc(5), ntpd(8), ntpq(8), ntpdc(8)