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.





Opportunity


Personal Opportunity - Free software gives you access to billions of dollars of software at no cost. Use this software for your business, personal use or to develop a profitable skill. Access to source code provides access to a level of capabilities/information that companies protect though copyrights. Open source is a core component of the Internet and it is available to you. Leverage the billions of dollars in resources and capabilities to build a career, establish a business or change the world. The potential is endless for those who understand the opportunity.

Business Opportunity - Goldman Sachs, IBM and countless large corporations are leveraging open source to reduce costs, develop products and increase their bottom lines. Learn what these companies know about open source and how open source can give you the advantage.





Free Software


Free Software provides computer programs and capabilities at no cost but more importantly, it provides the freedom to run, edit, contribute to, and share the software. The importance of free software is a matter of access, not price. Software at no cost is a benefit but ownership rights to the software and source code is far more significant.


Free Office Software - The Libre Office suite provides top desktop productivity tools for free. This includes, a word processor, spreadsheet, presentation engine, drawing and flowcharting, database and math applications. Libre Office is available for Linux or Windows.





Free Books


The Free Books Library is a collection of thousands of the most popular public domain books in an online readable format. The collection includes great classical literature and more recent works where the U.S. copyright has expired. These books are yours to read and use without restrictions.


Source Code - Want to change a program or know how it works? Open Source provides the source code for its programs so that anyone can use, modify or learn how to write those programs themselves. Visit the GNU source code repositories to download the source.





Education


Study at Harvard, Stanford or MIT - Open edX provides free online courses from Harvard, MIT, Columbia, UC Berkeley and other top Universities. Hundreds of courses for almost all major subjects and course levels. Open edx also offers some paid courses and selected certifications.


Linux Manual Pages - A man or manual page is a form of software documentation found on Linux/Unix operating systems. Topics covered include computer programs (including library and system calls), formal standards and conventions, and even abstract concepts.