Home | History | Annotate | Line # | Download | only in ntpdc
ntpdc.1ntpdcman revision 1.1.1.1
      1 .de1 NOP
      2 .  it 1 an-trap
      3 .  if \\n[.$] \,\\$*\/
      4 ..
      5 .ie t \
      6 .ds B-Font [CB]
      7 .ds I-Font [CI]
      8 .ds R-Font [CR]
      9 .el \
     10 .ds B-Font B
     11 .ds I-Font I
     12 .ds R-Font R
     13 .TH ntpdc 1ntpdcman "24 Dec 2013" "4.2.7p404" "User Commands"
     14 .\"
     15 .\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-W0aqdS/ag-80aqcS)
     16 .\"
     17 .\" It has been AutoGen-ed December 24, 2013 at 11:38:40 AM by AutoGen 5.18.3pre5
     18 .\" From the definitions ntpdc-opts.def
     19 .\" and the template file agman-cmd.tpl
     20 .SH NAME
     21 \f\*[B-Font]ntpdc\fP
     22 \- vendor-specific NTPD control program
     23 .SH SYNOPSIS
     24 \f\*[B-Font]ntpdc\fP
     25 .\" Mixture of short (flag) options and long options
     26 [\f\*[B-Font]\-flags\f[]]
     27 [\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
     28 [\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
     29 [ host ...]
     30 .sp \n(Ppu
     31 .ne 2
     32 
     33 .SH DESCRIPTION
     34 \f\*[B-Font]ntpdc\fP
     35 is a utility program used to query
     36 \fCntpd\fR(1ntpdmdoc)\f[]
     37 about its
     38 current state and to request changes in that state.
     39 It uses NTP mode 7 control message formats described in the source code.
     40 The program may
     41 be run either in interactive mode or controlled using command line
     42 arguments.
     43 Extensive state and statistics information is available
     44 through the
     45 \f\*[B-Font]ntpdc\fP
     46 interface.
     47 In addition, nearly all the
     48 configuration options which can be specified at startup using
     49 ntpd's configuration file may also be specified at run time using
     50 \f\*[B-Font]ntpdc\fP.
     51 .SH "OPTIONS"
     52 .TP
     53 .NOP \f\*[B-Font]\-4\f[], \f\*[B-Font]\-\-ipv4\f[]
     54 Force IPv4 DNS name resolution.
     55 This option must not appear in combination with any of the following options:
     56 ipv6.
     57 .sp
     58 Force DNS resolution of following host names on the command line
     59 to the IPv4 namespace.
     60 .TP
     61 .NOP \f\*[B-Font]\-6\f[], \f\*[B-Font]\-\-ipv6\f[]
     62 Force IPv6 DNS name resolution.
     63 This option must not appear in combination with any of the following options:
     64 ipv4.
     65 .sp
     66 Force DNS resolution of following host names on the command line
     67 to the IPv6 namespace.
     68 .TP
     69 .NOP \f\*[B-Font]\-c\f[] \f\*[I-Font]cmd\f[], \f\*[B-Font]\-\-command\f[]=\f\*[I-Font]cmd\f[]
     70 run a command and exit.
     71 This option may appear an unlimited number of times.
     72 .sp
     73 The following argument is interpreted as an interactive format command
     74 and is added to the list of commands to be executed on the specified
     75 host(s).
     76 .TP
     77 .NOP \f\*[B-Font]\-d\f[], \f\*[B-Font]\-\-debug\-level\f[]
     78 Increase debug verbosity level.
     79 This option may appear an unlimited number of times.
     80 .sp
     81 .TP
     82 .NOP \f\*[B-Font]\-D\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-set\-debug\-level\f[]=\f\*[I-Font]number\f[]
     83 Set the debug verbosity level.
     84 This option may appear an unlimited number of times.
     85 This option takes an integer number as its argument.
     86 .sp
     87 .TP
     88 .NOP \f\*[B-Font]\-i\f[], \f\*[B-Font]\-\-interactive\f[]
     89 Force ntpq to operate in interactive mode.
     90 This option must not appear in combination with any of the following options:
     91 command, listpeers, peers, showpeers.
     92 .sp
     93 Force ntpq to operate in interactive mode.  Prompts will be written
     94 to the standard output and commands read from the standard input.
     95 .TP
     96 .NOP \f\*[B-Font]\-l\f[], \f\*[B-Font]\-\-listpeers\f[]
     97 Print a list of the peers.
     98 This option must not appear in combination with any of the following options:
     99 command.
    100 .sp
    101 Print a list of the peers known to the server as well as a summary of
    102 their state. This is equivalent to the 'listpeers' interactive command.
    103 .TP
    104 .NOP \f\*[B-Font]\-n\f[], \f\*[B-Font]\-\-numeric\f[]
    105 numeric host addresses.
    106 .sp
    107 Output all host addresses in dotted-quad numeric format rather than
    108 converting to the canonical host names. 
    109 .TP
    110 .NOP \f\*[B-Font]\-p\f[], \f\*[B-Font]\-\-peers\f[]
    111 Print a list of the peers.
    112 This option must not appear in combination with any of the following options:
    113 command.
    114 .sp
    115 Print a list of the peers known to the server as well as a summary
    116 of their state. This is equivalent to the 'peers' interactive command.
    117 .TP
    118 .NOP \f\*[B-Font]\-s\f[], \f\*[B-Font]\-\-showpeers\f[]
    119 Show a list of the peers.
    120 This option must not appear in combination with any of the following options:
    121 command.
    122 .sp
    123 Print a list of the peers known to the server as well as a summary
    124 of their state. This is equivalent to the 'dmpeers' interactive command.
    125 .TP
    126 .NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
    127 Display usage information and exit.
    128 .TP
    129 .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
    130 Pass the extended usage information through a pager.
    131 .TP
    132 .NOP \f\*[B-Font]\->\f[] [\f\*[I-Font]cfgfile\f[]], \f\*[B-Font]\-\-save-opts\f[] [=\f\*[I-Font]cfgfile\f[]]
    133 Save the option state to \fIcfgfile\fP.  The default is the \fIlast\fP
    134 configuration file listed in the \fBOPTION PRESETS\fP section, below.
    135 The command will exit after updating the config file.
    136 .TP
    137 .NOP \f\*[B-Font]\-<\f[] \f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-load-opts\f[]=\f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-no-load-opts\f[]
    138 Load options from \fIcfgfile\fP.
    139 The \fIno-load-opts\fP form will disable the loading
    140 of earlier config/rc/ini files.  \fI\-\-no-load-opts\fP is handled early,
    141 out of order.
    142 .TP
    143 .NOP \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]
    144 Output version of program and exit.  The default mode is `v', a simple
    145 version.  The `c' mode will print copyright information and `n' will
    146 print the full copyright notice.
    147 .PP
    148 .SH "OPTION PRESETS"
    149 Any option that is not marked as \fInot presettable\fP may be preset
    150 by loading values from configuration ("RC" or ".INI") file(s) and values from
    151 environment variables named:
    152 .nf
    153   \fBNTPDC_<option-name>\fP or \fBNTPDC\fP
    154 .fi
    155 .ad
    156 The environmental presets take precedence (are processed later than)
    157 the configuration files.
    158 The \fIhomerc\fP files are "\fI$HOME\fP", and "\fI.\fP".
    159 If any of these are directories, then the file \fI.ntprc\fP
    160 is searched for within those directories.
    161 cvt_prog='/usr/local/gnu/share/autogen/texi2man'
    162 cvt_prog=`cd \`dirname "$cvt_prog"\` >/dev/null && pwd
    163          `/`basename "$cvt_prog"`
    164 cd $tmp_dir
    165 test \-x "$cvt_prog" || die "'$cvt_prog' is not executable"
    166 {
    167     list='synopsis description options option-presets'
    168     for f in $list ; do cat $f ; echo ; done
    169     rm \-f $list name
    170     list='implementation-notes environment files examples exit-status errors
    171         compatibility see-also conforming-to history authors copyright bugs
    172         notes'
    173     for f in $list ; do cat $f ; echo ; done > .end-doc
    174     rm \-f $list
    175     list=`ls \-1 *`' .end-doc'
    176     for f in $list ; do cat $f ; echo ; done
    177     rm \-f $list
    178 } 1>.doc 2>/dev/null
    179 sed \-f .cmds .doc | /usr/local/gnu/bin/grep \-E \-v '^[ 	]*$' | $cvt_prog
    180 .TH ntpdc 1ntpdcman "24 Dec 2013" "4.2.7p404" "User Commands"
    181 .\"
    182 .\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-W0aqdS/ag-80aqcS)
    183 .\"
    184 .\" It has been AutoGen-ed December 24, 2013 at 11:38:40 AM by AutoGen 5.18.3pre5
    185 .\" From the definitions ntpdc-opts.def
    186 .\" and the template file agman-cmd.tpl
    187 .SH NAME
    188 \f\*[B-Font]ntpdc\fP ntpdc
    189 \- vendor-specific NTPD control program
    190 .SH USAGE
    191 If one or more request options are included on the command line
    192 when
    193 \f\*[B-Font]ntpdc\fP
    194 is executed, each of the requests will be sent
    195 to the NTP servers running on each of the hosts given as command
    196 line arguments, or on localhost by default.
    197 If no request options
    198 are given,
    199 \f\*[B-Font]ntpdc\fP
    200 will attempt to read commands from the
    201 standard input and execute these on the NTP server running on the
    202 first host given on the command line, again defaulting to localhost
    203 when no other host is specified.
    204 The
    205 \f\*[B-Font]ntpdc\fP
    206 utility will prompt for
    207 commands if the standard input is a terminal device.
    208 .sp \n(Ppu
    209 .ne 2
    210 
    211 The
    212 \f\*[B-Font]ntpdc\fP
    213 utility uses NTP mode 7 packets to communicate with the
    214 NTP server, and hence can be used to query any compatible server on
    215 the network which permits it.
    216 Note that since NTP is a UDP protocol
    217 this communication will be somewhat unreliable, especially over
    218 large distances in terms of network topology.
    219 The
    220 \f\*[B-Font]ntpdc\fP
    221 utility makes
    222 no attempt to retransmit requests, and will time requests out if
    223 the remote host is not heard from within a suitable timeout
    224 time.
    225 .sp \n(Ppu
    226 .ne 2
    227 
    228 The operation of
    229 \f\*[B-Font]ntpdc\fP
    230 are specific to the particular
    231 implementation of the
    232 \fCntpd\fR(1ntpdmdoc)\f[]
    233 daemon and can be expected to
    234 work only with this and maybe some previous versions of the daemon.
    235 Requests from a remote
    236 \f\*[B-Font]ntpdc\fP
    237 utility which affect the
    238 state of the local server must be authenticated, which requires
    239 both the remote program and local server share a common key and key
    240 identifier.
    241 .sp \n(Ppu
    242 .ne 2
    243 
    244 Note that in contexts where a host name is expected, a
    245 \f\*[B-Font]\-4\f[]
    246 qualifier preceding the host name forces DNS resolution to the IPv4 namespace,
    247 while a
    248 \f\*[B-Font]\-6\f[]
    249 qualifier forces DNS resolution to the IPv6 namespace.
    250 Specifying a command line option other than
    251 \f\*[B-Font]\-i\f[]
    252 or
    253 \f\*[B-Font]\-n\f[]
    254 will cause the specified query (queries) to be sent to
    255 the indicated host(s) immediately.
    256 Otherwise,
    257 \f\*[B-Font]ntpdc\fP
    258 will
    259 attempt to read interactive format commands from the standard
    260 input.
    261 .SS "Interactive Commands"
    262 Interactive format commands consist of a keyword followed by zero
    263 to four arguments.
    264 Only enough characters of the full keyword to
    265 uniquely identify the command need be typed.
    266 The output of a
    267 command is normally sent to the standard output, but optionally the
    268 output of individual commands may be sent to a file by appending a
    269 \[oq]\&>\[cq],
    270 followed by a file name, to the command line.
    271 .sp \n(Ppu
    272 .ne 2
    273 
    274 A number of interactive format commands are executed entirely
    275 within the
    276 \f\*[B-Font]ntpdc\fP
    277 utility itself and do not result in NTP
    278 mode 7 requests being sent to a server.
    279 These are described
    280 following.
    281 .TP 7
    282 .NOP \f\*[B-Font]\&?\f[] \f\*[I-Font]command_keyword\f[]
    283 .TP 7
    284 .NOP \f\*[B-Font]help\f[] \f\*[I-Font]command_keyword\f[]
    285 A
    286 \[oq]\f\*[B-Font]\&?\f[]\[cq]
    287 will print a list of all the command
    288 keywords known to this incarnation of
    289 \f\*[B-Font]ntpdc\fP.
    290 A
    291 \[oq]\f\*[B-Font]\&?\f[]\[cq]
    292 followed by a command keyword will print function and usage
    293 information about the command.
    294 This command is probably a better
    295 source of information about
    296 \fCntpq\fR(1ntpqmdoc)\f[]
    297 than this manual
    298 page.
    299 .TP 7
    300 .NOP \f\*[B-Font]delay\f[] \f\*[I-Font]milliseconds\f[]
    301 Specify a time interval to be added to timestamps included in
    302 requests which require authentication.
    303 This is used to enable
    304 (unreliable) server reconfiguration over long delay network paths
    305 or between machines whose clocks are unsynchronized.
    306 Actually the
    307 server does not now require timestamps in authenticated requests,
    308 so this command may be obsolete.
    309 .TP 7
    310 .NOP \f\*[B-Font]host\f[] \f\*[I-Font]hostname\f[]
    311 Set the host to which future queries will be sent.
    312 Hostname may
    313 be either a host name or a numeric address.
    314 .TP 7
    315 .NOP \f\*[B-Font]hostnames\f[] [\f\*[B-Font]yes\f[] | \f\*[B-Font]no\f[]]
    316 If
    317 \f\*[B-Font]yes\f[]
    318 is specified, host names are printed in
    319 information displays.
    320 If
    321 \f\*[B-Font]no\f[]
    322 is specified, numeric
    323 addresses are printed instead.
    324 The default is
    325 \f\*[B-Font]yes\f[],
    326 unless
    327 modified using the command line
    328 \f\*[B-Font]\-n\f[]
    329 switch.
    330 .TP 7
    331 .NOP \f\*[B-Font]keyid\f[] \f\*[I-Font]keyid\f[]
    332 This command allows the specification of a key number to be
    333 used to authenticate configuration requests.
    334 This must correspond
    335 to a key number the server has been configured to use for this
    336 purpose.
    337 .TP 7
    338 .NOP \f\*[B-Font]quit\f[]
    339 Exit
    340 \f\*[B-Font]ntpdc\fP.
    341 .TP 7
    342 .NOP \f\*[B-Font]passwd\f[]
    343 This command prompts you to type in a password (which will not
    344 be echoed) which will be used to authenticate configuration
    345 requests.
    346 The password must correspond to the key configured for
    347 use by the NTP server for this purpose if such requests are to be
    348 successful.
    349 .TP 7
    350 .NOP \f\*[B-Font]timeout\f[] \f\*[I-Font]milliseconds\f[]
    351 Specify a timeout period for responses to server queries.
    352 The
    353 default is about 8000 milliseconds.
    354 Note that since
    355 \f\*[B-Font]ntpdc\fP
    356 retries each query once after a timeout, the total waiting time for
    357 a timeout will be twice the timeout value set.
    358 .PP
    359 .SS "Control Message Commands"
    360 Query commands result in NTP mode 7 packets containing requests for
    361 information being sent to the server.
    362 These are read-only commands
    363 in that they make no modification of the server configuration
    364 state.
    365 .TP 7
    366 .NOP \f\*[B-Font]listpeers\f[]
    367 Obtains and prints a brief list of the peers for which the
    368 server is maintaining state.
    369 These should include all configured
    370 peer associations as well as those peers whose stratum is such that
    371 they are considered by the server to be possible future
    372 synchronization candidates.
    373 .TP 7
    374 .NOP \f\*[B-Font]peers\f[]
    375 Obtains a list of peers for which the server is maintaining
    376 state, along with a summary of that state.
    377 Summary information
    378 includes the address of the remote peer, the local interface
    379 address (0.0.0.0 if a local address has yet to be determined), the
    380 stratum of the remote peer (a stratum of 16 indicates the remote
    381 peer is unsynchronized), the polling interval, in seconds, the
    382 reachability register, in octal, and the current estimated delay,
    383 offset and dispersion of the peer, all in seconds.
    384 .sp \n(Ppu
    385 .ne 2
    386 
    387 The character in the left margin indicates the mode this peer
    388 entry is operating in.
    389 A
    390 \[oq]\&+\[cq]
    391 denotes symmetric active, a
    392 \[oq]\&-\[cq]
    393 indicates symmetric passive, a
    394 \[oq]\&=\[cq]
    395 means the
    396 remote server is being polled in client mode, a
    397 \[oq]\&^\[cq]
    398 indicates that the server is broadcasting to this address, a
    399 \[oq]\&~\[cq]
    400 denotes that the remote peer is sending broadcasts and a
    401 \[oq]\&~\[cq]
    402 denotes that the remote peer is sending broadcasts and a
    403 \[oq]\&*\[cq]
    404 marks the peer the server is currently synchronizing
    405 to.
    406 .sp \n(Ppu
    407 .ne 2
    408 
    409 The contents of the host field may be one of four forms.
    410 It may
    411 be a host name, an IP address, a reference clock implementation
    412 name with its parameter or
    413 \fBREFCLK\fR()\f[]
    414 On
    415 \f\*[B-Font]hostnames\f[]
    416 \f\*[B-Font]no\f[]
    417 only IP-addresses
    418 will be displayed.
    419 .TP 7
    420 .NOP \f\*[B-Font]dmpeers\f[]
    421 A slightly different peer summary list.
    422 Identical to the output
    423 of the
    424 \f\*[B-Font]peers\f[]
    425 command, except for the character in the
    426 leftmost column.
    427 Characters only appear beside peers which were
    428 included in the final stage of the clock selection algorithm.
    429 A
    430 \[oq]\&.\[cq]
    431 indicates that this peer was cast off in the falseticker
    432 detection, while a
    433 \[oq]\&+\[cq]
    434 indicates that the peer made it
    435 through.
    436 A
    437 \[oq]\&*\[cq]
    438 denotes the peer the server is currently
    439 synchronizing with.
    440 .TP 7
    441 .NOP \f\*[B-Font]showpeer\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]...\f[]]
    442 Shows a detailed display of the current peer variables for one
    443 or more peers.
    444 Most of these values are described in the NTP
    445 Version 2 specification.
    446 .TP 7
    447 .NOP \f\*[B-Font]pstats\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]...\f[]]
    448 Show per-peer statistic counters associated with the specified
    449 peer(s).
    450 .TP 7
    451 .NOP \f\*[B-Font]clockinfo\f[] \f\*[I-Font]clock_peer_address\f[] [\f\*[I-Font]...\f[]]
    452 Obtain and print information concerning a peer clock.
    453 The
    454 values obtained provide information on the setting of fudge factors
    455 and other clock performance information.
    456 .TP 7
    457 .NOP \f\*[B-Font]kerninfo\f[]
    458 Obtain and print kernel phase-lock loop operating parameters.
    459 This information is available only if the kernel has been specially
    460 modified for a precision timekeeping function.
    461 .TP 7
    462 .NOP \f\*[B-Font]loopinfo\f[] [\f\*[B-Font]oneline\f[] | \f\*[B-Font]multiline\f[]]
    463 Print the values of selected loop filter variables.
    464 The loop
    465 filter is the part of NTP which deals with adjusting the local
    466 system clock.
    467 The
    468 \[oq]offset\[cq]
    469 is the last offset given to the
    470 loop filter by the packet processing code.
    471 The
    472 \[oq]frequency\[cq]
    473 is the frequency error of the local clock in parts-per-million
    474 (ppm).
    475 The
    476 \[oq]time_const\[cq]
    477 controls the stiffness of the
    478 phase-lock loop and thus the speed at which it can adapt to
    479 oscillator drift.
    480 The
    481 \[oq]watchdog timer\[cq]
    482 value is the number
    483 of seconds which have elapsed since the last sample offset was
    484 given to the loop filter.
    485 The
    486 \f\*[B-Font]oneline\f[]
    487 and
    488 \f\*[B-Font]multiline\f[]
    489 options specify the format in which this
    490 information is to be printed, with
    491 \f\*[B-Font]multiline\f[]
    492 as the
    493 default.
    494 .TP 7
    495 .NOP \f\*[B-Font]sysinfo\f[]
    496 Print a variety of system state variables, i.e., state related
    497 to the local server.
    498 All except the last four lines are described
    499 in the NTP Version 3 specification, RFC-1305.
    500 .sp \n(Ppu
    501 .ne 2
    502 
    503 The
    504 \[oq]system flags\[cq]
    505 show various system flags, some of
    506 which can be set and cleared by the
    507 \f\*[B-Font]enable\f[]
    508 and
    509 \f\*[B-Font]disable\f[]
    510 configuration commands, respectively.
    511 These are
    512 the
    513 \f\*[B-Font]auth\f[],
    514 \f\*[B-Font]bclient\f[],
    515 \f\*[B-Font]monitor\f[],
    516 \f\*[B-Font]pll\f[],
    517 \f\*[B-Font]pps\f[]
    518 and
    519 \f\*[B-Font]stats\f[]
    520 flags.
    521 See the
    522 \fCntpd\fR(1ntpdmdoc)\f[]
    523 documentation for the meaning of these flags.
    524 There
    525 are two additional flags which are read only, the
    526 \f\*[B-Font]kernel_pll\f[]
    527 and
    528 \f\*[B-Font]kernel_pps\f[].
    529 These flags indicate
    530 the synchronization status when the precision time kernel
    531 modifications are in use.
    532 The
    533 \[oq]kernel_pll\[cq]
    534 indicates that
    535 the local clock is being disciplined by the kernel, while the
    536 \[oq]kernel_pps\[cq]
    537 indicates the kernel discipline is provided by the PPS
    538 signal.
    539 .sp \n(Ppu
    540 .ne 2
    541 
    542 The
    543 \[oq]stability\[cq]
    544 is the residual frequency error remaining
    545 after the system frequency correction is applied and is intended for
    546 maintenance and debugging.
    547 In most architectures, this value will
    548 initially decrease from as high as 500 ppm to a nominal value in
    549 the range .01 to 0.1 ppm.
    550 If it remains high for some time after
    551 starting the daemon, something may be wrong with the local clock,
    552 or the value of the kernel variable
    553 \fIkern.clockrate.tick\f[]
    554 may be
    555 incorrect.
    556 .sp \n(Ppu
    557 .ne 2
    558 
    559 The
    560 \[oq]broadcastdelay\[cq]
    561 shows the default broadcast delay,
    562 as set by the
    563 \f\*[B-Font]broadcastdelay\f[]
    564 configuration command.
    565 .sp \n(Ppu
    566 .ne 2
    567 
    568 The
    569 \[oq]authdelay\[cq]
    570 shows the default authentication delay,
    571 as set by the
    572 \f\*[B-Font]authdelay\f[]
    573 configuration command.
    574 .TP 7
    575 .NOP \f\*[B-Font]sysstats\f[]
    576 Print statistics counters maintained in the protocol
    577 module.
    578 .TP 7
    579 .NOP \f\*[B-Font]memstats\f[]
    580 Print statistics counters related to memory allocation
    581 code.
    582 .TP 7
    583 .NOP \f\*[B-Font]iostats\f[]
    584 Print statistics counters maintained in the input-output
    585 module.
    586 .TP 7
    587 .NOP \f\*[B-Font]timerstats\f[]
    588 Print statistics counters maintained in the timer/event queue
    589 support code.
    590 .TP 7
    591 .NOP \f\*[B-Font]reslist\f[]
    592 Obtain and print the server's restriction list.
    593 This list is
    594 (usually) printed in sorted order and may help to understand how
    595 the restrictions are applied.
    596 .TP 7
    597 .NOP \f\*[B-Font]monlist\f[] [\f\*[I-Font]version\f[]]
    598 Obtain and print traffic counts collected and maintained by the
    599 monitor facility.
    600 The version number should not normally need to be
    601 specified.
    602 .TP 7
    603 .NOP \f\*[B-Font]clkbug\f[] \f\*[I-Font]clock_peer_address\f[] [\f\*[I-Font]...\f[]]
    604 Obtain debugging information for a reference clock driver.
    605 This
    606 information is provided only by some clock drivers and is mostly
    607 undecodable without a copy of the driver source in hand.
    608 .PP
    609 .SS "Runtime Configuration Requests"
    610 All requests which cause state changes in the server are
    611 authenticated by the server using a configured NTP key (the
    612 facility can also be disabled by the server by not configuring a
    613 key).
    614 The key number and the corresponding key must also be made
    615 known to
    616 \f\*[B-Font]ntpdc\fP.
    617 This can be done using the
    618 \f\*[B-Font]keyid\f[]
    619 and
    620 \f\*[B-Font]passwd\f[]
    621 commands, the latter of which will prompt at the terminal for a
    622 password to use as the encryption key.
    623 You will also be prompted
    624 automatically for both the key number and password the first time a
    625 command which would result in an authenticated request to the
    626 server is given.
    627 Authentication not only provides verification that
    628 the requester has permission to make such changes, but also gives
    629 an extra degree of protection again transmission errors.
    630 .sp \n(Ppu
    631 .ne 2
    632 
    633 Authenticated requests always include a timestamp in the packet
    634 data, which is included in the computation of the authentication
    635 code.
    636 This timestamp is compared by the server to its receive time
    637 stamp.
    638 If they differ by more than a small amount the request is
    639 rejected.
    640 This is done for two reasons.
    641 First, it makes simple
    642 replay attacks on the server, by someone who might be able to
    643 overhear traffic on your LAN, much more difficult.
    644 Second, it makes
    645 it more difficult to request configuration changes to your server
    646 from topologically remote hosts.
    647 While the reconfiguration facility
    648 will work well with a server on the local host, and may work
    649 adequately between time-synchronized hosts on the same LAN, it will
    650 work very poorly for more distant hosts.
    651 As such, if reasonable
    652 passwords are chosen, care is taken in the distribution and
    653 protection of keys and appropriate source address restrictions are
    654 applied, the run time reconfiguration facility should provide an
    655 adequate level of security.
    656 .sp \n(Ppu
    657 .ne 2
    658 
    659 The following commands all make authenticated requests.
    660 .TP 7
    661 .NOP \f\*[B-Font]addpeer\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]keyid\f[]] [\f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]]
    662 Add a configured peer association at the given address and
    663 operating in symmetric active mode.
    664 Note that an existing
    665 association with the same peer may be deleted when this command is
    666 executed, or may simply be converted to conform to the new
    667 configuration, as appropriate.
    668 If the optional
    669 \f\*[I-Font]keyid\f[]
    670 is a
    671 nonzero integer, all outgoing packets to the remote server will
    672 have an authentication field attached encrypted with this key.
    673 If
    674 the value is 0 (or not given) no authentication will be done.
    675 The
    676 \f\*[I-Font]version\f[]
    677 can be 1, 2 or 3 and defaults to 3.
    678 The
    679 \f\*[B-Font]prefer\f[]
    680 keyword indicates a preferred peer (and thus will
    681 be used primarily for clock synchronisation if possible).
    682 The
    683 preferred peer also determines the validity of the PPS signal \- if
    684 the preferred peer is suitable for synchronisation so is the PPS
    685 signal.
    686 .TP 7
    687 .NOP \f\*[B-Font]addserver\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]keyid\f[]] [\f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]]
    688 Identical to the addpeer command, except that the operating
    689 mode is client.
    690 .TP 7
    691 .NOP \f\*[B-Font]broadcast\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]keyid\f[]] [\f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]]
    692 Identical to the addpeer command, except that the operating
    693 mode is broadcast.
    694 In this case a valid key identifier and key are
    695 required.
    696 The
    697 \f\*[I-Font]peer_address\f[]
    698 parameter can be the broadcast
    699 address of the local network or a multicast group address assigned
    700 to NTP.
    701 If a multicast address, a multicast-capable kernel is
    702 required.
    703 .TP 7
    704 .NOP \f\*[B-Font]unconfig\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]...\f[]]
    705 This command causes the configured bit to be removed from the
    706 specified peer(s).
    707 In many cases this will cause the peer
    708 association to be deleted.
    709 When appropriate, however, the
    710 association may persist in an unconfigured mode if the remote peer
    711 is willing to continue on in this fashion.
    712 .TP 7
    713 .NOP \f\*[B-Font]fudge\f[] \f\*[I-Font]peer_address\f[] [\f\*[B-Font]time1\f[]] [\f\*[B-Font]time2\f[]] [\f\*[I-Font]stratum\f[]] [\f\*[I-Font]refid\f[]]
    714 This command provides a way to set certain data for a reference
    715 clock.
    716 See the source listing for further information.
    717 .TP 7
    718 .NOP \f\*[B-Font]enable\f[] [\f\*[B-Font]auth\f[] | \f\*[B-Font]bclient\f[] | \f\*[B-Font]calibrate\f[] | \f\*[B-Font]kernel\f[] | \f\*[B-Font]monitor\f[] | \f\*[B-Font]ntp\f[] | \f\*[B-Font]pps\f[] | \f\*[B-Font]stats\f[]]
    719 .TP 7
    720 .NOP \f\*[B-Font]disable\f[] [\f\*[B-Font]auth\f[] | \f\*[B-Font]bclient\f[] | \f\*[B-Font]calibrate\f[] | \f\*[B-Font]kernel\f[] | \f\*[B-Font]monitor\f[] | \f\*[B-Font]ntp\f[] | \f\*[B-Font]pps\f[] | \f\*[B-Font]stats\f[]]
    721 These commands operate in the same way as the
    722 \f\*[B-Font]enable\f[]
    723 and
    724 \f\*[B-Font]disable\f[]
    725 configuration file commands of
    726 \fCntpd\fR(1ntpdmdoc)\f[].
    727 .RS
    728 .TP 7
    729 .NOP \f\*[B-Font]auth\f[]
    730 Enables the server to synchronize with unconfigured peers only
    731 if the peer has been correctly authenticated using either public key
    732 or private key cryptography.
    733 The default for this flag is enable.
    734 .TP 7
    735 .NOP \f\*[B-Font]bclient\f[]
    736 Enables the server to listen for a message from a broadcast or
    737 multicast server, as in the multicastclient command with
    738 default address.
    739 The default for this flag is disable.
    740 .TP 7
    741 .NOP \f\*[B-Font]calibrate\f[]
    742 Enables the calibrate feature for reference clocks.
    743 The default for this flag is disable.
    744 .TP 7
    745 .NOP \f\*[B-Font]kernel\f[]
    746 Enables the kernel time discipline, if available.
    747 The default for this flag is enable if support is available, otherwise disable.
    748 .TP 7
    749 .NOP \f\*[B-Font]monitor\f[]
    750 Enables the monitoring facility.
    751 See the documentation here about the
    752 \f\*[B-Font]monlist\f[]
    753 command or further information.
    754 The default for this flag is enable.
    755 .TP 7
    756 .NOP \f\*[B-Font]ntp\f[]
    757 Enables time and frequency discipline.
    758 In effect, this switch opens and closes the feedback loop,
    759 which is useful for testing.
    760 The default for this flag is enable.
    761 .TP 7
    762 .NOP \f\*[B-Font]pps\f[]
    763 Enables the pulse-per-second (PPS) signal when frequency
    764 and time is disciplined by the precision time kernel modifications.
    765 See the
    766 "A Kernel Model for Precision Timekeeping"
    767 (available as part of the HTML documentation
    768 provided in
    769 \fI/usr/share/doc/ntp\f[])
    770 page for further information.
    771 The default for this flag is disable.
    772 .TP 7
    773 .NOP \f\*[B-Font]stats\f[]
    774 Enables the statistics facility.
    775 See the
    776 \fIMonitoring\f[] \fIOptions\f[]
    777 section of
    778 \fCntp.conf\fR(5)\f[]
    779 for further information.
    780 The default for this flag is disable.
    781 .RE
    782 .TP 7
    783 .NOP \f\*[B-Font]restrict\f[] \f\*[I-Font]address\f[] \f\*[I-Font]mask\f[] \f\*[I-Font]flag\f[] [\f\*[I-Font]...\f[]]
    784 This command operates in the same way as the
    785 \f\*[B-Font]restrict\f[]
    786 configuration file commands of
    787 \fCntpd\fR(1ntpdmdoc)\f[].
    788 .TP 7
    789 .NOP \f\*[B-Font]unrestrict\f[] \f\*[I-Font]address\f[] \f\*[I-Font]mask\f[] \f\*[I-Font]flag\f[] [\f\*[I-Font]...\f[]]
    790 Unrestrict the matching entry from the restrict list.
    791 .TP 7
    792 .NOP \f\*[B-Font]delrestrict\f[] \f\*[I-Font]address\f[] \f\*[I-Font]mask\f[] [\f\*[B-Font]ntpport\f[]]
    793 Delete the matching entry from the restrict list.
    794 .TP 7
    795 .NOP \f\*[B-Font]readkeys\f[]
    796 Causes the current set of authentication keys to be purged and
    797 a new set to be obtained by rereading the keys file (which must
    798 have been specified in the
    799 \fCntpd\fR(1ntpdmdoc)\f[]
    800 configuration file).
    801 This
    802 allows encryption keys to be changed without restarting the
    803 server.
    804 .TP 7
    805 .NOP \f\*[B-Font]trustedkey\f[] \f\*[I-Font]keyid\f[] [\f\*[I-Font]...\f[]]
    806 .TP 7
    807 .NOP \f\*[B-Font]untrustedkey\f[] \f\*[I-Font]keyid\f[] [\f\*[I-Font]...\f[]]
    808 These commands operate in the same way as the
    809 \f\*[B-Font]trustedkey\f[]
    810 and
    811 \f\*[B-Font]untrustedkey\f[]
    812 configuration file
    813 commands of
    814 \fCntpd\fR(1ntpdmdoc)\f[].
    815 .TP 7
    816 .NOP \f\*[B-Font]authinfo\f[]
    817 Returns information concerning the authentication module,
    818 including known keys and counts of encryptions and decryptions
    819 which have been done.
    820 .TP 7
    821 .NOP \f\*[B-Font]traps\f[]
    822 Display the traps set in the server.
    823 See the source listing for
    824 further information.
    825 .TP 7
    826 .NOP \f\*[B-Font]addtrap\f[] \f\*[I-Font]address\f[] [\f\*[I-Font]port\f[]] [\f\*[I-Font]interface\f[]]
    827 Set a trap for asynchronous messages.
    828 See the source listing
    829 for further information.
    830 .TP 7
    831 .NOP \f\*[B-Font]clrtrap\f[] \f\*[I-Font]address\f[] [\f\*[I-Font]port\f[]] [\f\*[I-Font]interface\f[]]
    832 Clear a trap for asynchronous messages.
    833 See the source listing
    834 for further information.
    835 .TP 7
    836 .NOP \f\*[B-Font]reset\f[]
    837 Clear the statistics counters in various modules of the server.
    838 See the source listing for further information.
    839 .PP
    840 .SH "ENVIRONMENT"
    841 See \fBOPTION PRESETS\fP for configuration environment variables.
    842 .SH "FILES"
    843 See \fBOPTION PRESETS\fP for configuration files.
    844 .SH "EXIT STATUS"
    845 One of the following exit values will be returned:
    846 .TP
    847 .NOP 0 " (EXIT_SUCCESS)"
    848 Successful program execution.
    849 .TP
    850 .NOP 1 " (EXIT_FAILURE)"
    851 The operation failed or the command syntax was not valid.
    852 .TP
    853 .NOP 66 " (EX_NOINPUT)"
    854 A specified configuration file could not be loaded.
    855 .TP
    856 .NOP 70 " (EX_SOFTWARE)"
    857 libopts had an internal operational error.  Please report
    858 it to autogen-users (a] lists.sourceforge.net.  Thank you.
    859 .PP
    860 .SH "SEE ALSO"
    861 \fCntp.conf\fR(5)\f[],
    862 \fCntpd\fR(1ntpdmdoc)\f[]
    863 David L. Mills,
    864 \fINetwork Time Protocol (Version 3)\fR,
    865 RFC1305
    866 .PP
    867 
    868 .SH AUTHORS
    869 The formatting directives in this document came from FreeBSD.
    870 .SH "COPYRIGHT"
    871 Copyright (C) 1970-2013 The University of Delaware all rights reserved.
    872 This program is released under the terms of the NTP license, <http://ntp.org/license>.
    873 .SH BUGS
    874 The
    875 \f\*[B-Font]ntpdc\fP
    876 utility is a crude hack.
    877 Much of the information it shows is
    878 deadly boring and could only be loved by its implementer.
    879 The
    880 program was designed so that new (and temporary) features were easy
    881 to hack in, at great expense to the program's ease of use.
    882 Despite
    883 this, the program is occasionally useful.
    884 .sp \n(Ppu
    885 .ne 2
    886 
    887 Please report bugs to http://bugs.ntp.org .
    888 .sp \n(Ppu
    889 .ne 2
    890 
    891 Please send bug reports to: http://bugs.ntp.org, bugs (a] ntp.org
    892 .SH "NOTES"
    893 This manual page was \fIAutoGen\fP-erated from the \fBntpdc\fP
    894 option definitions.
    895