ntpq(1)


NAME

   ntpq - standard NTP query program

SYNOPSIS

   ntpq [-inp] [-c command] [host] [...]

DESCRIPTION

   The  ntpq utility program is used to monitor NTP daemon ntpd operations
   and determine performance. It uses the  standard  NTP  mode  6  control
   message  formats  defined  in  Appendix  B  of  the NTPv3 specification
   RFC1305. The same formats are used  in  NTPv4,  although  some  of  the
   variables have changed and new ones added. The description on this page
   is for the NTPv4 variables.

   The program can be run either in interactive mode or  controlled  using
   command  line arguments. Requests to read and write arbitrary variables
   can be assembled, with raw  and  pretty-printed  output  options  being
   available.  The  ntpq  can  also  obtain and print a list of peers in a
   common format by sending multiple queries to the server.

   If one or more request options is included on  the  command  line  when
   ntpq  is executed, each of the requests will be sent to the NTP servers
   running on each of the hosts given as command  line  arguments,  or  on
   localhost  by  default.  If  no  request  options  are given, ntpq will
   attempt to read commands from the standard input and execute  these  on
   the  NTP  server  running  on the first host given on the command line,
   again defaulting to localhost when no other  host  is  specified.  ntpq
   will prompt for commands if the standard input is a terminal device.

   ntpq  uses  NTP  mode 6 packets to communicate with the NTP server, and
   hence can be used to query any compatible server on the  network  which
   permits  it.  Note  that since NTP is a UDP protocol this communication
   will be somewhat unreliable, especially over large distances  in  terms
   of network topology. ntpq makes one attempt to retransmit requests, and
   will time requests out if the remote host is not heard  from  within  a
   suitable timeout time.

   Note  that  in  contexts  where a host name is expected, a -4 qualifier
   preceding the host name forces DNS resolution to  the  IPv4  namespace,
   while a -6 qualifier forces DNS resolution to the IPv6 namespace.

OPTIONS

   Command line options are described following. Specifying a command line
   option other than -i or -n will cause the specified query (queries)  to
   be  sent  to  the  indicated  host(s) immediately. Otherwise, ntpq will
   attempt to read interactive format commands from the standard input.

   -4     Force DNS resolution of following host names on the command line
          to the IPv4 namespace.

   -6     Force DNS resolution of following host names on the command line
          to the IPv6 namespace.

   -c     The following argument is interpreted as an  interactive  format
          command  and  is added to the list of commands to be executed on
          the specified host(s). Multiple -c options may be given.

   -i     Force ntpq to operate  in  interactive  mode.  Prompts  will  be
          written  to  the  standard  output  and  commands  read from the
          standard input.

   -n     Output all host addresses in dotted-quad numeric  format  rather
          than converting to the canonical host names.

   -p     Print  a  list  of  the  peers  known to the server as well as a
          summary  of  their  state.  This  is  equivalent  to  the  peers
          interactive command.

SEE ALSO

   /usr/share/doc/ntp-doc/html/ntpq.html for the full documentation.


More Linux Commands

manpages/cyclone.1.html
cyclone(1) - tornado screen saver. - Linux manual page......
From Terry Walsh (http://reallyslick.com): This screen saver makes tornadoes on your screen. I wrote it for my storm chasing partner, but you can have it too. P

manpages/isdninfo.4.html
isdninfo.4 (Manual - Linux man page).......................
/dev/isdninfo is a character device with major number 45 and minor number 255. It delivers status information from the Linux ISDN subsystem to user level. DATA

manpages/sane-kvs20xx.5.html
sane-kvs20xx(5) - SANE backend for Panasonic KV-S20xxC USB/S
The sane-kvs20xx library implements a SANE (Scanner Access Now Easy) backend which provides access to the Panasonic KV-S202xC and KV-S204xC scanners. KNOWN ISSU

manpages/fsck.8.html
fsck(8) - check and repair a Linux filesystem (Man Page)....
fsck is used to check and optionally repair one or more Linux filesystems. filesys can be a device name (e.g. /dev/hdc1, /dev/sdb2), a mount point (e.g. /, /usr

manpages/Tcl_GetCharLength.3.html
Tcl_GetCharLength(3) - manipulate Tcl objects as strings....
The procedures described in this manual entry allow Tcl objects to be manipulated as string values. They use the internal representation of the object to store

manpages/c++filt.1.html
c++filt(1) - Demangle C++ and Java symbols. - Linux man page
The C ++ and Java languages provide function overloading, which means that you can write many functions with the same name, providing that each function takes p

manpages/get_auditfail_action.3.html
get_auditfail_action(3) - Get failure_action tunable value
This function gets the failure_action tunable value stored in /etc/libaudit.conf. get_auditfail_action should be called after an audit_open call returns an erro

manpages/scandirat.3.html
scandirat(3) scan a directory for matching entries..........
The scandir() function scans the directory dirp, calling filter() on each directory entry. Entries for which filter() returns nonzero are stored in strings allo

manpages/XtDisplayStringConversionWarning.3.html
XtDisplayStringConversionWarning(3) - issue a conversion war
The XtDisplayStringConversionWarning function issues a warning message using XtAppWarningMsg with name conversionError, type string, class XtToolkitError, and t

manpages/timer_getoverrun.2.html
timer_getoverrun(2) - get overrun count for a POSIX per-proc
timer_getoverrun() returns the overrun count for the timer referred to by timerid. An application can use the overrun count to accurately calculate the number o

manpages/gpg-zip.1.html
gpg-zip(1) - Encrypt or sign files into an archive (ManPage)
gpg-zip encrypts or signs files into an archive. It is an gpg-ized tar using the same format as used by PGPs PGP Zip. OPTIONS gpg-zip understands these options:

manpages/XCheckMaskEvent.3.html
XCheckMaskEvent(3) - select events by type - Linux man page
XCheckMaskEvent.3 - The XNextEvent function copies the first event from the event queue into the specified XEvent structure and then removes it from the queue.





We can't live, work or learn in freedom unless the software we use is free.