2025-03-14 21:59:59 -06:00
|
|
|
# ntpq
|
|
|
|
|
|
|
|
|
|
> Query the Network Time Protocol (NTP) daemon.
|
2025-07-24 22:27:13 -06:00
|
|
|
> More information: <https://manned.org/ntpq.1>.
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Start `ntpq` in interactive mode:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`ntpq`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print a list of NTP peers:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`ntpq {{[-p|--peers]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print a list of NTP peers without resolving hostnames from IP addresses:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`ntpq {{[-n|--numeric]}} {{[-p|--peers]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Use `ntpq` in debugging mode:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`ntpq {{[-d|--debug-level]}}`
|
2025-03-14 21:59:59 -06:00
|
|
|
|
|
|
|
|
- Print NTP system variables values:
|
|
|
|
|
|
2025-05-08 12:26:01 -06:00
|
|
|
`ntpq {{[-c|--command]}} {{rv}}`
|