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