table of contents
NTPSWEEP(1) | NTPsec | NTPSWEEP(1) |
NAME¶
ntpsweep - print various information about given NTP servers
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 recursing through all peers.
If no hosts are specified, ntpsweep reports on localhost.
ntpsweep relies on ntpq and Mode 6 queries to probe servers. This 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.
OPTIONS¶
-l string, --host-list=string
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
-m number, --maxlevel=number
-s string, --strip=string
-h string, --host=string
-V, --version
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)
1 (EXIT_FAILURE)
04/17/2024 | NTPsec 1.2.3 |