ntpdc(1)


NAME

   ntpdc - special NTP query program

SYNOPSIS

   ntpdc [-ilnps] [-c command] [host] [...]

DESCRIPTION

   ntpdc  is  used to query the ntpd daemon about its current state and to
   request changes in that  state.  The  program  may  be  run  either  in
   interactive  mode or controlled using command line arguments. Extensive
   state  and  statistics  information  is  available  through  the  ntpdc
   interface.  In addition, nearly all the configuration options which can
   be specified at startup using ntpd's configuration  file  may  also  be
   specified at run time using ntpdc.

   If  one  or  more request options are included on the command line when
   ntpdc 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,  ntpdc  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. ntpdc
   will prompt for commands if the standard input is a terminal device.

   ntpdc uses NTP mode 7 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. ntpdc makes no attempt to retransmit requests, and
   will  time  requests  out if the remote host is not heard from within a
   suitable timeout time.

   The operation of ntpdc are specific to the particular implementation of
   the  ntpd  daemon  and can be expected to work only with this and maybe
   some previous versions of the daemon.  Requests  from  a  remote  ntpdc
   program   which   affect   the  state  of  the  local  server  must  be
   authenticated, which requires both the remote program and local  server
   share a common key and key identifier.

   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

   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,  ntpdc 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 command
          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 ntpdc to operate in  interactive  mode.  Prompts  will  be
          written  to  the  standard  output  and  commands  read from the
          standard input.

   -l     Obtain a list of peers which are known to  the  server(s).  This
          switch is equivalent to -c listpeers.

   -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 -c peers.

   -s     Print  a  list  of  the  peers  known to the server as well as a
          summary of their state, but in a slightly different format  than
          the -p switch. This is equivalent to -c dmpeers.

SEE ALSO

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


More Linux Commands

manpages/XSetIconSizes.3.html
XSetIconSizes(3) - allocate icon size structure and set or r
The XAllocIconSize function allocates and returns a pointer to a XIconSize structure. Note that all fields in the XIconSize structure are initially set to zero.

manpages/autoopts-config.1.html
autoopts-config(1) script to get information about installed
autoopts-config is a tool that is used by configure to determine the compile and linker flags that should be used to compile and link programs that use autoopts

manpages/XGrabDevice.3.html
XGrabDevice(3) - grab/release the specified extension device
XGrabDevice.3 - The XGrabDevice request actively grabs control of the device and generates DeviceFocusIn and DeviceFocusOut events. Further device events are re

manpages/XML::XPath::Number.3pm.html
XML::XPath::Number(3pm) - Simple numeric values. (Man Page)
XML::XPath::Number.3pm - This class holds simple numeric values. It doesnt support -0, +/- Infinity, or NaN, as the XPath spec says it should, but Im not hurtin

manpages/mvhline_set.3ncurses.html
mvhline_set(3ncurses) - create curses borders or lines using
The border_set and wborder_set functions draw a border around the edges of the current or specified window. These functions do not change the cursor position, a

manpages/zforce.1.html
zforce(1) - force a '.gz' extension on all gzip files.......
zforce forces a .gz extension on all gzip files so that gzip will not compress them twice. This can be useful for files with names truncated after a file transf

manpages/SDL_MixAudio.3.html
SDL_MixAudio(3) - Mix audio data (Library - Linux man page)
This function takes two audio buffers of len bytes each of the playing audio format and mixes them, performing addition, volume adjustment, and overflow clippin

manpages/Tcl_SetBooleanObj.3.html
Tcl_SetBooleanObj(3) - store/retrieve boolean value in a Tcl
These procedures are used to pass boolean values to and from Tcl as Tcl_Objs. When storing a boolean value into a Tcl_Obj, any non-zero integer value in boolVal

manpages/XtVaOpenApplication.3.html
XtVaOpenApplication(3) - initialize, open, or close a displa
The XtOpenApplication function calls XtToolkitInitialize followed by XtCreateApplicationContext, then calls XtOpenDisplay with display_string NULL and applicati

manpages/git-mailinfo.1.html
git-mailinfo(1) - Extracts patch and authorship from a singl
Reads a single e-mail message from the standard input, and writes the commit log message in <msg> file, and the patches in <patch> file. The author name, e-mail

manpages/mousedrv.4.html
mousedrv(4) - Xorg mouse input driver - Linux manual page...
mouse is an Xorg input driver for mice. The driver supports most available mouse types and interfaces, though the level of support for types of mice depends on

manpages/bstring.3.html
bstring(3) - byte string operations - Linux manual page.....
The byte string functions perform operations on strings (byte arrays) that are not necessarily null-terminated. See the individual man pages for descriptions of





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