NTPSWEEP(1)
π NAME π
okay so bestie, meet ntpsweep(1) β the Unix tool that prints, per host, the NTP stratum level, the clock offset in seconds, the daemon version, the operating system, and the processor. It can also optionally recurse through all the peers. π
If no hosts are specified, ntpsweep reports on localhost. periodt. β¨
β¨ SYNOPSIS β¨
ntpsweep [-V | --version] [-l host]... [-p] [-m number] [-s prefix] [-h string] [hostfile...]
π¦ DESCRIPTION π¦
ntpsweep prints per host the NTP stratum level, the clock offset in seconds, the daemon version, the operating system, and the processor. Optionally, it recurses through all peers. π«Ά
If no hosts are specified, ntpsweep reports on localhost. πΈ
Hereβs the tea: ntpsweep relies on ntpq and Mode 6 queries to probe servers. That depends on the remote hostβs restrict configuration allowing queries. Nowadays effectively all public hosts set noquery, so this script is unlikely to be useful unless you have multiple specially-configured timeservers on a LAN. π
β οΈ ngl, this is the part where the vibe check matters: if those remote hosts donβt allow queries via restrict, the sweep is gonna be a whole flop. π
πΈ OPTIONS πΈ
-l string,--host-list=stringβ Host to execute actions on. This option may appear an unlimited number of times. Use this option to specify the host on which this script operates. May appear multiple times. Multiple hosts may be specified, delimited by commas. π-p,--peersβ Recursively list all peers a host synchronizes to. π¦-m number,--maxlevel=numberβ Traverse peers up to this level (4is a reasonable number). This option takes an integer number as its argument. π’-s string,--strip=stringβ Strip this string from hostnames. βοΈ-h string,--host=stringβ Specify a single host. Deprecated option for backwards compatibility. π«Ά-V,--versionβ Print the version string and exit. π
If hostfiles are specified, they are treated as lists of hostnames to be swept, one per line. π
π EXIT STATUS π
One of the following exit values will be returned:
0(EXIT_SUCCESS) β Successful program execution. π1(EXIT_FAILURE) β The operation failed or the command syntax was not valid. π
mwah π this page is from NTPsec, dated 2026-10-21. now go sweep those timeservers, bestie β you got this! πβ¨
π¦ where this page comes from
- fedora 43: ntpsec 1.2.6-1.fc43 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- fedora 43: ntpsec 1.2.6-1.fc43 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- fedora 44: ntpsec 1.2.6-1.fc44 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- fedora 44: ntpsec 1.2.6-1.fc44 Β· NTP AND BSD-2-Clause AND BSD-3-Clause AND BSD-4-Clause AND ISC AND Apache-2.0 AND Beerware
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms