1NTPSWEEP(1) NTPsec NTPSWEEP(1)
2
3
4
6 ntpsweep - print various information about given NTP servers
7
9 ntpsweep [-V | --version] [-l host]... [-p] [-m number] [-s prefix] [-h
10 string] [hostfile...]
11
13 ntpsweep prints per host the NTP stratum level, the clock offset in
14 seconds, the daemon version, the operating system and the processor.
15 Optionally recursing through all peers.
16
17 If no hosts are specified, ntpsweep reports on localhost.
18
19 ntpsweep relies on ntpq and Mode 6 queries to probe servers. This
20 depends on the remote host’s restrict configuration allowing queries.
21 Nowadays effectively all public hosts set noquery, so this script is
22 unlikely to be useful unless you have multiple specially- configured
23 timeservers on a LAN.
24
26 -l string, --host-list=string
27 Host to execute actions on. This option may appear an unlimited
28 number of times.
29
30 Use this option to specify the host on which this script operates.
31 May appear multiple times. Multiple hosts may be specified,
32 delimited by commas.
33
34 -p, --peers
35 Recursively list all peers a host synchronizes to.
36
37 -m number, --maxlevel=number
38 Traverse peers up to this level (4 is a reasonable number). This
39 option takes an integer number as its argument.
40
41 -s string, --strip=string
42 Strip this string from hostnames.
43
44 -h string, --host=string
45 Specify a single host. Deprecated option for backwards
46 compatibility.
47
48 -V, --version
49 Print the version string and exit.
50
51 If hostfiles are specified, they are treated as lists of hostnames to
52 be swept, one per line.
53
55 One of the following exit values will be returned:
56
57 0 (EXIT_SUCCESS)
58 Successful program execution.
59
60 1 (EXIT_FAILURE)
61 The operation failed or the command syntax was not valid.
62
63
64
65NTPsec 2022-01-20 NTPSWEEP(1)