NTPSTAT(1)
π NTPSTAT β bestie edition π
okay so this is ntpstat(1), a little section 1 manual page, and honestly? it's giving "tiny script, huge main character energy." she prints NTP synchronisation status. that's it. that's the whole job. and she ATE. β¨
β¨ NAME β¨
ntpstat β Print NTP synchronisation status ππ
π SYNOPSIS π
ntpstat [-m MAXERROR]
likeβ¦ one optional flag. we love a low-maintenance queen. π
πΈ DESCRIPTION πΈ
so ntpstat is a script, and what she does is print a lil brief summary of your system clock's synchronisation status β but ONLY when the ntpd or chronyd daemon is actually running, bestie. no daemon, no tea. π
when she does run, she spills all of this:
- the time source (an NTP server or a reference clock) that your system clock is currently synchronised to
- its stratum
- how often the server gets polled
- the maximum estimated error of the clock
and the way she gets all that info is by calling up her besties ntpq or chronyc and asking the daemon directly. queen never guesses, she ASKS. π«Ά
okay now the important lore. following the NTPv4 specification (RFC 5905): if your time source becomes unreachable and there are no other sources that could be selected, the status of the clock will still be "synchronised" β but the maximum error will be slowly increasing. so likeβ¦ technically fine? technically?? it's giving "smiling through the pain" π the error is literally creeping up on you and the status is out here saying everything's chill.
exit statuses β memorize these, they're the whole vibe check:
0β the clock is synchronised β slay1β the clock is not synchronised π2β the status could not be determined, e.g. when the daemon is not running π€·3β an invalid command-line option was specified π
π OPTIONS π
-m MAXERRORβ specify a maximum acceptable error of the clock, in milliseconds. so if the clock IS synchronised, but its maximum estimated error is larger thanMAXERROR, or is unknown, thenntpstatwill exit with a status of1. yes bestie, she WILL call it out. that's boundaries. π-hβ print a help message and exit. the classic. the icon. the escape hatch. π
β SEE ALSO β
ntpd(8), ntpq(8), chronyd(8), chronyc(1)
the whole friend group, fr fr π¦
and that's the page!! this was ntpstat, from the NTPSTAT(1) manual (section 1, general commands manual, the classic). go check your sync status bestie, and remember: "synchronised" with a slowly growing error is still technically synchronised. iykyk. ππ
π¦ where this page comes from
- centos-stream 10: ntpstat 0.6-13.el10 Β· MIT
- centos-stream 9: ntpstat 0.6-6.el9 Β· MIT
- fedora 43: ntpstat 0.6-14.fc43 Β· MIT
- fedora 44: ntpstat 0.6-15.fc44 Β· MIT
- nixos 26.05: ntpstat 0.6
- nixpkgs unstable: ntpstat 0.6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms