Forrest logo
back to the chronyc tool

chronyc:tldr:ffe03

chronyc: Display verbose information about each NTP source.
$ chronyc ntpdata
try on your machine

The command "chronyc ntpdata" is used to display information about the current status and statistics of the NTP (Network Time Protocol) server that chrony is communicating with.

When you execute the command, chronyc, which is a command-line interface to control and interact with the chrony daemon (a computer program that synchronizes the system clock with remote NTP servers), will display various data related to NTP synchronization, including the following:

  1. Remote NTP server details: It will show information about the remote NTP server, such as its IP address or hostname, the state of the server (reachable or unreachable), the stratum level of the server (indicating its distance from the reference clock), and various other details.

  2. Reference time: It will display the reference time used by the remote NTP server, which represents the most accurate time available to the server.

  3. Time offset: It will indicate the difference in time between the local system clock and the remote NTP server. A positive offset means the local clock is running ahead of the server, while a negative offset means it is running behind.

  4. Estimated error: It will show an estimate of the error in the local clock's time compared to the server. A lower value indicates a more accurate synchronization.

  5. Round-trip delay: It will display the round-trip time (delay) taken for the NTP queries and responses between the local machine and the remote server.

  6. NTP server response: It will indicate whether the remote server responded to the NTP queries or not.

By analyzing the information provided by "chronyc ntpdata", you can determine the status and accuracy of the synchronization with the NTP server and troubleshoot any issues if necessary.

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 chronyc tool