2021-04-25 18:47:40 +02:00
|
|
|
# ntpq
|
|
|
|
|
|
|
|
> Query the Network Time Protocol (NTP) daemon.
|
2025-04-25 04:34:04 +03:00
|
|
|
> More information: <https://manned.org/man/ntpq.1>.
|
2021-04-25 18:47:40 +02:00
|
|
|
|
|
|
|
- Start `ntpq` in interactive mode:
|
|
|
|
|
2025-04-25 04:34:04 +03:00
|
|
|
`ntpq`
|
2021-04-25 18:47:40 +02:00
|
|
|
|
|
|
|
- Print a list of NTP peers:
|
|
|
|
|
2025-04-25 04:34:04 +03:00
|
|
|
`ntpq {{[-p|--peers]}}`
|
2021-04-25 18:47:40 +02:00
|
|
|
|
|
|
|
- Print a list of NTP peers without resolving hostnames from IP addresses:
|
|
|
|
|
2025-04-25 04:34:04 +03:00
|
|
|
`ntpq {{[-n|--numeric]}} {{[-p|--peers]}}`
|
2021-04-25 18:47:40 +02:00
|
|
|
|
|
|
|
- Use `ntpq` in debugging mode:
|
|
|
|
|
2025-04-25 04:34:04 +03:00
|
|
|
`ntpq {{[-d|--debug-level]}}`
|
2021-04-25 18:47:40 +02:00
|
|
|
|
|
|
|
- Print NTP system variables values:
|
|
|
|
|
2025-04-25 04:34:04 +03:00
|
|
|
`ntpq {{[-c|--command]}} {{rv}}`
|