LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

ntpctl

queries the OpenNTPD daemon for synchronization status

TLDR

Show synchronization status
$ ntpctl -s status
copy
Show all peers
$ ntpctl -s peers
copy
Show all sensors
$ ntpctl -s sensors
copy
Show all information
$ ntpctl -s all
copy

SYNOPSIS

ntpctl [-s command]

DESCRIPTION

ntpctl queries the OpenNTPD daemon for synchronization status. It displays information about time sources and synchronization state.The status view shows whether the clock is synchronized, the stratum level, and the offset from the reference time. A synchronized clock means the system time is being corrected.Peer display lists configured NTP servers with their status, stratum, and offset. This helps identify which servers are reachable and providing good time.Sensors show hardware time sources like GPS receivers or radio clocks that may be configured. These provide local reference time independent of network.The tool communicates with ntpd through a control socket. The daemon must be running with control socket enabled for ntpctl to work.OpenNTPD emphasizes security and simplicity over feature completeness. ntpctl reflects this by providing essential status information without complex queries.

PARAMETERS

-s status

Show synchronization status.
-s peers
Show peer status.
-s sensors
Show sensor status.
-s all
Show all information.

INSTALL

sudo apt install openntpd
copy
sudo pacman -S openntpd
copy
sudo apk add openntpd
copy
nix profile install nixpkgs#openntpd
copy

CAVEATS

OpenNTPD specific - not compatible with ISC ntpd. Control socket must be enabled in ntpd configuration. Limited compared to ntpq.

HISTORY

ntpctl is part of OpenNTPD, developed by the OpenBSD project starting around 2004. OpenNTPD was created as a simpler, more secure alternative to the reference NTP implementation.

SEE ALSO

ntpd(8), ntpq(1), 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