Log in Go to the main page Page Discussion History Go to the file list Go to the site toolbox NO2ID Donor

Ntpq command

From NetworkCommands

Utilities-terminal-v2-256.png

Linux-logo-large.png

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

Preferences-desktop-font-v2-22.png Usage Syntax

noinclude/noinclude

ntpq [options]

Common options include;

  • ' -
  • ' -
  • ' -
  • ' -
  • ' -

Vm-power-on-medium.png Usage Examples

Accessories-text-editor-v2-medium.png Usage Notes

Accessories-text-editor-v2-medium.png 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.

noinclude/noinclude

Utilities-terminal-medium-v2.png Typical Output

noinclude/noinclude

Insert-object-medium.png Installation

noinclude/noinclude

ntpq is part of the ntp package and can be installed or upgraded as follows, depending on your platform;

  • Ubuntu: apt-get install ntp
  • Fedora Core: yum install ntp
  • FreeBSD: pkg_add -v -r ntp

Folder-medium.png Related Files

The ntpq executable is normally found here: /usr/sbin/ntpq

Icemon-medium.png 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.

Icemon-medium.png Related Articles

How to Restart The NTP Daemon

Information on other Linux commands Linux-logo-small.png

Information on F5 BigIP commands F5-logo-small.png

Information on Cisco commands Cisco-logo-small.png

Information on Vyatta commands Vyatta-logo-small.png

Information on Force10 commands Force10-logo-small.png

Information on Arista commands Arista-logo-small.png

Information on Extreme commands Extreme-logo-small.png

Information on Nortel commands Nortel-logo-small.png

Information on Zebra commands

Information on Windows commands Preferences-system-windows-small.png

Information on Secure Platform commands

Information on Blue Coat SGOS commands

Information on Nokia IPSO commands


Internet-group-chat-small.png We really do appreciate all feedback so please do send your comments, suggestions or corrections to steve#networkstuff.eu (replacing the # with an @)


Site Toolbox:

Personal tools
This page was last modified on 20 May 2010, at 11:03. - This page has been accessed 46 times. - Disclaimers - About Network Stuff
Powered by MediaWiki