Ntpq command
From NetworkStuff
A CLI command available on some Linux platforms; used to query and display the status of NTP servers or peers, typically those used by the the host the command is run on.
Contents |
Usage Syntax
ntpq [options]
Common options include;
- ' -
- ' -
- ' -
- ' -
- ' -
Usage Examples
Usage Notes
Linux Usage Notes
With most Linux or Unix commands;
- Non root users may need to prefix commands with the sudo command, for example: sudo chmod 644 *
- Brief help can be displayed using the -h or --help parameter, for example: chmod --help
- A full command manual can be displayed using the man command followed by the command name, for example: man chmod
- Sometimes 'info' pages are used instead of or to provide more information than man pages; for example: info chmod
- Version information can normally be display using the -v, -V or --version parameter, for example: chmod --version. However, this paramater is also frequently used to display verbose output.
Typical Output
Installation
ntpq is part of the ntp package and can be installed or upgraded as follows, depending on your platform;
Related Files
The ntpq executable is normally found here: /usr/sbin/ntpq
Related Commands
The ntptrace command is used to trace a 'chain' of NTP servers back to the primary time source.
The ntpstat command is used to display network time (NTP) synchronisation status.
Use the ntpdc command to query, monitor and change the state of the NTP daemon.
Related Articles
How to Restart The NTP Daemon
Information on other Linux commands
Information on F5 BigIP commands
Information on Cisco commands
Information on Vyatta commands
Information on Force10 commands
Information on Arista commands
Information on Extreme commands
Information on Nortel commands
Information on Zebra commands
Information on Windows commands
Information on Secure Platform commands
Information on Blue Coat SGOS commands
Information on Nokia IPSO commands





