Forrest logo
back to the ntpq tool

ntpq:tldr:894a0

ntpq: Print a list of NTP peers.
$ ntpq --peers
try on your machine

The command "ntpq --peers" is used to display a list of the current NTP (Network Time Protocol) peers that the system is synchronizing time with.

NTP is a networking protocol used to synchronize the clocks of computers and other networked devices. It ensures that all devices on a network have the same time, which is crucial for various applications and services that depend on accurate timekeeping.

When you execute the "ntpq --peers" command, it queries the NTP daemon running on the local machine for information about the current NTP peers. The output of this command typically includes details about each peer, such as its IP address, reachability status, stratum level, and the delay and offset values measured in milliseconds.

The "ntpq" command is a command-line utility used for monitoring and debugging the NTP service. It provides various options to query and control the NTP daemon and gather information about the NTP configuration, server status, and synchronization data. In this case, "--peers" is one of the options used to specifically retrieve information about the current NTP peers.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the ntpq tool