]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - usr.sbin/ntp/doc/ntpq.8
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / usr.sbin / ntp / doc / ntpq.8
1 .\"
2 .\" $FreeBSD$
3 .\"
4 .Dd May 17, 2006
5 .Dt NTPQ 8
6 .Os
7 .Sh NAME
8 .Nm ntpq
9 .Nd standard NTP query program
10 .Sh SYNOPSIS
11 .Nm
12 .Op Fl inp
13 .Op Fl c Ar command
14 .Op Ar host
15 .Op Ar ...
16 .Sh DESCRIPTION
17 The
18 .Nm
19 utility is used to monitor NTP daemon
20 .Xr ntpd 8
21 operations and determine performance.
22 It uses the standard NTP mode 6 control message formats
23 defined in Appendix B of the NTPv3 specification RFC1305.
24 The same formats are used in NTPv4, although some of the variables
25 have changed and new ones added.
26 The description on this page is for the NTPv4 variables.
27 .Pp
28 The program can be run either in interactive mode or controlled
29 using command line arguments.
30 Requests to read and write arbitrary variables can be assembled,
31 with raw and pretty-printed output options being available.
32 The
33 .Nm
34 can also obtain and print a list of peers in a common format
35 by sendingmultiple queries to the server.
36 .Pp
37 If one or more request options is included on the command line
38 when
39 .Nm
40 is executed, each of the requests will be sent
41 to the NTP servers running on each of the hosts given as command
42 line arguments, or on localhost by default.
43 If no request options
44 are given,
45 .Nm
46 will attempt to read commands from the
47 standard input and execute these on the NTP server running on the
48 first host given on the command line, again defaulting to localhost
49 when no other host is specified.
50 The
51 .Nm
52 utility will prompt for
53 commands if the standard input is a terminal device.
54 .Pp
55 The
56 .Nm
57 utility uses NTP mode 6 packets to communicate with the
58 NTP server, and hence can be used to query any compatible server on
59 the network which permits it.
60 Note that since NTP is a UDP protocol
61 this communication will be somewhat unreliable, especially over
62 large distances in terms of network topology.
63 The
64 .Nm
65 utility makes
66 one attempt to retransmit requests, and will time requests out if
67 the remote host is not heard from within a suitable timeout
68 time.
69 .Pp
70 For examples and usage, see the
71 .Qq NTP Debugging Techniques
72 page
73 (available as part of the HTML documentation
74 provided in
75 .Pa /usr/share/doc/ntp ) .
76 .Pp
77 The following options are available:
78 .Bl -tag -width indent
79 .It Fl 4
80 Force DNS resolution of following host names on the command line to the
81 IPv4 namespace.
82 .It Fl 6
83 Force DNS resolution of following host names on the command line to the
84 IPv6 namespace.
85 .It Fl c
86 The following argument is interpreted as an interactive format
87 command and is added to the list of commands to be executed on the
88 specified host(s).
89 Multiple
90 .Fl c
91 options may be given.
92 .It Fl d
93 Turn on debugging mode.
94 .It Fl i
95 Force
96 .Nm
97 to operate in interactive mode.
98 Prompts
99 will be written to the standard output and commands read from the
100 standard input.
101 .It Fl n
102 Output all host addresses in dotted-quad numeric format rather
103 than converting to the canonical host names.
104 .It Fl p
105 Print a list of the peers known to the server as well as a
106 summary of their state.
107 This is equivalent to the
108 .Ic peers
109 interactive command.
110 .El
111 .Pp
112 Note that in contexts where a host name is expected, a
113 .Fl 4
114 qualifier preceding the host name forces DNS resolution to the
115 IPv4 namespace, while a
116 .Fl 6
117 qualifier forces DNS resolution to the IPv6 namespace.
118 Specifying a
119 command line option other than
120 .Fl i
121 or
122 .Fl n
123 will
124 cause the specified query (queries) to be sent to the indicated
125 host(s) immediately.
126 Otherwise,
127 .Nm
128 will attempt to read
129 interactive format commands from the standard input.
130 .Ss "Internal Commands"
131 Interactive format commands consist of a keyword followed by zero
132 to four arguments.
133 Only enough characters of the full keyword to
134 uniquely identify the command need be typed.
135 The output of a
136 command is normally sent to the standard output, but optionally the
137 output of individual commands may be sent to a file by appending a
138 .Ql \&> ,
139 followed by a file name, to the command line.
140 A
141 number of interactive format commands are executed entirely within
142 the
143 .Nm
144 utility itself and do not result in NTP mode 6
145 requests being sent to a server.
146 These are described following.
147 .Bl -tag -width indent
148 .It Ic \&? Op Ar command_keyword
149 .It Ic help Op Ar command_keyword
150 A
151 .Sq Ic \&?
152 by itself will print a list of all the command
153 keywords known to this incarnation of
154 .Nm .
155 A
156 .Sq Ic \&?
157 followed by a command keyword will print function and usage
158 information about the command.
159 This command is probably a better
160 source of information about
161 .Nm
162 than this manual
163 page.
164 .It Xo Ic addvars
165 .Ar variable_name Ns Op = Ns Ar value ...
166 .Xc
167 .It Ic rmvars Ar variable_name ...
168 .It Ic clearvars
169 The data carried by NTP mode 6 messages consists of a list of
170 items of the form
171 .Ql variable_name=value ,
172 where the
173 .Ql =value
174 is ignored, and can be omitted,
175 in requests to the server to read variables.
176 The
177 .Nm
178 utility maintains an internal list in which data to be included in control
179 messages can be assembled, and sent using the
180 .Ic readlist
181 and
182 .Ic writelist
183 commands described below.
184 The
185 .Ic addvars
186 command allows variables and their optional values to be added to
187 the list.
188 If more than one variable is to be added, the list should
189 be comma-separated and not contain white space.
190 The
191 .Ic rmvars
192 command can be used to remove individual variables from the list,
193 while the
194 .Ic clearlist
195 command removes all variables from the
196 list.
197 .It Ic cooked
198 Causes output from query commands to be "cooked", so that
199 variables which are recognized by
200 .Nm
201 will have their
202 values reformatted for human consumption.
203 Variables which
204 .Nm
205 thinks should have a decodable value but did not are
206 marked with a trailing
207 .Ql \&? .
208 .It Xo Ic debug
209 .Cm more |
210 .Cm less |
211 .Cm off
212 .Xc
213 Turns internal query program debugging on and off.
214 .It Ic delay Ar milliseconds
215 Specify a time interval to be added to timestamps included in
216 requests which require authentication.
217 This is used to enable
218 (unreliable) server reconfiguration over long delay network paths
219 or between machines whose clocks are unsynchronized.
220 Actually the
221 server does not now require timestamps in authenticated requests,
222 so this command may be obsolete.
223 .It Ic host Ar hostname
224 Set the host to which future queries will be sent.
225 Hostname may
226 be either a host name or a numeric address.
227 .It Ic hostnames Cm yes | Cm no
228 If
229 .Cm yes
230 is specified, host names are printed in
231 information displays.
232 If
233 .Cm no
234 is specified, numeric
235 addresses are printed instead.
236 The default is
237 .Cm yes ,
238 unless
239 modified using the command line
240 .Fl n
241 switch.
242 .It Ic keyid Ar keyid
243 This command specifies the key number to be used to authenticate
244 configuration requests.
245 This must correspond to a key number the server has
246 been configured to use for this purpose.
247 .It Xo Ic ntpversion
248 .Cm 1 |
249 .Cm 2 |
250 .Cm 3 |
251 .Cm 4
252 .Xc
253 Sets the NTP version number which
254 .Nm
255 claims in
256 packets.
257 Defaults to 3, Note that mode 6 control messages (and
258 modes, for that matter) did not exist in NTP version 1.
259 There appear
260 to be no servers left which demand version 1.
261 .It Ic passwd
262 This command prompts for a password (which will not be echoed) which will
263 be used to authenticate configuration requests.
264 The password must
265 correspond to the key configured for NTP server for this purpose.
266 .It Ic quit
267 Exit
268 .Nm .
269 .It Ic raw
270 Causes all output from query commands is printed as received
271 from the remote server.
272 The only formatting/interpretation done on
273 the data is to transform nonascii data into a printable (but barely
274 understandable) form.
275 .It Ic timeout Ar milliseconds
276 Specify a timeout period for responses to server queries.
277 The
278 default is about 5000 milliseconds.
279 Note that since
280 .Nm
281 retries each query once after a timeout, the total waiting time for
282 a timeout will be twice the timeout value set.
283 .El
284 .Ss Control Message Commands
285 Each association known to an NTP server has a 16 bit integer association
286 identifier.
287 NTP control messages which carry peer variables must identify the
288 peer the values correspond to by including its association ID.
289 An association
290 ID of 0 is special, and indicates the variables are system variables, whose
291 names are drawn from a separate name space.
292 .Pp
293 Control message commands result in one or more NTP mode 6
294 messages being sent to the server, and cause the data returned to
295 be printed in some format.
296 Most commands currently implemented send
297 a single message and expect a single response.
298 The current
299 exceptions are the peers command, which will send a preprogrammed
300 series of messages to obtain the data it needs, and the mreadlist
301 and mreadvar commands, which will iterate over a range of
302 associations.
303 .Bl -tag -width indent
304 .It Ic associations
305 Obtains and prints a list of association identifiers and peer
306 statuses for in-spec peers of the server being queried.
307 The list is
308 printed in columns.
309 The first of these is an index numbering the
310 associations from 1 for internal use, the second the actual
311 association identifier returned by the server and the third the
312 status word for the peer.
313 This is followed by a number of columns
314 containing data decoded from the status word.
315 See the peers command
316 for a decode of the
317 .Sq condition
318 field.
319 Note that the data
320 returned by the
321 .Ic associations
322 command is cached internally
323 in
324 .Nm .
325 The index is then of use when dealing with stupid
326 servers which use association identifiers which are hard for humans
327 to type, in that for any subsequent commands which require an
328 association identifier as an argument, the form and index may be
329 used as an alternative.
330 .It Xo Ic clockvar Op Ar assocID
331 .Oo
332 .Ar variable_name Ns Op = Ns Ar value ...
333 .Oc
334 .Ar ...
335 .Xc
336 .It Xo Ic cv Op Ar assocID
337 .Oo
338 .Ar variable_name Ns Op = Ns Ar value ...
339 .Oc
340 .Ar ...
341 .Xc
342 Requests that a list of the server's clock variables be sent.
343 Servers which have a radio clock or other external synchronization
344 will respond positively to this.
345 If the association identifier is
346 omitted or zero the request is for the variables of the
347 .Sq system clock
348 and will generally get a positive response from all
349 servers with a clock.
350 If the server treats clocks as pseudo-peers,
351 and hence can possibly have more than one clock connected at once,
352 referencing the appropriate peer association ID will show the
353 variables of a particular clock.
354 Omitting the variable list will
355 cause the server to return a default variable display.
356 .It Ic lassociations
357 Obtains and prints a list of association identifiers and peer
358 statuses for all associations for which the server is maintaining
359 state.
360 This command differs from the
361 .Ic associations
362 command
363 only for servers which retain state for out-of-spec client
364 associations (i.e., fuzzballs).
365 Such associations are normally
366 omitted from the display when the
367 .Ic associations
368 command is
369 used, but are included in the output of
370 .Ic lassociations .
371 .It Ic lpassociations
372 Print data for all associations, including out-of-spec client
373 associations, from the internally cached list of associations.
374 This
375 command differs from
376 .Ic passociations
377 only when dealing with
378 fuzzballs.
379 .It Ic lpeers
380 Like R peers, except a summary of all associations for which
381 the server is maintaining state is printed.
382 This can produce a much
383 longer list of peers from fuzzball servers.
384 .It Ic mreadlist Ar assocID Ar assocID
385 .It Ic mrl Ar assocID Ar assocID
386 Like the
387 .Ic readlist
388 command, except the query is done
389 for each of a range of (nonzero) association IDs.
390 This range is
391 determined from the association list cached by the most recent
392 .Ic associations
393 command.
394 .It Xo Ic mreadvar Ar assocID Ar assocID
395 .Oo
396 .Ar variable_name Ns Op = Ns Ar value ...
397 .Oc
398 .Xc
399 .It Xo Ic mrv Ar assocID Ar assocID
400 .Oo
401 .Ar variable_name Ns Op = Ns Ar value ...
402 .Oc
403 .Xc
404 Like the
405 .Ic readvar
406 command, except the query is done for
407 each of a range of (nonzero) association IDs.
408 This range is
409 determined from the association list cached by the most recent
410 .Ic associations
411 command.
412 .It Ic opeers
413 An old form of the
414 .Ic peers
415 command with the reference ID
416 replaced by the local interface address.
417 .It Ic passociations
418 Displays association data concerning in-spec peers from the
419 internally cached list of associations.
420 This command performs
421 identically to the
422 .Ic associations
423 except that it displays
424 the internally stored data rather than making a new query.
425 .It Ic peers
426 Obtains a current list peers of the server, along with a
427 summary of each peer's state.
428 Summary information includes the
429 address of the remote peer, the reference ID (0.0.0.0 if this is
430 unknown), the stratum of the remote peer, the type of the peer
431 (local, unicast, multicast or broadcast), when the last packet was
432 received, the polling interval, in seconds, the reachability
433 register, in octal, and the current estimated delay,
434 offset and dispersion of the peer, all in milliseconds.
435 The character at the left margin of each line shows the
436 synchronization status of the association and is a valuable
437 diagnostic tool.
438 The encoding and meaning of this character,
439 called the tally code, is given later in this page.
440 .It Ic pstatus Ar assocID
441 Sends a read status request to the server for the given
442 association.
443 The names and values of the peer variables returned
444 will be printed.
445 Note that the status word from the header is
446 displayed preceding the variables, both in hexadecimal and in
447 pidgeon English.
448 .It Ic readlist Ar assocID
449 .It Ic rl Ar assocID
450 Requests that the values of the variables in the internal
451 variable list be returned by the server.
452 If the association ID is
453 omitted or is 0 the variables are assumed to be system variables.
454 Otherwise they are treated as peer variables.
455 If the internal
456 variable list is empty a request is sent without data, which should
457 induce the remote server to return a default display.
458 .It Xo Ic readvar Ar assocID
459 .Ar variable_name Ns Op = Ns Ar value
460 .Ar ...
461 .Xc
462 .It Xo Ic rv Ar assocID
463 .Ar variable_name Ns Op = Ns Ar value
464 .Ar ...
465 .Xc
466 Requests that the values of the specified variables be returned
467 by the server by sending a read variables request.
468 If the
469 association ID is omitted or is given as zero the variables are
470 system variables, otherwise they are peer variables and the values
471 returned will be those of the corresponding peer.
472 Omitting the
473 variable list will send a request with no data which should induce
474 the server to return a default display.
475 The
476 encoding and meaning of the variables derived from NTPv3 is given in
477 RFC-1305; the encoding and meaning of the additional NTPv4 variables are
478 given later in this page.
479 .It Xo Ic writevar Ar assocID
480 .Ar variable_name Ns Op = Ns Ar value
481 .Ar ...
482 .Xc
483 Like the readvar request, except the specified variables are
484 written instead of read.
485 .It Ic writelist Op Ar assocID
486 Like the readlist request, except the internal list variables
487 are written instead of read.
488 .El
489 .Ss Tally Codes
490 The character in the left margin in the
491 .Sq peers
492 billboard,
493 called the tally code, shows the fate of each association
494 in the clock selection process.
495 Following is a list of these characters, the pigeon used
496 in the
497 .Ic rv
498 command, and a short explanation of the condition revealed.
499 .Bl -tag -width indent
500 .It space
501 .Pq reject
502 The peer is discarded as unreachable, synchronized to this server (synch
503 loop) or outrageous synchronization distance.
504 .It x
505 .Pq falsetick
506 The peer is discarded by the intersection algorithm as a falseticker.
507 .It \&.
508 .Pq excess
509 The peer is discarded as not among the first ten peers sorted by
510 synchronization distance and so is probably a poor candidate for further
511 consideration.
512 .It \&-
513 .Pq outlyer
514 The peer is discarded by the clustering algorithm as an outlyer.
515 .It \&+
516 .Pq candidat
517 The peer is a survivor and a candidate for the combining algorithm.
518 .It \&#
519 .Pq selected
520 The peer is a survivor, but not among the first six peers sorted by
521 synchronization distance.
522 If the association is ephemeral, it may be
523 demobilized to conserve resources.
524 .It \&*
525 .Pq sys.peer
526 The peer has been declared the system peer and lends its variables to the
527 system variables.
528 .It o
529 .Pq pps.peer
530 The peer has been declared the system peer and lends its variables to
531 the system variables.
532 However, the actual system synchronization is derived
533 from a pulse-per-second (PPS) signal, either indirectly via the PPS
534 reference clock driver or directly via kernel interface.
535 .El
536 .Ss System Variables
537 The
538 .Cm status ,
539 .Cm leap ,
540 .Cm stratum ,
541 .Cm precision ,
542 .Cm rootdelay ,
543 .Cm rootdispersion ,
544 .Cm refid ,
545 .Cm reftime ,
546 .Cm poll ,
547 .Cm offset ,
548 and
549 .Cm frequency
550 variables are described in RFC-1305
551 specification.
552 Additional NTPv4 system variables include the following.
553 .Bl -tag -width indent
554 .It version
555 Everything you might need to know about the software version and generation
556 time.
557 .It processor
558 The processor and kernel identification string.
559 .It system
560 The operating system version and release identifier.
561 .It state
562 The state of the clock discipline state machine.
563 The values are described
564 in the architecture briefing on the NTP Project page linked from
565 www.ntp.org.
566 .It peer
567 The internal integer used to identify the association currently designated
568 the system peer.
569 .It jitter
570 The estimated time error of the system clock measured as an exponential
571 average of RMS time differences.
572 .It stability
573 The estimated frequency stability of the system clock measured as an
574 exponential average of RMS frequency differences.
575 .El
576 .Pp
577 When the NTPv4 daemon is compiled with the OpenSSL software library, additional
578 system variables are displayed, including some or all of the following,
579 depending on the particular dance:
580 .Bl -tag -width indent
581 .It flags
582 The current flags word bits and message digest algorithm identifier (NID)
583 in hex format.
584 The high order 16 bits of the four-byte word contain the NID
585 from the OpenSSL ligrary, while the low-order bits are interpreted as
586 follows:
587 .Bl -tag -width indent
588 .It 0x01
589 autokey enabled
590 .It 0x02
591 NIST leapseconds file loaded
592 .It 0x10
593 PC identity scheme
594 .It 0x20
595 IFF identity scheme
596 .It 0x40
597 GQ identity scheme
598 .El
599 .It hostname
600 The name of the host as returned by the Unix
601 .Fn gethostname
602 library
603 function.
604 .It hostkey
605 The NTP filestamp of the host key file.
606 .It cert
607 A list of certificates held by the host.
608 Each entry includes the subject,
609 issuer, flags and NTP filestamp in order.
610 The bits are interpreted as
611 follows:
612 .Bl -tag -width indent
613 .It 0x01
614 certificate has been signed by the server
615 .It 0x02
616 certificate is trusted
617 .It 0x04
618 certificate is private
619 .It 0x08
620 certificate contains errors and should not be trusted
621 .El
622 .It leapseconds
623 The NTP filestamp of the NIST leapseconds file.
624 .It refresh
625 The NTP timestamp when the host public cryptographic values were refreshed
626 and signed.
627 .It signature
628 The host digest/signature scheme name from the OpenSSL library.
629 .It tai
630 The TAI-UTC offset in seconds obtained from the NIST leapseconds table.
631 .El
632 .Ss Peer Variables
633 The
634 .Cm status ,
635 .Cm srcadr ,
636 .Cm srcport ,
637 .Cm dstadr ,
638 .Cm dstport ,
639 .Cm leap ,
640 .Cm stratum ,
641 .Cm precision ,
642 .Cm rootdelay ,
643 .Cm rootdispersion ,
644 .Cm readh ,
645 .Cm hmode ,
646 .Cm pmode ,
647 .Cm hpoll ,
648 .Cm ppoll ,
649 .Cm offset ,
650 .Cm delay ,
651 .Cm dspersion ,
652 .Cm reftime
653 variables are described in the RFC-1305 specification, as
654 are the timestamps
655 .Cm org ,
656 .Cm rec
657 and
658 .Cm xmt .
659 Additional NTPv4 system variables include
660 the following.
661 .Bl -tag -width indent
662 .It flash
663 The flash code for the most recent packet received.
664 The encoding and
665 meaning of these codes is given later in this page.
666 .It jitter
667 The estimated time error of the peer clock measured as an exponential
668 average of RMS time differences.
669 .It unreach
670 The value of the counter which records the number of poll intervals since
671 the last valid packet was received.
672 .El
673 .Pp
674 When the NTPv4 daemon is compiled with the OpenSSL software library, additional
675 peer variables are displayed, including the following:
676 .Bl -tag -width indent
677 .It flags
678 The current flag bits.
679 This word is the server host status word with
680 additional bits used by the Autokey state machine.
681 See the source code for
682 the bit encoding.
683 .It hostname
684 The server host name.
685 .It initkey Ar key
686 The initial key used by the key list generator in the Autokey protocol.
687 .It initsequence Ar index
688 The initial index used by the key list generator in the Autokey protocol.
689 .It signature
690 The server message digest/signature scheme name from the OpenSSL software
691 library.
692 .It timestamp Ar time
693 The NTP timestamp when the last Autokey key list was generated and signed.
694 .El
695 .Ss Flash Codes
696 The
697 .Cm flash
698 code is a valuable debugging aid displayed in the peer variables
699 list.
700 It shows the results of the original sanity checks defined in the NTP
701 specification RFC-1305 and additional ones added in NTPv4.
702 There are 12 tests
703 designated
704 .Sy TEST1
705 through
706 .Sy TEST12 .
707 The tests are performed in a certain order
708 designed to gain maximum diagnostic information while protecting against
709 accidental or malicious errors.
710 The
711 .Sy flash
712 variable is initialized to zero as
713 each packet is received.
714 If after each set of tests one or more bits are set,
715 the packet is discarded.
716 .Pp
717 Tests
718 .Sy TEST1
719 through
720 .Sy TEST3
721 check the packet timestamps from which the offset and
722 delay are calculated.
723 If any bits are set, the packet is discarded; otherwise,
724 the packet header variables are saved.
725 .Sy TEST4
726 and
727 .Sy TEST5
728 are associated with
729 access control and cryptographic authentication.
730 If any bits are set, the
731 packet is discarded immediately with nothing changed.
732 .Pp
733 Tests
734 .Sy TEST6
735 through
736 .Sy TEST8
737 check the health of the server.
738 If any bits are set,
739 the packet is discarded; otherwise, the offset and delay relative to the server
740 are calculated and saved.
741 TEST9 checks the health of the association itself.
742 If
743 any bits are set, the packet is discarded; otherwise, the saved variables are
744 passed to the clock filter and mitigation algorithms.
745 .Pp
746 Tests
747 .Sy TEST10
748 through
749 .Sy TEST12
750 check the authentication state using Autokey
751 public-key cryptography, as described in the
752 .Sx Authentication Options
753 section of
754 .Xr ntp.conf 5 .
755 If
756 any bits are set and the association has previously been marked reachable, the
757 packet is discarded; otherwise, the originate and receive timestamps are saved,
758 as required by the NTP protocol, and processing continues.
759 .Pp
760 The
761 .Cm flash
762 bits for each test are defined as follows.
763 .Bl -tag -width indent
764 .It 0x001
765 .Pq TEST1
766 Duplicate packet.
767 The packet is at best a casual retransmission and at
768 worst a malicious replay.
769 .It 0x002
770 .Pq TEST2
771 Bogus packet.
772 The packet is not a reply to a message previously sent.
773 This
774 can happen when the NTP daemon is restarted and before somebody else
775 notices.
776 .It 0x004
777 .Pq TEST3
778 Unsynchronized.
779 One or more timestamp fields are invalid.
780 This normally
781 happens when the first packet from a peer is received.
782 .It 0x008
783 .Pq TEST4
784 Access is denied.
785 See the
786 .Sx Access Control Support
787 section of
788 .Xr ntp.conf 5 .
789 .It 0x010
790 .Pq TEST5
791 Cryptographic authentication fails.
792 See the
793 .Sx Authentication Options
794 section of
795 .Xr ntp.conf 5 .
796 .It 0x020
797 .Pq TEST6
798 The server is unsynchronized.
799 Wind up its clock first.
800 .It 0x040
801 .Pq TEST7
802 The server stratum is at the maximum than 15.
803 It is probably unsynchronized
804 and its clock needs to be wound up.
805 .It 0x080
806 .Pq TEST8
807 Either the root delay or dispersion is greater than one second, which is
808 highly unlikely unless the peer is unsynchronized to Mars.
809 .It 0x100
810 .Pq TEST9
811 Either the peer delay or dispersion is greater than one second, which is
812 higly unlikely unless the peer is on Mars.
813 .It 0x200
814 .Pq TEST10
815 The autokey protocol has detected an authentication failure.
816 See the
817 .Sx Authentication Options
818 section of
819 .Xr ntp.conf 5 .
820 .It 0x400
821 .Pq TEST11
822 The autokey protocol has not verified the server or peer is proventic and
823 has valid public key credentials.
824 See the
825 .Sx Authentication Options
826 section of
827 .Xr ntp.conf 5 .
828 .It 0x800
829 .Pq TEST12
830 A protocol or configuration error has occurred in the public key algorithms
831 or a possible intrusion event has been detected.
832 See the
833 .Sx Authentication Options
834 section of
835 .Xr ntp.conf 5 .
836 .El
837 .Sh SEE ALSO
838 .Xr ntp.conf 5 ,
839 .Xr ntpd 8 ,
840 .Xr ntpdc 8
841 .Sh BUGS
842 The
843 .Ic peers
844 command is non-atomic and may occasionally result in
845 spurious error messages about invalid associations occurring and
846 terminating the command.
847 The timeout time is a fixed constant,
848 which means you wait a long time for timeouts since it assumes sort
849 of a worst case.
850 The program should improve the timeout estimate as
851 it sends queries to a particular host, but does not.