EnglishFrenchSpanish

OnWorks favicon

ntpq - Online in the Cloud

Run ntpq in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ntpq that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

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.

Use ntpq online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    PAC Manager
    PAC Manager
    PAC is a Perl/GTK replacement for
    SecureCRT/Putty/etc (linux
    ssh/telnet/... gui)... It provides a GUI
    to configure connections: users,
    passwords, EXPECT regula...
    Download PAC Manager
  • 2
    GeoServer
    GeoServer
    GeoServer is an open-source software
    server written in Java that allows users
    to share and edit geospatial data.
    Designed for interoperability, it
    publishes da...
    Download GeoServer
  • 3
    Firefly III
    Firefly III
    A free and open-source personal finance
    manager. Firefly III features a
    double-entry bookkeeping system. You can
    quickly enter and organize your
    transactions i...
    Download Firefly III
  • 4
    Apache OpenOffice Extensions
    Apache OpenOffice Extensions
    The official catalog of Apache
    OpenOffice extensions. You'll find
    extensions ranging from dictionaries to
    tools to import PDF files and to connect
    with ext...
    Download Apache OpenOffice Extensions
  • 5
    MantisBT
    MantisBT
    Mantis is an easily deployable, web
    based bugtracker to aid product bug
    tracking. It requires PHP, MySQL and a
    web server. Checkout our demo and hosted
    offerin...
    Download MantisBT
  • 6
    LAN Messenger
    LAN Messenger
    LAN Messenger is a p2p chat application
    for intranet communication and does not
    require a server. A variety of handy
    features are supported including
    notificat...
    Download LAN Messenger
  • More »

Linux commands

  • 1
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 2
    abilint
    abilint
    abilint - validate an abigail ABI
    representation abilint parses the native
    XML representation of an ABI as emitted
    by abidw. Once it has parsed the XML
    represe...
    Run abilint
  • 3
    coresendmsg
    coresendmsg
    coresendmsg - send a CORE API message
    to the core-daemon daemon ...
    Run coresendmsg
  • 4
    core_server
    core_server
    core_server - The primary server for
    SpamBayes. DESCRIPTION: Currently serves
    the web interface only. Plugging in
    listeners for various protocols is TBD.
    This ...
    Run core_server
  • 5
    fwflash
    fwflash
    fwflash - program to flash image file
    to a connected NXT device ...
    Run fwflash
  • 6
    fwts-collect
    fwts-collect
    fwts-collect - collect logs for fwts
    bug reporting. ...
    Run fwts-collect
  • More »

Ad