]> CyberLeo.Net >> Repos - FreeBSD/releng/10.3.git/blob - contrib/ntp/ntpq/ntpq.texi
Fix multiple vulnerabilities in ntp. [SA-18:02.ntp]
[FreeBSD/releng/10.3.git] / contrib / ntp / ntpq / ntpq.texi
1 \input texinfo    @c -*-texinfo-*-
2 @c %**start of header
3 @setfilename ntpq.info
4 @settitle ntpq: Network Time Protocol Query User's Manual
5 @include ../sntp/include/version.texi
6 @paragraphindent 2
7 @c %**end of header
8
9 @ifinfo
10 This file documents the use of the NTP Project's ntpq, a program for
11 querying the state of an NTP server.
12 @end ifinfo
13
14 @direntry
15 * ntpq: (ntpq).                               NTP Query program
16 @end direntry
17
18 @titlepage
19 @title ntpq: Network Time Protocol Query User's Manual
20 @subtitle ntpq, version @value{VERSION}, @value{UPDATED}
21 @c @author Max @email{foo@ntp.org}
22 @end titlepage
23
24 @c @page
25 @c @vskip 0pt plus 1filll
26
27 @shortcontents
28
29 @node Top, ntpq Description, (dir), (dir)
30 @top ntpq: Network Time Protocol Query User Manual
31
32 The @code{ntpq} utility program is used to
33 monitor the operational status
34 and determine the performance of
35 @code{ntpd}, the NTP daemon.
36
37 This document applies to version @value{VERSION} of @code{ntpq}.
38
39 @menu
40 * ntpq Description::            
41 * ntpq Invocation::             Invoking ntpq
42 * Usage::                       
43 * Internal Commands::           
44 * Control Message Commands::    
45 * Status Words and Kiss Codes::  
46 * System Variables::            
47 * Peer Variables::              
48 * Clock Variables::             
49 @end menu
50
51 @node ntpq Description, Usage, Top, Top
52 @comment  node-name,  next,  previous,  up
53 @section Description
54
55 The @code{ntpq} utility program is used to monitor NTP daemon @code{ntpd} operations and determine performance.
56 It uses the standard NTP mode 6 control message formats defined in
57 Appendix B of the NTPv3 specification RFC1305.
58 The same formats are used in NTPv4, although some of the variable names have changed and new ones added.
59 The description on this page is for the NTPv4 variables.
60
61 The program can be run either in interactive mode or controlled using command line arguments.  Requests to read and write arbitrary variables can be assembled, with raw and pretty-printed output options being available.  The @code{ntpq} can also obtain and print a list of peers in a common format by sending multiple queries to the server.
62
63 If one or more request options is included on the command line when @code{ntpq} is executed, each of the requests will be sent to the NTP servers running on each of the hosts given as command line arguments, or on localhost by default.  If no request options are given, @code{ntpq} will attempt to read commands from the standard input and execute these on the NTP server running on the first host given on the command line, again defaulting to localhost when no other host is specified.  @code{ntpq} will prompt for commands if the standard input is a terminal device.
64
65 @code{ntpq} uses NTP mode 6 packets to communicate with the NTP server, and hence can be used to query any compatible server on the network which permits it.  Note that since NTP is a UDP protocol this communication will be somewhat unreliable, especially over large distances in terms of network topology.  @code{ntpq} makes one attempt to retransmit requests, and will time requests out if the remote host is not heard from within a suitable timeout time.
66
67 Note that in contexts where a host name is expected, a @code{-4} qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a @code{-6} qualifier forces DNS resolution to the IPv6 namespace.
68
69 For examples and usage, see the @url{debug.html, NTP Debugging Techniques} page.
70
71 @include invoke-ntpq.texi
72
73 @node Usage, Internal Commands, ntpq Description, Top
74 @comment  node-name,  next,  previous,  up
75 @section Usage
76
77 @multitable @columnfractions .23 .23 .05 .15
78 @headitem What @tab Default @tab Flag @tab Option
79 @item configuration file
80 @tab @code{/etc/ntp.conf}
81 @tab @code{-c}
82 @tab @code{conffile}
83 @item frequency file
84 @tab none
85 @tab @code{-f}
86 @tab @code{driftfile}
87 @item leapseconds file
88 @tab none
89 @tab
90 @tab @code{leapfile}
91 @item process ID file
92 @tab none
93 @tab @code{-p}
94 @tab @code{pidfile}
95 @item log file
96 @tab system log
97 @tab @code{-l}
98 @tab @code{logfile}
99 @item include file
100 @tab none
101 @tab none
102 @tab @code{includefile}
103 @item statistics path
104 @tab @code{/var/NTP}
105 @tab @code{-s}
106 @tab @code{statsdir}
107 @item keys path
108 @tab @code{/usr/local/etc}
109 @tab @code{-k}
110 @tab @code{keysdir}
111 @end multitable
112
113 @node Internal Commands, Control Message Commands, Usage, Top
114 @comment  node-name,  next,  previous,  up
115 @section Internal Commands
116
117 Interactive format commands consist of a keyword followed by zero to four arguments.  Only enough characters of the full keyword to uniquely identify the command need be typed.  The output of a command is normally sent to the standard output, but optionally the output of individual commands may be sent to a file by appending a @code{>}, followed by a file name, to the command line.  A number of interactive format commands are executed entirely within the @code{ntpq} program itself and do not result in NTP mode-6 requests being sent to a server.  These are described following.
118
119 @table @code
120
121 @item @anchor{help} @code{? [}@kbd{command_keyword}@code{]}
122 @itemx @code{help [}@kbd{command_keyword}@code{]}
123 A @code{?} by itself will print a list of all the command keywords known to @code{ntpq}.  A @code{?} followed by a command keyword will print function and usage information about the command.
124
125 @item @anchor{addvars} >@code{addvars @kbd{name} [ = @kbd{value}] [...]}
126 @itemx @code{rmvars @kbd{name} [...]}
127 @itemx @code{clearvars}</dt>
128 The arguments to these commands consist of a list of items of the form
129 @code{@kbd{name} = @kbd{value}}, where the @code{= @kbd{value}} is ignored,
130 and can be omitted in read requests.
131 @code{ntpq} maintains an internal list in which data to be included
132 in control messages can be assembled, and sent using the @code{readlist}
133 and @code{writelist} commands described below.
134 The @code{addvars} command allows variables and optional values
135 to be added to the list.
136 If more than one variable is to be added
137 the list should be comma-separated and not contain white space.
138 The @code{rmvars} command can be used to remove individual variables
139 from the list,
140 while the @code{clearlist} command removes all variables from the list.
141
142 @item @anchor{cooked} @code{cooked}
143 Display server messages in prettyprint format.
144
145 @item @anchor{debug} @code{debug more | less | off}
146 Turns internal query program debugging on and off.
147
148 @item @anchor{delay} @code{delay @kbd{milliseconds}}
149 Specify a time interval to be added to timestamps included in requests which require authentication.  This is used to enable (unreliable) server reconfiguration over long delay network paths or between machines whose clocks are unsynchronized.  Actually the server does not now require timestamps in authenticated requests, so this command may be obsolete.
150
151 @item @anchor{host} @code{host @kbd{name}}
152 Set the host to which future queries will be sent.
153 The name may be either a DNS name or a numeric address.
154
155 @item @anchor{hostnames} @code{hostnames [yes | no]}
156 If @code{yes} is specified, host names are printed in information displays.
157 If @code{no} is specified, numeric addresses are printed instead.
158 The default is @code{yes},
159 unless modified using the command line @code{-n} switch.
160
161 @item @anchor{keyid} @code{keyid @kbd{keyid}}
162 This command specifies the key number to be used
163 to authenticate configuration requests.
164 This must correspond to a key ID configured in @code{ntp.conf} for this purpose.
165
166 @item @anchor{keytype} @code{keytype}
167 Specify the digest algorithm to use for authenticated requests,
168 with default @code{MD5}.
169 If the OpenSSL library is installed,
170 digest can be be any message digest algorithm supported by the library.
171 The current selections are: @code{AES128CMAC}, @code{MD2}, @code{MD4}, @code{MD5}, @code{MDC2}, @code{RIPEMD160}, @code{SHA} and @code{SHA1}.
172
173 @item @anchor{ntpversion} @code{ntpversion 1 | 2 | 3 | 4}
174 Sets the NTP version number which @code{ntpq} claims in packets.
175 Defaults to 2.
176 Note that mode-6 control messages (and modes, for that matter)
177 didn't exist in NTP version 1.
178
179 @item @anchor{passwd} @code{passwd}
180 This command prompts for a password to authenticate requests.
181 The password must correspond to the key ID configured in @code{ntp.conf} for this purpose.
182
183 @item @anchor{quit} @code{quit}
184 Exit @code{ntpq}.
185
186 @item @anchor{raw} @code{raw}
187 Display server messages as received and without reformatting.
188
189 @item @anchor{timeout} @code{timeout @kbd{millseconds}}
190 Specify a timeout period for responses to server queries.
191 The default is about 5000 milliseconds.
192 Note that since @code{ntpq} retries each query once after a timeout
193 the total waiting time for a timeout will be twice the timeout value set.
194
195 @end table
196
197 @node Control Message Commands, Status Words and Kiss Codes, Internal Commands, Top
198 @comment  node-name,  next,  previous,  up
199 @section Control Message Commands
200
201 Association IDs are used to identify system, peer and clock variables.
202 System variables are assigned an association ID of zero and system name space,
203 while each association is assigned a nonzero association ID and peer namespace.
204 Most control commands send a single mode-6 message to the server
205 and expect a single response message.
206 The exceptions are the @code{peers} command,
207 which sends a series of messages,
208 and the @code{mreadlist} and @code{mreadvar} commands,
209 which iterate over a range of associations.
210
211 @anchor{as}
212 @table @code
213 @item @code{associations}
214 Display a list of mobilized associations in the form:
215 @*
216 @code{ind assid status conf reach auth condition last_event cnt}
217
218 @multitable @columnfractions .1 .4
219 @headitem Variable @tab Description
220
221 @item @code{ind}
222 @tab index on this list
223
224 @item @code{assid}
225 @tab association ID
226
227 @item @code{status}
228 @tab @url{decode.html#peer, peer status word}
229
230 @item @code{conf}
231 @tab @code{yes}: persistent, @code{no}: ephemeral
232
233 @item @code{reach}
234 @tab @code{yes}: reachable, @code{no}: unreachable
235
236 @item @code{auth}
237 @tab @code{ok}, @code{yes}, @code{bad} and @code{none}
238
239 @item @code{condition}
240 @tab selection status (see the @code{select} field of the @url{decode.html#peer, peer status word})
241
242 @item @code{last_event}
243 @tab event report (see the @code{event} field of the @url{decode.html#peer, peer status word})
244
245 @item @code{cnt}
246 event count (see the @code{count} field of the @url{decode.html#peer, peer status word})
247
248 @end multitable
249
250 @item @anchor{cv} clockvar @kbd{assocID} [@kbd{name} [ = @kbd{value} [...]] [...]]
251 @itemx cv @kbd{assocID} [@kbd{name} [ = @kbd{value} [...] ][...]]
252 Display a list of @ref{clock,,clock variables} for those associations supporting a reference clock.
253
254 @item @anchor{:config} :config [...]
255 Send the remainder of the command line, including whitespace, to the server
256 as a run-time configuration command in the same format
257 as the configuration file.
258 This command is experimental until further notice and clarification.
259 Authentication is of course required.
260
261 @item @anchor{config-from-file} config-from-file @kbd{filename}
262 Send the each line of @kbd{filename} to the server as
263 run-time configuration commands in the same format as the configuration file.
264 This command is experimental until further notice and clarification.
265 Authentication is required.
266
267 @item @anchor{ifstats} ifstats
268 Display statistics for each local network address.
269 Authentication is required.
270
271 @item @anchor{iostats} iostats
272 Display network and reference clock I/O statistics.
273
274 @item @anchor{kerninfo} kerninfo
275 Display kernel loop and PPS statistics.
276 As with other ntpq output, times are in milliseconds.
277 The precision value displayed is in milliseconds as well,
278 unlike the precision system variable.
279
280 @item @anchor{lassoc} lassociations
281 Perform the same function as the associations command,
282 except display mobilized and unmobilized associations.
283
284 @item @anchor{monstats} monstats
285 Display monitor facility statistics.
286
287 @item @anchor{mrulist} mrulist [limited | kod | mincount=@kbd{count} | laddr=@kbd{localaddr} | sort=@kbd{sortorder} | resany=@kbd{hexmask} | resall=@kbd{hexmask}]
288 Obtain and print traffic counts collected and maintained by
289 the monitor facility.
290 With the exception of @code{sort=@kbd{sortorder}},
291 the options filter the list returned by @code{ntpd}.
292 The @code{limited} and @code{kod} options return only entries
293 representing client addresses from which the last packet received
294 triggered either discarding or a KoD response.
295 The @code{mincount=@kbd{count}} option filters entries representing
296 less than @code{@kbd{count}} packets.
297 The @code{laddr=@kbd{localaddr}} option filters entries for packets
298 received on any local address other than @code{@kbd{localaddr}}.
299 @code{resany=@kbd{hexmask}} and @code{resall=@kbd{hexmask}}
300 filter entries containing none or less than all, respectively,
301 of the bits in @code{@kbd{hexmask}}, which must begin with @code{0x}.
302 @*
303 The @code{@kbd{sortorder}} defaults to @code{lstint} and may be any of
304 @code{addr}, @code{count}, @code{avgint}, @code{lstint}, or
305 any of those preceded by a minus sign (hyphen) to reverse the sort order.
306 The output columns are:
307
308 @multitable @columnfractions .1 .4
309 @headitem Column @tab Description
310
311 @item @code{lstint}
312 @tab
313 Interval in s between the receipt of the most recent packet from this
314 address and the completion of the retrieval of the MRU list by @code{ntpq}
315
316 @item @code{avgint}
317 @tab
318 Average interval in s between packets from this address.
319
320 @item @code{rstr}
321 @tab
322 Restriction flags associated with this address.
323 Most are copied unchanged from the matching @code{restrict} command,
324 however 0x400 (kod) and 0x20 (limited) flags are cleared unless
325 the last packet from this address triggered a rate control response.
326
327 @item @code{r}
328 @tab
329 Rate control indicator, either a period, @code{L} or @code{K} for
330 no rate control response, rate limiting by discarding, or
331 rate limiting with a KoD response, respectively.
332
333 @item @code{m}
334 @tab
335 Packet mode.
336 @item @code{v}
337 @tab
338 Packet version number.
339
340 @item @code{count}
341 @tab
342 Packets received from this address.
343
344 @item @code{rport}
345 @tab
346 Source port of last packet from this address.
347
348 @item @code{remote address}
349 @tab
350 DNS name, numeric address, or address followed by claimed DNS name which
351 could not be verified in parentheses.
352
353 @end multitable
354
355 @item @anchor{mreadvar} @code{mreadvar @kbd{assocID} @kbd{assocID} [ @kbd{variable_name} [ = @kbd{value}[ ... ]}
356 @itemx @anchor{mrv} @code{mrv @kbd{assocID} @kbd{assocID} [ @kbd{variable_name} [ = @kbd{value}[ ... ]}
357 Perform the same function as the @code{readvar} command,
358 except for a range of association IDs.
359 This range is determined from the association list cached by
360 the most recent @code{associations} command.
361
362 @item @anchor{passoc} @code{passociations}
363 Perform the same function as the @code{associations command}, except that
364 it uses previously stored data rather than making a new query.
365
366 @item @anchor{pe} @code{peers}
367 Display a list of peers in the form:
368 @*
369 @code{[tally]remote refid st t when pool reach delay offset jitter}
370
371 @multitable @columnfractions .1 .2
372 @headitem Variable @tab Description
373 @item @code{[tally]}
374 @tab
375 single-character code indicating current value of the @code{select} field
376 of the @url{decode.html#peer, peer status word}.
377
378 @item @code{remote}
379 @tab
380 host name (or IP number) of peer
381
382 @item @code{refid}
383 @tab
384 association ID or @url{decode.html#kiss, kiss code}.
385
386 @item @code{st}
387 @tab
388 stratum
389
390 @item @code{t}
391 @tab
392 @code{u}: unicast or manycast client,
393 @code{b}: broadcast or multicast client,
394 @code{l}: local (reference clock),
395 @code{s}: symmetric (peer),
396 @code{A}: manycast server,
397 @code{B}: broadcast server,
398 @code{M}: multicast server.
399
400 @item @code{when}
401 @tab
402 sec/min/hr since last received packet
403
404 @item @code{poll}
405 @tab
406 poll interval (log(2) s)
407
408 @item @code{reach}
409 @tab
410 reach shift register (octal)
411
412 @item @code{delay}
413 @tab
414 roundtrip delay
415
416 @item @code{offset}
417 @tab
418 offset of server relative to this host
419
420 @item @code{jitter}
421 @tab
422 jitter
423
424 @end multitable
425
426 @item @anchor{rv} readvar @kbd{assocID} @kbd{name} [ = @kbd{value} ] [,...]
427 @itemx rv @kbd{assocID} [ @kbd{name} ] [,...]
428 Display the specified variables.
429 If @code{@kbd{assocID}} is zero,
430 the variables are from the @ref{system, system variables} name space,
431 otherwise they are from the @ref{peer, peer variables} name space.
432 The @kbd{assocID} is required, as the same name can occur in both spaces.
433 If no @kbd{name} is included,
434 all operative variables in the name space are displayed.
435 In this case only, if the @code{@kbd{assocID}} is omitted, it is assumed zero.
436 Multiple names are specified with comma separators and without whitespace.
437 Note that time values are represented in milliseconds and
438 frequency values in parts-per-million (PPM).
439 Some NTP timestamps are represented in the format YYYYMMDDTTTT,
440 where YYYY is the year, MM the month of year, DD the day of month and
441 TTTT the time of day.
442
443 @item @anchor{saveconfig} @code{saveconfig @kbd{filename}}
444 Write the current configuration, including any runtime modifications
445 given with @code{:config} or @code{config-from-file},
446 to the ntpd host's file @kbd{filename}.
447 This command will be rejected by the server unless
448 @url{miscopt.html#saveconfigdir, saveconfigdir}
449 appears in the @code{ntpd} configuration file.
450 @kbd{filename} can use @code{strftime()} format specifiers
451 to substitute the current date and time, for example,
452 @code{saveconfig ntp-%Y%m%d-%H%M%S.conf}.
453 The filename used is stored in system variable @code{savedconfig}.
454 Authentication is required.
455
456 @item @anchor{writevar} writevar @kbd{assocID} @kbd{name} = @kbd{value} [,...]
457 Write the specified variables.
458 If the @code{@kbd{assocID}} is zero, the variables are from the
459 @ref{system, system variables} name space, otherwise they are from the
460 @ref{peer, peer variables} name space.
461 The @code{@kbd{assocID}} is required,
462 as the same name can occur in both spaces.
463
464 @item @anchor{sysinfo} @code{sysinfo}
465 Display operational summary.
466
467 @item @anchor{sysstats} @code{sysstats}
468 Print statistics counters maintained in the protocol module.
469
470 @end table
471
472 @node Status Words and Kiss Codes, System Variables, Control Message Commands, Top
473 @comment  node-name,  next,  previous,  up
474 @section Status Words and Kiss Codes
475
476 The current state of the operating program is shown
477 in a set of status words maintained by the system
478 and each association separately.
479 These words are displayed in the @code{rv} and @code{as} commands
480 both in hexadecimal and decoded short tip strings.
481 The codes, tips and short explanations are on the
482 @url{decode.html, Event Messages and Status Words} page.
483 The page also includes a list of system and peer messages,
484 the code for the latest of which is included in the status word.
485
486 Information resulting from protocol machine state transitions
487 is displayed using an informal set of ASCII strings called
488 @url{decode.html#kiss, kiss codes}.
489 The original purpose was for kiss-o'-death (KoD) packets sent
490 by the server to advise the client of an unusual condition.
491 They are now displayed, when appropriate,
492 in the reference identifier field in various billboards.
493
494 @node System Variables, Peer Variables, Status Words and Kiss Codes, Top
495 @comment  node-name,  next,  previous,  up
496 @section System Variables
497
498 The following system variables appear in the @code{rv} billboard.
499 Not all variables are displayed in some configurations.
500
501 @multitable @columnfractions .1 .2
502 @headitem Variable @tab Description
503
504 @item @code{status}
505 @tab
506 @url{decode.html#sys, system status word}
507
508 @item @code{version}
509 @tab
510 NTP software version and build time
511
512 @item @code{processor}
513 @tab
514 hardware platform and version
515     
516 @item @code{system}
517 @tab
518 operating system and version
519
520 @item @code{leap}
521 @tab
522 leap warning indicator (0-3)
523
524 @item @code{stratum}
525 @tab
526 stratum (1-15)
527
528 @item @code{precision}
529 @tab
530 precision (log(2) s)
531
532 @item @code{rootdelay}
533 @tab
534 total roundtrip delay to the primary reference clock
535
536 @item @code{rootdisp}
537 @tab
538 total dispersion to the primary reference clock
539
540 @item @code{peer}
541 @tab
542 system peer association ID
543
544 @item @code{tc}
545 time constant and poll exponent (log(2) s) (3-17)
546
547 @item @code{mintc}
548 minimum time constant (log(2) s) (3-10)
549
550 @item @code{clock}
551 @tab
552 date and time of day
553
554 @item @code{refid}
555 reference ID or @url{decode.html#kiss, kiss code}
556
557 @item @code{reftime}
558 @tab
559 reference time
560
561 @item @code{offset}
562 @tab
563 combined offset of server relative to this host
564
565 @item @code{sys_jitter}
566 @tab
567 combined system jitter
568
569 @item @code{frequency}
570 @tab
571 frequency offset (PPM) relative to hardware clock
572
573 @item @code{clk_wander}
574 @tab
575 clock frequency wander (PPM)
576
577 @item @code{clk_jitter}
578 @tab
579 clock jitter
580
581 @item @code{tai}
582 @tab
583 TAI-UTC offset (s)
584
585 @item @code{leapsec}
586 @tab
587 NTP seconds when the next leap second is/was inserted
588
589 @item @code{expire}
590 @tab
591 NTP seconds when the NIST leapseconds file expires
592
593 @end multitable
594
595 The jitter and wander statistics are exponentially-weighted RMS averages.
596 The system jitter is defined in the NTPv4 specification;
597 the clock jitter statistic is computed by the clock discipline module.
598
599 When the NTPv4 daemon is compiled with the OpenSSL software library,
600 additional system variables are displayed, including some or all of the
601 following, depending on the particular Autokey dance:
602
603 @multitable @columnfractions .1 .2
604 @headitem Variable @tab Description
605
606 @item @code{host}
607 @tab
608 Autokey host name for this host
609
610 @item @code{ident}
611 @tab
612 Autokey group name for this host
613
614 @item @code{flags}
615 @tab
616 host flags  (see Autokey specification)
617
618 @item @code{digest}
619 @tab
620 OpenSSL message digest algorithm
621
622 @item @code{signature}
623 @tab
624 OpenSSL digest/signature scheme
625
626 @item @code{update}
627 @tab
628 NTP seconds at last signature update
629
630 @item @code{cert}
631 @tab
632 certificate subject, issuer and certificate flags
633
634 @item @code{until}
635 @tab
636 NTP seconds when the certificate expires
637
638 @end multitable
639
640 @node Peer Variables, Clock Variables, System Variables, Top
641 @comment  node-name,  next,  previous,  up
642 @section Peer Variables
643
644 The following peer variables appear in the @code{rv} billboard
645 for each association.
646 Not all variables are displayed in some configurations.
647
648 @multitable @columnfractions .1 .2
649 @headitem Variable @tab Description
650
651 @item @code{associd}
652 @tab
653 association ID
654
655 @item @code{status}
656 @tab
657 @url{decode.html#peer, peer status word}
658
659 @item @code{srcadr}
660 @itemx @code{srcport}
661 @tab
662 source (remote) IP address and port
663
664 @item @code{dstadr}
665 @itemx @code{dstport}
666 @tab
667 destination (local) IP address and port
668
669 @item @code{leap}
670 @tab
671 leap indicator (0-3)
672
673 @item @code{stratum}
674 @tab
675 stratum (0-15)
676
677 @item @code{precision}
678 @tab
679 precision (log(2) s)
680
681 @item @code{rootdelay}
682 @tab
683 total roundtrip delay to the primary reference clock
684
685 @item @code{rootdisp}
686 @tab total root dispersion to the primary reference clock
687
688 @item @code{refid}
689 @tab
690 reference ID or @url{decode.html#kiss, kiss code}
691
692 @item @code{reftime}
693 @tab
694 reference time
695
696 @item @code{reach}
697 @tab
698 reach register (octal)
699
700 @item @code{unreach}
701 @tab
702 unreach counter
703
704 @item @code{hmode}
705 @tab
706 host mode (1-6)
707
708 @item @code{pmode}
709 @tab
710 peer mode (1-5)
711
712 @item @code{hpoll}
713 @tab
714 host poll exponent (log(2) s) (3-17)
715 @item @code{ppoll}
716 @tab
717 peer poll exponent (log(2) s) (3-17)
718
719 @item @code{headway}
720 @tab
721 headway (see @url{rate.html, Rate Management and the Kiss-o'-Death Packet})
722
723 @item @code{flash}
724 @tab
725 @url{decode.html#flash, flash status word}
726
727 @item @code{offset}
728 @tab
729 filter offset
730
731 @item @code{delay}
732 @tab
733 filter delay
734
735 @item @code{dispersion}
736 @tab
737 filter dispersion
738
739 @item @code{jitter}
740 @tab
741 filter jitter
742
743 @item @code{ident}
744 @tab
745 Autokey group name for this association
746
747 @item @code{bias}
748 @tab
749 unicast/broadcast bias
750
751 @item @code{xleave}
752 @tab
753 interleave delay (see @url{xleave.html, NTP Interleaved Modes})
754
755 @end multitable
756
757 The bias variable is calculated when the first broadcast packet is received
758 after the calibration volley.  It represents the offset of the broadcast
759 subgraph relative to the unicast subgraph.  The xleave variable appears
760 only the interleaved symmetric and interleaved modes.  It represents
761 the internal queuing, buffering and transmission delays for the preceding
762 packet.
763
764 When the NTPv4 daemon is compiled with the OpenSSL software library,
765 additional peer variables are displayed, including the following:
766
767 @multitable @columnfractions .1 .2
768 @headitem Variable @tab Description
769
770 @item @code{flags}
771 @tab
772 peer flags (see Autokey specification)
773
774 @item @code{host}
775 @tab
776 Autokey server name
777
778 @item @code{flags}
779 @tab
780 peer flags (see Autokey specification)
781
782 @item @code{signature}
783 @tab
784 OpenSSL digest/signature scheme
785
786 @item @code{initsequence}
787 @tab
788 initial key ID
789
790 @item @code{initkey}
791 @tab
792 initial key index
793
794 @item @code{timestamp}
795 @tab
796 Autokey signature timestamp
797
798 @end multitable
799
800 @node Clock Variables,  , Peer Variables, Top
801 @comment  node-name,  next,  previous,  up
802 @section Clock Variables
803
804 The following clock variables appear in the @code{cv} billboard for each association with a reference clock.  Not all variables are displayed in some configurations.
805
806 @multitable @columnfractions .1 .2
807 @headitem Variable @tab Description
808 @item @code{associd}
809 @tab association ID
810 @item @code{status}
811 @tab @url{decode.html#clock, clock status word}
812 @item @code{device}
813 @tab device description
814 @item @code{timecode}
815 @tab ASCII time code string (specific to device)
816 @item @code{poll}
817 @tab poll messages sent
818 @item @code{noreply}
819 @tab no reply
820 @item @code{badformat}
821 @tab bad format
822 @item @code{baddata}
823 @tab bad date or time
824 @item @code{fudgetime1}
825 @tab fudge time 1
826 @item @code{fudgetime2}
827 @tab fudge time 2
828 @item @code{stratum}
829 @tab driver stratum
830 @item @code{refid}
831 @tab driver reference ID
832 @item @code{flags}
833 @tab driver flags
834 @end multitable