LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ntpq

queries the NTP daemon for status and configuration information

TLDR

Start ntpq in interactive mode
$ ntpq
copy
Print a list of NTP peers
$ ntpq -p
copy
Print a list of NTP peers without resolving hostnames
$ ntpq -n -p
copy
Use ntpq in debugging mode
$ ntpq -d
copy
Print NTP system variables values
$ ntpq -c rv
copy

SYNOPSIS

ntpq [options] [host...]

DESCRIPTION

ntpq queries the NTP daemon for status and configuration information. It can display peer associations, system variables, and synchronization statistics in both interactive and command-line modes.The peer list (-p) shows all configured time sources with columns indicating:- remote: Server address (* = current sync source)- refid: Reference clock or upstream server- st: Stratum level- reach: Reachability register (377 = all recent queries successful)- delay/offset/jitter: Timing metrics in millisecondsInteractive mode provides additional commands for detailed inspection of the NTP daemon's state.

PARAMETERS

-n, --numeric

Display addresses numerically without DNS resolution
-c _command_, --command _command_
Execute a command without entering interactive mode
-d, --debug-level
Enable debugging output
-i, --interactive
Force interactive mode.
-4, -6
Resolve hostnames using IPv4 or IPv6 only.
-w, --wide
Use a wider peer table so long hostnames are not truncated.
-k FILE, --keyfile FILE
Read symmetric keys from FILE for authenticated control requests.
-a KEYID, --authentication KEYID
Use the given key id when sending authenticated queries.
-p, --peers
Print a summary of all configured peers (same as interactive `peers`).
-V, --version
Print version information and exit.

INSTALL

sudo apt install ntpsec
copy
sudo dnf install ntpsec
copy
sudo apk add ntpsec
copy
sudo zypper install ntpsec
copy

CAVEATS

Queries the local ntpd by default; specify a hostname to query remote daemons. Requires ntpd to be running. Some information may require authentication to access. The output format is cryptic; refer to NTP documentation for interpretation.

SEE ALSO

ntpd(8), ntpdate(8), chronyc(1), timedatectl(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid