ntpq
ntpq is a command-line tool used for monitoring and troubleshooting Network Time Protocol (NTP) servers. It allows network administrators to interact with an NTP server to check its status, query the current time, and analyze the server's performance.
With ntpq, users can view detailed information about the status of an NTP server, including its reachability, synchronization source, and peer status. It also provides statistics related to the server's performance, such as round-trip delay, jitter, and offset from the reference time source.
The tool further enables users to query multiple NTP servers simultaneously and compare their time outputs for accuracy. By analyzing the offset values, administrators can identify any discrepancies and adjust the NTP configuration accordingly to ensure accurate time synchronization across the network.
ntpq command-line options allow users to perform various operations, such as setting authentication keys for secure communication, adjusting the server's clock offset manually, forcing a resynchronization, and retrieving information from remote NTP servers.
The tool also supports robust filtering options, allowing users to display specific information, sort the results, and customize the output format for better readability.
Overall, ntpq is a powerful command-line utility that helps administrators monitor and manage NTP servers to ensure precise timekeeping and synchronization in network environments.
List of commands for ntpq:
-
ntpq:tldr:0f094 ntpq: Print a list of NTP peers without resolving hostnames from IP addresses.$ ntpq --numeric --peerstry on your machineexplain this command
-
ntpq:tldr:15363 ntpq: Start `ntpq` in interactive mode.$ ntpq --interactivetry on your machineexplain this command
-
ntpq:tldr:627bb ntpq: Use `ntpq` in debugging mode.$ ntpq --debug-leveltry on your machineexplain this command
-
ntpq:tldr:832b0 ntpq: Print NTP system variables values.$ ntpq --command=${rv}try on your machineexplain this command
-
ntpq:tldr:894a0 ntpq: Print a list of NTP peers.$ ntpq --peerstry on your machineexplain this command