xref: /freebsd/contrib/ntp/ntpq/ntpq.texi (revision 7847e04111f2c2b06b36f6d19a46d78814d7836d)
12b15cb3dSCy Schubert\input texinfo    @c -*-texinfo-*-
22b15cb3dSCy Schubert@c %**start of header
32b15cb3dSCy Schubert@setfilename ntpq.info
42b15cb3dSCy Schubert@settitle ntpq: Network Time Protocol Query User's Manual
52b15cb3dSCy Schubert@include ../sntp/include/version.texi
62b15cb3dSCy Schubert@paragraphindent 2
72b15cb3dSCy Schubert@c %**end of header
82b15cb3dSCy Schubert
92b15cb3dSCy Schubert@ifinfo
102b15cb3dSCy SchubertThis file documents the use of the NTP Project's ntpq, a program for
112b15cb3dSCy Schubertquerying the state of an NTP server.
122b15cb3dSCy Schubert@end ifinfo
132b15cb3dSCy Schubert
142b15cb3dSCy Schubert@direntry
152b15cb3dSCy Schubert* ntpq: (ntpq).                               NTP Query program
162b15cb3dSCy Schubert@end direntry
172b15cb3dSCy Schubert
182b15cb3dSCy Schubert@titlepage
192b15cb3dSCy Schubert@title ntpq: Network Time Protocol Query User's Manual
202b15cb3dSCy Schubert@subtitle ntpq, version @value{VERSION}, @value{UPDATED}
212b15cb3dSCy Schubert@c @author Max @email{foo@ntp.org}
222b15cb3dSCy Schubert@end titlepage
232b15cb3dSCy Schubert
242b15cb3dSCy Schubert@c @page
252b15cb3dSCy Schubert@c @vskip 0pt plus 1filll
262b15cb3dSCy Schubert
272b15cb3dSCy Schubert@shortcontents
282b15cb3dSCy Schubert
292b15cb3dSCy Schubert@node Top, ntpq Description, (dir), (dir)
302b15cb3dSCy Schubert@top ntpq: Network Time Protocol Query User Manual
312b15cb3dSCy Schubert
322b15cb3dSCy SchubertThe @code{ntpq} utility program is used to
332b15cb3dSCy Schubertmonitor the operational status
342b15cb3dSCy Schubertand determine the performance of
352b15cb3dSCy Schubert@code{ntpd}, the NTP daemon.
362b15cb3dSCy Schubert
372b15cb3dSCy SchubertThis document applies to version @value{VERSION} of @code{ntpq}.
382b15cb3dSCy Schubert
392b15cb3dSCy Schubert@menu
402b15cb3dSCy Schubert* ntpq Description::
412b15cb3dSCy Schubert* ntpq Invocation::             Invoking ntpq
422b15cb3dSCy Schubert* Usage::
432b15cb3dSCy Schubert* Internal Commands::
442b15cb3dSCy Schubert* Control Message Commands::
452b15cb3dSCy Schubert* Status Words and Kiss Codes::
462b15cb3dSCy Schubert* System Variables::
472b15cb3dSCy Schubert* Peer Variables::
482b15cb3dSCy Schubert* Clock Variables::
492b15cb3dSCy Schubert@end menu
502b15cb3dSCy Schubert
512b15cb3dSCy Schubert@node ntpq Description, Usage, Top, Top
522b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
532b15cb3dSCy Schubert@section Description
542b15cb3dSCy Schubert
552b15cb3dSCy SchubertThe @code{ntpq} utility program is used to monitor NTP daemon @code{ntpd} operations and determine performance.
562b15cb3dSCy SchubertIt uses the standard NTP mode 6 control message formats defined in
572b15cb3dSCy SchubertAppendix B of the NTPv3 specification RFC1305.
582b15cb3dSCy SchubertThe same formats are used in NTPv4, although some of the variable names have changed and new ones added.
592b15cb3dSCy SchubertThe description on this page is for the NTPv4 variables.
602b15cb3dSCy Schubert
612b15cb3dSCy SchubertThe 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.
622b15cb3dSCy Schubert
632b15cb3dSCy SchubertIf 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.
642b15cb3dSCy Schubert
652b15cb3dSCy Schubert@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.
662b15cb3dSCy Schubert
672b15cb3dSCy SchubertNote 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.
682b15cb3dSCy Schubert
692b15cb3dSCy SchubertFor examples and usage, see the @url{debug.html, NTP Debugging Techniques} page.
702b15cb3dSCy Schubert
712b15cb3dSCy Schubert@include invoke-ntpq.texi
722b15cb3dSCy Schubert
732b15cb3dSCy Schubert@node Usage, Internal Commands, ntpq Description, Top
742b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
752b15cb3dSCy Schubert@section Usage
762b15cb3dSCy Schubert
772b15cb3dSCy Schubert@multitable @columnfractions .23 .23 .05 .15
782b15cb3dSCy Schubert@headitem What @tab Default @tab Flag @tab Option
792b15cb3dSCy Schubert@item configuration file
802b15cb3dSCy Schubert@tab @code{/etc/ntp.conf}
812b15cb3dSCy Schubert@tab @code{-c}
822b15cb3dSCy Schubert@tab @code{conffile}
832b15cb3dSCy Schubert@item frequency file
842b15cb3dSCy Schubert@tab none
852b15cb3dSCy Schubert@tab @code{-f}
862b15cb3dSCy Schubert@tab @code{driftfile}
872b15cb3dSCy Schubert@item leapseconds file
882b15cb3dSCy Schubert@tab none
892b15cb3dSCy Schubert@tab
902b15cb3dSCy Schubert@tab @code{leapfile}
912b15cb3dSCy Schubert@item process ID file
922b15cb3dSCy Schubert@tab none
932b15cb3dSCy Schubert@tab @code{-p}
942b15cb3dSCy Schubert@tab @code{pidfile}
952b15cb3dSCy Schubert@item log file
962b15cb3dSCy Schubert@tab system log
972b15cb3dSCy Schubert@tab @code{-l}
982b15cb3dSCy Schubert@tab @code{logfile}
992b15cb3dSCy Schubert@item include file
1002b15cb3dSCy Schubert@tab none
1012b15cb3dSCy Schubert@tab none
1022b15cb3dSCy Schubert@tab @code{includefile}
1032b15cb3dSCy Schubert@item statistics path
1042b15cb3dSCy Schubert@tab @code{/var/NTP}
1052b15cb3dSCy Schubert@tab @code{-s}
1062b15cb3dSCy Schubert@tab @code{statsdir}
1072b15cb3dSCy Schubert@item keys path
1082b15cb3dSCy Schubert@tab @code{/usr/local/etc}
1092b15cb3dSCy Schubert@tab @code{-k}
1102b15cb3dSCy Schubert@tab @code{keysdir}
1112b15cb3dSCy Schubert@end multitable
1122b15cb3dSCy Schubert
1132b15cb3dSCy Schubert@node Internal Commands, Control Message Commands, Usage, Top
1142b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
1152b15cb3dSCy Schubert@section Internal Commands
1162b15cb3dSCy Schubert
1172b15cb3dSCy SchubertInteractive 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.
1182b15cb3dSCy Schubert
1192b15cb3dSCy Schubert@table @code
1202b15cb3dSCy Schubert
1212b15cb3dSCy Schubert@item @anchor{help} @code{? [}@kbd{command_keyword}@code{]}
1222b15cb3dSCy Schubert@itemx @code{help [}@kbd{command_keyword}@code{]}
1232b15cb3dSCy SchubertA @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.
1242b15cb3dSCy Schubert
1252b15cb3dSCy Schubert@item @anchor{addvars} >@code{addvars @kbd{name} [ = @kbd{value}] [...]}
1262b15cb3dSCy Schubert@itemx @code{rmvars @kbd{name} [...]}
1272b15cb3dSCy Schubert@itemx @code{clearvars}</dt>
1282b15cb3dSCy SchubertThe arguments to these commands consist of a list of items of the form
1292b15cb3dSCy Schubert@code{@kbd{name} = @kbd{value}}, where the @code{= @kbd{value}} is ignored,
1302b15cb3dSCy Schubertand can be omitted in read requests.
1312b15cb3dSCy Schubert@code{ntpq} maintains an internal list in which data to be included
1322b15cb3dSCy Schubertin control messages can be assembled, and sent using the @code{readlist}
1332b15cb3dSCy Schubertand @code{writelist} commands described below.
1342b15cb3dSCy SchubertThe @code{addvars} command allows variables and optional values
1352b15cb3dSCy Schubertto be added to the list.
1362b15cb3dSCy SchubertIf more than one variable is to be added
1372b15cb3dSCy Schubertthe list should be comma-separated and not contain white space.
1382b15cb3dSCy SchubertThe @code{rmvars} command can be used to remove individual variables
1392b15cb3dSCy Schubertfrom the list,
1402b15cb3dSCy Schubertwhile the @code{clearlist} command removes all variables from the list.
1412b15cb3dSCy Schubert
1422b15cb3dSCy Schubert@item @anchor{cooked} @code{cooked}
1432b15cb3dSCy SchubertDisplay server messages in prettyprint format.
1442b15cb3dSCy Schubert
1452b15cb3dSCy Schubert@item @anchor{debug} @code{debug more | less | off}
1462b15cb3dSCy SchubertTurns internal query program debugging on and off.
1472b15cb3dSCy Schubert
1482b15cb3dSCy Schubert@item @anchor{delay} @code{delay @kbd{milliseconds}}
1492b15cb3dSCy SchubertSpecify 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.
1502b15cb3dSCy Schubert
1512b15cb3dSCy Schubert@item @anchor{host} @code{host @kbd{name}}
1522b15cb3dSCy SchubertSet the host to which future queries will be sent.
1532b15cb3dSCy SchubertThe name may be either a DNS name or a numeric address.
1542b15cb3dSCy Schubert
1552b15cb3dSCy Schubert@item @anchor{hostnames} @code{hostnames [yes | no]}
1562b15cb3dSCy SchubertIf @code{yes} is specified, host names are printed in information displays.
1572b15cb3dSCy SchubertIf @code{no} is specified, numeric addresses are printed instead.
1582b15cb3dSCy SchubertThe default is @code{yes},
1592b15cb3dSCy Schubertunless modified using the command line @code{-n} switch.
1602b15cb3dSCy Schubert
1612b15cb3dSCy Schubert@item @anchor{keyid} @code{keyid @kbd{keyid}}
1622b15cb3dSCy SchubertThis command specifies the key number to be used
1632b15cb3dSCy Schubertto authenticate configuration requests.
1642b15cb3dSCy SchubertThis must correspond to a key ID configured in @code{ntp.conf} for this purpose.
1652b15cb3dSCy Schubert
1662b15cb3dSCy Schubert@item @anchor{keytype} @code{keytype}
1672b15cb3dSCy SchubertSpecify the digest algorithm to use for authenticated requests,
1682b15cb3dSCy Schubertwith default @code{MD5}.
1692b15cb3dSCy SchubertIf the OpenSSL library is installed,
1702b15cb3dSCy Schubertdigest can be be any message digest algorithm supported by the library.
17109100258SXin LIThe current selections are: @code{AES128CMAC}, @code{MD2}, @code{MD4}, @code{MD5}, @code{MDC2}, @code{RIPEMD160}, @code{SHA} and @code{SHA1}.
1722b15cb3dSCy Schubert
1732b15cb3dSCy Schubert@item @anchor{ntpversion} @code{ntpversion 1 | 2 | 3 | 4}
1742b15cb3dSCy SchubertSets the NTP version number which @code{ntpq} claims in packets.
1752b15cb3dSCy SchubertDefaults to 2.
1762b15cb3dSCy SchubertNote that mode-6 control messages (and modes, for that matter)
1772b15cb3dSCy Schubertdidn't exist in NTP version 1.
1782b15cb3dSCy Schubert
1792b15cb3dSCy Schubert@item @anchor{passwd} @code{passwd}
1802b15cb3dSCy SchubertThis command prompts for a password to authenticate requests.
1812b15cb3dSCy SchubertThe password must correspond to the key ID configured in @code{ntp.conf} for this purpose.
1822b15cb3dSCy Schubert
1832b15cb3dSCy Schubert@item @anchor{quit} @code{quit}
1842b15cb3dSCy SchubertExit @code{ntpq}.
1852b15cb3dSCy Schubert
1862b15cb3dSCy Schubert@item @anchor{raw} @code{raw}
1872b15cb3dSCy SchubertDisplay server messages as received and without reformatting.
1882b15cb3dSCy Schubert
189*4e1ef62aSXin LI@item @anchor{timeout} @code{timeout @kbd{milliseconds}}
1902b15cb3dSCy SchubertSpecify a timeout period for responses to server queries.
1912b15cb3dSCy SchubertThe default is about 5000 milliseconds.
1922b15cb3dSCy SchubertNote that since @code{ntpq} retries each query once after a timeout
1932b15cb3dSCy Schubertthe total waiting time for a timeout will be twice the timeout value set.
1942b15cb3dSCy Schubert
1952b15cb3dSCy Schubert@end table
1962b15cb3dSCy Schubert
1972b15cb3dSCy Schubert@node Control Message Commands, Status Words and Kiss Codes, Internal Commands, Top
1982b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
1992b15cb3dSCy Schubert@section Control Message Commands
2002b15cb3dSCy Schubert
2012b15cb3dSCy SchubertAssociation IDs are used to identify system, peer and clock variables.
2022b15cb3dSCy SchubertSystem variables are assigned an association ID of zero and system name space,
2032b15cb3dSCy Schubertwhile each association is assigned a nonzero association ID and peer namespace.
2042b15cb3dSCy SchubertMost control commands send a single mode-6 message to the server
2052b15cb3dSCy Schubertand expect a single response message.
2062b15cb3dSCy SchubertThe exceptions are the @code{peers} command,
2072b15cb3dSCy Schubertwhich sends a series of messages,
2082b15cb3dSCy Schubertand the @code{mreadlist} and @code{mreadvar} commands,
2092b15cb3dSCy Schubertwhich iterate over a range of associations.
2102b15cb3dSCy Schubert
2112b15cb3dSCy Schubert@anchor{as}
2122b15cb3dSCy Schubert@table @code
2132b15cb3dSCy Schubert@item @code{associations}
2142b15cb3dSCy SchubertDisplay a list of mobilized associations in the form:
2152b15cb3dSCy Schubert@*
2162b15cb3dSCy Schubert@code{ind assid status conf reach auth condition last_event cnt}
2172b15cb3dSCy Schubert
2182b15cb3dSCy Schubert@multitable @columnfractions .1 .4
2192b15cb3dSCy Schubert@headitem Variable @tab Description
2202b15cb3dSCy Schubert
2212b15cb3dSCy Schubert@item @code{ind}
2222b15cb3dSCy Schubert@tab index on this list
2232b15cb3dSCy Schubert
2242b15cb3dSCy Schubert@item @code{assid}
2252b15cb3dSCy Schubert@tab association ID
2262b15cb3dSCy Schubert
2272b15cb3dSCy Schubert@item @code{status}
2282b15cb3dSCy Schubert@tab @url{decode.html#peer, peer status word}
2292b15cb3dSCy Schubert
2302b15cb3dSCy Schubert@item @code{conf}
2312b15cb3dSCy Schubert@tab @code{yes}: persistent, @code{no}: ephemeral
2322b15cb3dSCy Schubert
2332b15cb3dSCy Schubert@item @code{reach}
2342b15cb3dSCy Schubert@tab @code{yes}: reachable, @code{no}: unreachable
2352b15cb3dSCy Schubert
2362b15cb3dSCy Schubert@item @code{auth}
2372b15cb3dSCy Schubert@tab @code{ok}, @code{yes}, @code{bad} and @code{none}
2382b15cb3dSCy Schubert
2392b15cb3dSCy Schubert@item @code{condition}
2402b15cb3dSCy Schubert@tab selection status (see the @code{select} field of the @url{decode.html#peer, peer status word})
2412b15cb3dSCy Schubert
2422b15cb3dSCy Schubert@item @code{last_event}
2432b15cb3dSCy Schubert@tab event report (see the @code{event} field of the @url{decode.html#peer, peer status word})
2442b15cb3dSCy Schubert
2452b15cb3dSCy Schubert@item @code{cnt}
2462b15cb3dSCy Schubertevent count (see the @code{count} field of the @url{decode.html#peer, peer status word})
2472b15cb3dSCy Schubert
2482b15cb3dSCy Schubert@end multitable
2492b15cb3dSCy Schubert
2502b15cb3dSCy Schubert@item @anchor{cv} clockvar @kbd{assocID} [@kbd{name} [ = @kbd{value} [...]] [...]]
2512b15cb3dSCy Schubert@itemx cv @kbd{assocID} [@kbd{name} [ = @kbd{value} [...] ][...]]
2522b15cb3dSCy SchubertDisplay a list of @ref{clock,,clock variables} for those associations supporting a reference clock.
2532b15cb3dSCy Schubert
2542b15cb3dSCy Schubert@item @anchor{:config} :config [...]
2552b15cb3dSCy SchubertSend the remainder of the command line, including whitespace, to the server
2562b15cb3dSCy Schubertas a run-time configuration command in the same format
2572b15cb3dSCy Schubertas the configuration file.
2582b15cb3dSCy SchubertThis command is experimental until further notice and clarification.
2592b15cb3dSCy SchubertAuthentication is of course required.
2602b15cb3dSCy Schubert
2612b15cb3dSCy Schubert@item @anchor{config-from-file} config-from-file @kbd{filename}
2622b15cb3dSCy SchubertSend the each line of @kbd{filename} to the server as
2632b15cb3dSCy Schubertrun-time configuration commands in the same format as the configuration file.
2642b15cb3dSCy SchubertThis command is experimental until further notice and clarification.
2652b15cb3dSCy SchubertAuthentication is required.
2662b15cb3dSCy Schubert
2672b15cb3dSCy Schubert@item @anchor{ifstats} ifstats
2682b15cb3dSCy SchubertDisplay statistics for each local network address.
2692b15cb3dSCy SchubertAuthentication is required.
2702b15cb3dSCy Schubert
2712b15cb3dSCy Schubert@item @anchor{iostats} iostats
2722b15cb3dSCy SchubertDisplay network and reference clock I/O statistics.
2732b15cb3dSCy Schubert
2742b15cb3dSCy Schubert@item @anchor{kerninfo} kerninfo
2752b15cb3dSCy SchubertDisplay kernel loop and PPS statistics.
2762b15cb3dSCy SchubertAs with other ntpq output, times are in milliseconds.
2772b15cb3dSCy SchubertThe precision value displayed is in milliseconds as well,
2782b15cb3dSCy Schubertunlike the precision system variable.
2792b15cb3dSCy Schubert
2802b15cb3dSCy Schubert@item @anchor{lassoc} lassociations
2812b15cb3dSCy SchubertPerform the same function as the associations command,
2822b15cb3dSCy Schubertexcept display mobilized and unmobilized associations.
2832b15cb3dSCy Schubert
2842b15cb3dSCy Schubert@item @anchor{monstats} monstats
2852b15cb3dSCy SchubertDisplay monitor facility statistics.
2862b15cb3dSCy Schubert
2872b15cb3dSCy Schubert@item @anchor{mrulist} mrulist [limited | kod | mincount=@kbd{count} | laddr=@kbd{localaddr} | sort=@kbd{sortorder} | resany=@kbd{hexmask} | resall=@kbd{hexmask}]
2882b15cb3dSCy SchubertObtain and print traffic counts collected and maintained by
2892b15cb3dSCy Schubertthe monitor facility.
2902b15cb3dSCy SchubertWith the exception of @code{sort=@kbd{sortorder}},
2912b15cb3dSCy Schubertthe options filter the list returned by @code{ntpd}.
2922b15cb3dSCy SchubertThe @code{limited} and @code{kod} options return only entries
2932b15cb3dSCy Schubertrepresenting client addresses from which the last packet received
2942b15cb3dSCy Schuberttriggered either discarding or a KoD response.
2952b15cb3dSCy SchubertThe @code{mincount=@kbd{count}} option filters entries representing
2962b15cb3dSCy Schubertless than @code{@kbd{count}} packets.
2972b15cb3dSCy SchubertThe @code{laddr=@kbd{localaddr}} option filters entries for packets
2982b15cb3dSCy Schubertreceived on any local address other than @code{@kbd{localaddr}}.
2992b15cb3dSCy Schubert@code{resany=@kbd{hexmask}} and @code{resall=@kbd{hexmask}}
3002b15cb3dSCy Schubertfilter entries containing none or less than all, respectively,
3012b15cb3dSCy Schubertof the bits in @code{@kbd{hexmask}}, which must begin with @code{0x}.
3022b15cb3dSCy Schubert@*
3032b15cb3dSCy SchubertThe @code{@kbd{sortorder}} defaults to @code{lstint} and may be any of
3042b15cb3dSCy Schubert@code{addr}, @code{count}, @code{avgint}, @code{lstint}, or
3052b15cb3dSCy Schubertany of those preceded by a minus sign (hyphen) to reverse the sort order.
3062b15cb3dSCy SchubertThe output columns are:
3072b15cb3dSCy Schubert
3082b15cb3dSCy Schubert@multitable @columnfractions .1 .4
3092b15cb3dSCy Schubert@headitem Column @tab Description
3102b15cb3dSCy Schubert
3112b15cb3dSCy Schubert@item @code{lstint}
3122b15cb3dSCy Schubert@tab
3132b15cb3dSCy SchubertInterval in s between the receipt of the most recent packet from this
3142b15cb3dSCy Schubertaddress and the completion of the retrieval of the MRU list by @code{ntpq}
3152b15cb3dSCy Schubert
3162b15cb3dSCy Schubert@item @code{avgint}
3172b15cb3dSCy Schubert@tab
3182b15cb3dSCy SchubertAverage interval in s between packets from this address.
3192b15cb3dSCy Schubert
3202b15cb3dSCy Schubert@item @code{rstr}
3212b15cb3dSCy Schubert@tab
3222b15cb3dSCy SchubertRestriction flags associated with this address.
3232b15cb3dSCy SchubertMost are copied unchanged from the matching @code{restrict} command,
3242b15cb3dSCy Schuberthowever 0x400 (kod) and 0x20 (limited) flags are cleared unless
3252b15cb3dSCy Schubertthe last packet from this address triggered a rate control response.
3262b15cb3dSCy Schubert
3272b15cb3dSCy Schubert@item @code{r}
3282b15cb3dSCy Schubert@tab
3292b15cb3dSCy SchubertRate control indicator, either a period, @code{L} or @code{K} for
3302b15cb3dSCy Schubertno rate control response, rate limiting by discarding, or
3312b15cb3dSCy Schubertrate limiting with a KoD response, respectively.
3322b15cb3dSCy Schubert
3332b15cb3dSCy Schubert@item @code{m}
3342b15cb3dSCy Schubert@tab
3352b15cb3dSCy SchubertPacket mode.
3362b15cb3dSCy Schubert@item @code{v}
3372b15cb3dSCy Schubert@tab
3382b15cb3dSCy SchubertPacket version number.
3392b15cb3dSCy Schubert
3402b15cb3dSCy Schubert@item @code{count}
3412b15cb3dSCy Schubert@tab
3422b15cb3dSCy SchubertPackets received from this address.
3432b15cb3dSCy Schubert
3442b15cb3dSCy Schubert@item @code{rport}
3452b15cb3dSCy Schubert@tab
3462b15cb3dSCy SchubertSource port of last packet from this address.
3472b15cb3dSCy Schubert
3482b15cb3dSCy Schubert@item @code{remote address}
3492b15cb3dSCy Schubert@tab
3502b15cb3dSCy SchubertDNS name, numeric address, or address followed by claimed DNS name which
3512b15cb3dSCy Schubertcould not be verified in parentheses.
3522b15cb3dSCy Schubert
3532b15cb3dSCy Schubert@end multitable
3542b15cb3dSCy Schubert
3552b15cb3dSCy Schubert@item @anchor{mreadvar} @code{mreadvar @kbd{assocID} @kbd{assocID} [ @kbd{variable_name} [ = @kbd{value}[ ... ]}
3562b15cb3dSCy Schubert@itemx @anchor{mrv} @code{mrv @kbd{assocID} @kbd{assocID} [ @kbd{variable_name} [ = @kbd{value}[ ... ]}
3572b15cb3dSCy SchubertPerform the same function as the @code{readvar} command,
3582b15cb3dSCy Schubertexcept for a range of association IDs.
3592b15cb3dSCy SchubertThis range is determined from the association list cached by
3602b15cb3dSCy Schubertthe most recent @code{associations} command.
3612b15cb3dSCy Schubert
3622b15cb3dSCy Schubert@item @anchor{passoc} @code{passociations}
3632b15cb3dSCy SchubertPerform the same function as the @code{associations command}, except that
3642b15cb3dSCy Schubertit uses previously stored data rather than making a new query.
3652b15cb3dSCy Schubert
3662b15cb3dSCy Schubert@item @anchor{pe} @code{peers}
3672b15cb3dSCy SchubertDisplay a list of peers in the form:
3682b15cb3dSCy Schubert@*
3692b15cb3dSCy Schubert@code{[tally]remote refid st t when pool reach delay offset jitter}
3702b15cb3dSCy Schubert
3712b15cb3dSCy Schubert@multitable @columnfractions .1 .2
3722b15cb3dSCy Schubert@headitem Variable @tab Description
3732b15cb3dSCy Schubert@item @code{[tally]}
3742b15cb3dSCy Schubert@tab
3752b15cb3dSCy Schubertsingle-character code indicating current value of the @code{select} field
3762b15cb3dSCy Schubertof the @url{decode.html#peer, peer status word}.
3772b15cb3dSCy Schubert
3782b15cb3dSCy Schubert@item @code{remote}
3792b15cb3dSCy Schubert@tab
3802b15cb3dSCy Schuberthost name (or IP number) of peer
3812b15cb3dSCy Schubert
3822b15cb3dSCy Schubert@item @code{refid}
3832b15cb3dSCy Schubert@tab
3842b15cb3dSCy Schubertassociation ID or @url{decode.html#kiss, kiss code}.
3852b15cb3dSCy Schubert
3862b15cb3dSCy Schubert@item @code{st}
3872b15cb3dSCy Schubert@tab
3882b15cb3dSCy Schubertstratum
3892b15cb3dSCy Schubert
3902b15cb3dSCy Schubert@item @code{t}
3912b15cb3dSCy Schubert@tab
3922b15cb3dSCy Schubert@code{u}: unicast or manycast client,
3932b15cb3dSCy Schubert@code{b}: broadcast or multicast client,
3942b15cb3dSCy Schubert@code{l}: local (reference clock),
3952b15cb3dSCy Schubert@code{s}: symmetric (peer),
3962b15cb3dSCy Schubert@code{A}: manycast server,
3972b15cb3dSCy Schubert@code{B}: broadcast server,
3982b15cb3dSCy Schubert@code{M}: multicast server.
3992b15cb3dSCy Schubert
4002b15cb3dSCy Schubert@item @code{when}
4012b15cb3dSCy Schubert@tab
4022b15cb3dSCy Schubertsec/min/hr since last received packet
4032b15cb3dSCy Schubert
4042b15cb3dSCy Schubert@item @code{poll}
4052b15cb3dSCy Schubert@tab
4062b15cb3dSCy Schubertpoll interval (log(2) s)
4072b15cb3dSCy Schubert
4082b15cb3dSCy Schubert@item @code{reach}
4092b15cb3dSCy Schubert@tab
4102b15cb3dSCy Schubertreach shift register (octal)
4112b15cb3dSCy Schubert
4122b15cb3dSCy Schubert@item @code{delay}
4132b15cb3dSCy Schubert@tab
4142b15cb3dSCy Schubertroundtrip delay
4152b15cb3dSCy Schubert
4162b15cb3dSCy Schubert@item @code{offset}
4172b15cb3dSCy Schubert@tab
4182b15cb3dSCy Schubertoffset of server relative to this host
4192b15cb3dSCy Schubert
4202b15cb3dSCy Schubert@item @code{jitter}
4212b15cb3dSCy Schubert@tab
4222b15cb3dSCy Schubertjitter
4232b15cb3dSCy Schubert
4242b15cb3dSCy Schubert@end multitable
4252b15cb3dSCy Schubert
4262b15cb3dSCy Schubert@item @anchor{rv} readvar @kbd{assocID} @kbd{name} [ = @kbd{value} ] [,...]
4272b15cb3dSCy Schubert@itemx rv @kbd{assocID} [ @kbd{name} ] [,...]
4282b15cb3dSCy SchubertDisplay the specified variables.
4292b15cb3dSCy SchubertIf @code{@kbd{assocID}} is zero,
4302b15cb3dSCy Schubertthe variables are from the @ref{system, system variables} name space,
4312b15cb3dSCy Schubertotherwise they are from the @ref{peer, peer variables} name space.
4322b15cb3dSCy SchubertThe @kbd{assocID} is required, as the same name can occur in both spaces.
4332b15cb3dSCy SchubertIf no @kbd{name} is included,
4342b15cb3dSCy Schubertall operative variables in the name space are displayed.
4352b15cb3dSCy SchubertIn this case only, if the @code{@kbd{assocID}} is omitted, it is assumed zero.
4362b15cb3dSCy SchubertMultiple names are specified with comma separators and without whitespace.
4372b15cb3dSCy SchubertNote that time values are represented in milliseconds and
4382b15cb3dSCy Schubertfrequency values in parts-per-million (PPM).
4392b15cb3dSCy SchubertSome NTP timestamps are represented in the format YYYYMMDDTTTT,
4402b15cb3dSCy Schubertwhere YYYY is the year, MM the month of year, DD the day of month and
4412b15cb3dSCy SchubertTTTT the time of day.
4422b15cb3dSCy Schubert
4432b15cb3dSCy Schubert@item @anchor{saveconfig} @code{saveconfig @kbd{filename}}
4442b15cb3dSCy SchubertWrite the current configuration, including any runtime modifications
4452b15cb3dSCy Schubertgiven with @code{:config} or @code{config-from-file},
4462b15cb3dSCy Schubertto the ntpd host's file @kbd{filename}.
4472b15cb3dSCy SchubertThis command will be rejected by the server unless
4482b15cb3dSCy Schubert@url{miscopt.html#saveconfigdir, saveconfigdir}
4492b15cb3dSCy Schubertappears in the @code{ntpd} configuration file.
4502b15cb3dSCy Schubert@kbd{filename} can use @code{strftime()} format specifiers
4512b15cb3dSCy Schubertto substitute the current date and time, for example,
4522b15cb3dSCy Schubert@code{saveconfig ntp-%Y%m%d-%H%M%S.conf}.
4532b15cb3dSCy SchubertThe filename used is stored in system variable @code{savedconfig}.
4542b15cb3dSCy SchubertAuthentication is required.
4552b15cb3dSCy Schubert
4562b15cb3dSCy Schubert@item @anchor{writevar} writevar @kbd{assocID} @kbd{name} = @kbd{value} [,...]
4572b15cb3dSCy SchubertWrite the specified variables.
4582b15cb3dSCy SchubertIf the @code{@kbd{assocID}} is zero, the variables are from the
4592b15cb3dSCy Schubert@ref{system, system variables} name space, otherwise they are from the
4602b15cb3dSCy Schubert@ref{peer, peer variables} name	space.
4612b15cb3dSCy SchubertThe @code{@kbd{assocID}} is required,
4622b15cb3dSCy Schubertas the same name can occur in both spaces.
4632b15cb3dSCy Schubert
4642b15cb3dSCy Schubert@item @anchor{sysinfo} @code{sysinfo}
4652b15cb3dSCy SchubertDisplay operational summary.
4662b15cb3dSCy Schubert
4672b15cb3dSCy Schubert@item @anchor{sysstats} @code{sysstats}
4682b15cb3dSCy SchubertPrint statistics counters maintained in the protocol module.
4692b15cb3dSCy Schubert
4702b15cb3dSCy Schubert@end table
4712b15cb3dSCy Schubert
4722b15cb3dSCy Schubert@node Status Words and Kiss Codes, System Variables, Control Message Commands, Top
4732b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
4742b15cb3dSCy Schubert@section Status Words and Kiss Codes
4752b15cb3dSCy Schubert
4762b15cb3dSCy SchubertThe current state of the operating program is shown
4772b15cb3dSCy Schubertin a set of status words maintained by the system
4782b15cb3dSCy Schubertand each association separately.
4792b15cb3dSCy SchubertThese words are displayed in the @code{rv} and @code{as} commands
4802b15cb3dSCy Schubertboth in hexadecimal and decoded short tip strings.
4812b15cb3dSCy SchubertThe codes, tips and short explanations are on the
4822b15cb3dSCy Schubert@url{decode.html, Event Messages and Status Words} page.
4832b15cb3dSCy SchubertThe page also includes a list of system and peer messages,
4842b15cb3dSCy Schubertthe code for the latest of which is included in the status word.
4852b15cb3dSCy Schubert
4862b15cb3dSCy SchubertInformation resulting from protocol machine state transitions
4872b15cb3dSCy Schubertis displayed using an informal set of ASCII strings called
4882b15cb3dSCy Schubert@url{decode.html#kiss, kiss codes}.
4892b15cb3dSCy SchubertThe original purpose was for kiss-o'-death (KoD) packets sent
4902b15cb3dSCy Schubertby the server to advise the client of an unusual condition.
4912b15cb3dSCy SchubertThey are now displayed, when appropriate,
4922b15cb3dSCy Schubertin the reference identifier field in various billboards.
4932b15cb3dSCy Schubert
4942b15cb3dSCy Schubert@node System Variables, Peer Variables, Status Words and Kiss Codes, Top
4952b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
4962b15cb3dSCy Schubert@section System Variables
4972b15cb3dSCy Schubert
4982b15cb3dSCy SchubertThe following system variables appear in the @code{rv} billboard.
4992b15cb3dSCy SchubertNot all variables are displayed in some configurations.
5002b15cb3dSCy Schubert
5012b15cb3dSCy Schubert@multitable @columnfractions .1 .2
5022b15cb3dSCy Schubert@headitem Variable @tab Description
5032b15cb3dSCy Schubert
5042b15cb3dSCy Schubert@item @code{status}
5052b15cb3dSCy Schubert@tab
5062b15cb3dSCy Schubert@url{decode.html#sys, system status word}
5072b15cb3dSCy Schubert
5082b15cb3dSCy Schubert@item @code{version}
5092b15cb3dSCy Schubert@tab
5102b15cb3dSCy SchubertNTP software version and build time
5112b15cb3dSCy Schubert
5122b15cb3dSCy Schubert@item @code{processor}
5132b15cb3dSCy Schubert@tab
5142b15cb3dSCy Schuberthardware platform and version
5152b15cb3dSCy Schubert
5162b15cb3dSCy Schubert@item @code{system}
5172b15cb3dSCy Schubert@tab
5182b15cb3dSCy Schubertoperating system and version
5192b15cb3dSCy Schubert
5202b15cb3dSCy Schubert@item @code{leap}
5212b15cb3dSCy Schubert@tab
5222b15cb3dSCy Schubertleap warning indicator (0-3)
5232b15cb3dSCy Schubert
5242b15cb3dSCy Schubert@item @code{stratum}
5252b15cb3dSCy Schubert@tab
5262b15cb3dSCy Schubertstratum (1-15)
5272b15cb3dSCy Schubert
5282b15cb3dSCy Schubert@item @code{precision}
5292b15cb3dSCy Schubert@tab
5302b15cb3dSCy Schubertprecision (log(2) s)
5312b15cb3dSCy Schubert
5322b15cb3dSCy Schubert@item @code{rootdelay}
5332b15cb3dSCy Schubert@tab
5342b15cb3dSCy Schuberttotal roundtrip delay to the primary reference clock
5352b15cb3dSCy Schubert
5362b15cb3dSCy Schubert@item @code{rootdisp}
5372b15cb3dSCy Schubert@tab
5382b15cb3dSCy Schuberttotal dispersion to the primary reference clock
5392b15cb3dSCy Schubert
5402b15cb3dSCy Schubert@item @code{peer}
5412b15cb3dSCy Schubert@tab
5422b15cb3dSCy Schubertsystem peer association ID
5432b15cb3dSCy Schubert
5442b15cb3dSCy Schubert@item @code{tc}
5452b15cb3dSCy Schuberttime constant and poll exponent (log(2) s) (3-17)
5462b15cb3dSCy Schubert
5472b15cb3dSCy Schubert@item @code{mintc}
5482b15cb3dSCy Schubertminimum time constant (log(2) s) (3-10)
5492b15cb3dSCy Schubert
5502b15cb3dSCy Schubert@item @code{clock}
5512b15cb3dSCy Schubert@tab
5522b15cb3dSCy Schubertdate and time of day
5532b15cb3dSCy Schubert
5542b15cb3dSCy Schubert@item @code{refid}
5552b15cb3dSCy Schubertreference ID or @url{decode.html#kiss, kiss code}
5562b15cb3dSCy Schubert
5572b15cb3dSCy Schubert@item @code{reftime}
5582b15cb3dSCy Schubert@tab
5592b15cb3dSCy Schubertreference time
5602b15cb3dSCy Schubert
5612b15cb3dSCy Schubert@item @code{offset}
5622b15cb3dSCy Schubert@tab
5632b15cb3dSCy Schubertcombined offset of server relative to this host
5642b15cb3dSCy Schubert
5652b15cb3dSCy Schubert@item @code{sys_jitter}
5662b15cb3dSCy Schubert@tab
5672b15cb3dSCy Schubertcombined system jitter
5682b15cb3dSCy Schubert
5692b15cb3dSCy Schubert@item @code{frequency}
5702b15cb3dSCy Schubert@tab
5712b15cb3dSCy Schubertfrequency offset (PPM) relative to hardware clock
5722b15cb3dSCy Schubert
5732b15cb3dSCy Schubert@item @code{clk_wander}
5742b15cb3dSCy Schubert@tab
5752b15cb3dSCy Schubertclock frequency wander (PPM)
5762b15cb3dSCy Schubert
5772b15cb3dSCy Schubert@item @code{clk_jitter}
5782b15cb3dSCy Schubert@tab
5792b15cb3dSCy Schubertclock jitter
5802b15cb3dSCy Schubert
5812b15cb3dSCy Schubert@item @code{tai}
5822b15cb3dSCy Schubert@tab
5832b15cb3dSCy SchubertTAI-UTC offset (s)
5842b15cb3dSCy Schubert
5852b15cb3dSCy Schubert@item @code{leapsec}
5862b15cb3dSCy Schubert@tab
5872b15cb3dSCy SchubertNTP seconds when the next leap second is/was inserted
5882b15cb3dSCy Schubert
5892b15cb3dSCy Schubert@item @code{expire}
5902b15cb3dSCy Schubert@tab
5912b15cb3dSCy SchubertNTP seconds when the NIST leapseconds file expires
5922b15cb3dSCy Schubert
5932b15cb3dSCy Schubert@end multitable
5942b15cb3dSCy Schubert
5952b15cb3dSCy SchubertThe jitter and wander statistics are exponentially-weighted RMS averages.
5962b15cb3dSCy SchubertThe system jitter is defined in the NTPv4 specification;
5972b15cb3dSCy Schubertthe clock jitter statistic is computed by the clock discipline module.
5982b15cb3dSCy Schubert
5992b15cb3dSCy SchubertWhen the NTPv4 daemon is compiled with the OpenSSL software library,
6002b15cb3dSCy Schubertadditional system variables are displayed, including some or all of the
6012b15cb3dSCy Schubertfollowing, depending on the particular Autokey dance:
6022b15cb3dSCy Schubert
6032b15cb3dSCy Schubert@multitable @columnfractions .1 .2
6042b15cb3dSCy Schubert@headitem Variable @tab Description
6052b15cb3dSCy Schubert
6062b15cb3dSCy Schubert@item @code{host}
6072b15cb3dSCy Schubert@tab
6082b15cb3dSCy SchubertAutokey host name for this host
6092b15cb3dSCy Schubert
6102b15cb3dSCy Schubert@item @code{ident}
6112b15cb3dSCy Schubert@tab
6122b15cb3dSCy SchubertAutokey group name for this host
6132b15cb3dSCy Schubert
6142b15cb3dSCy Schubert@item @code{flags}
6152b15cb3dSCy Schubert@tab
6162b15cb3dSCy Schuberthost flags  (see Autokey specification)
6172b15cb3dSCy Schubert
6182b15cb3dSCy Schubert@item @code{digest}
6192b15cb3dSCy Schubert@tab
6202b15cb3dSCy SchubertOpenSSL message digest algorithm
6212b15cb3dSCy Schubert
6222b15cb3dSCy Schubert@item @code{signature}
6232b15cb3dSCy Schubert@tab
6242b15cb3dSCy SchubertOpenSSL digest/signature scheme
6252b15cb3dSCy Schubert
6262b15cb3dSCy Schubert@item @code{update}
6272b15cb3dSCy Schubert@tab
6282b15cb3dSCy SchubertNTP seconds at last signature update
6292b15cb3dSCy Schubert
6302b15cb3dSCy Schubert@item @code{cert}
6312b15cb3dSCy Schubert@tab
6322b15cb3dSCy Schubertcertificate subject, issuer and certificate flags
6332b15cb3dSCy Schubert
6342b15cb3dSCy Schubert@item @code{until}
6352b15cb3dSCy Schubert@tab
6362b15cb3dSCy SchubertNTP seconds when the certificate expires
6372b15cb3dSCy Schubert
6382b15cb3dSCy Schubert@end multitable
6392b15cb3dSCy Schubert
6402b15cb3dSCy Schubert@node Peer Variables, Clock Variables, System Variables, Top
6412b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
6422b15cb3dSCy Schubert@section Peer Variables
6432b15cb3dSCy Schubert
6442b15cb3dSCy SchubertThe following peer variables appear in the @code{rv} billboard
6452b15cb3dSCy Schubertfor each association.
6462b15cb3dSCy SchubertNot all variables are displayed in some configurations.
6472b15cb3dSCy Schubert
6482b15cb3dSCy Schubert@multitable @columnfractions .1 .2
6492b15cb3dSCy Schubert@headitem Variable @tab Description
6502b15cb3dSCy Schubert
6512b15cb3dSCy Schubert@item @code{associd}
6522b15cb3dSCy Schubert@tab
6532b15cb3dSCy Schubertassociation ID
6542b15cb3dSCy Schubert
6552b15cb3dSCy Schubert@item @code{status}
6562b15cb3dSCy Schubert@tab
6572b15cb3dSCy Schubert@url{decode.html#peer, peer status word}
6582b15cb3dSCy Schubert
6592b15cb3dSCy Schubert@item @code{srcadr}
6602b15cb3dSCy Schubert@itemx @code{srcport}
6612b15cb3dSCy Schubert@tab
6622b15cb3dSCy Schubertsource (remote) IP address and port
6632b15cb3dSCy Schubert
6642b15cb3dSCy Schubert@item @code{dstadr}
6652b15cb3dSCy Schubert@itemx @code{dstport}
6662b15cb3dSCy Schubert@tab
6672b15cb3dSCy Schubertdestination (local) IP address and port
6682b15cb3dSCy Schubert
6692b15cb3dSCy Schubert@item @code{leap}
6702b15cb3dSCy Schubert@tab
6712b15cb3dSCy Schubertleap indicator (0-3)
6722b15cb3dSCy Schubert
6732b15cb3dSCy Schubert@item @code{stratum}
6742b15cb3dSCy Schubert@tab
6752b15cb3dSCy Schubertstratum (0-15)
6762b15cb3dSCy Schubert
6772b15cb3dSCy Schubert@item @code{precision}
6782b15cb3dSCy Schubert@tab
6792b15cb3dSCy Schubertprecision (log(2) s)
6802b15cb3dSCy Schubert
6812b15cb3dSCy Schubert@item @code{rootdelay}
6822b15cb3dSCy Schubert@tab
6832b15cb3dSCy Schuberttotal roundtrip delay to the primary reference clock
6842b15cb3dSCy Schubert
6852b15cb3dSCy Schubert@item @code{rootdisp}
6862b15cb3dSCy Schubert@tab total root dispersion to the primary reference clock
6872b15cb3dSCy Schubert
6882b15cb3dSCy Schubert@item @code{refid}
6892b15cb3dSCy Schubert@tab
6902b15cb3dSCy Schubertreference ID or @url{decode.html#kiss, kiss code}
6912b15cb3dSCy Schubert
6922b15cb3dSCy Schubert@item @code{reftime}
6932b15cb3dSCy Schubert@tab
6942b15cb3dSCy Schubertreference time
6952b15cb3dSCy Schubert
6962b15cb3dSCy Schubert@item @code{reach}
6972b15cb3dSCy Schubert@tab
6982b15cb3dSCy Schubertreach register (octal)
6992b15cb3dSCy Schubert
7002b15cb3dSCy Schubert@item @code{unreach}
7012b15cb3dSCy Schubert@tab
7022b15cb3dSCy Schubertunreach counter
7032b15cb3dSCy Schubert
7042b15cb3dSCy Schubert@item @code{hmode}
7052b15cb3dSCy Schubert@tab
7062b15cb3dSCy Schuberthost mode (1-6)
7072b15cb3dSCy Schubert
7082b15cb3dSCy Schubert@item @code{pmode}
7092b15cb3dSCy Schubert@tab
7102b15cb3dSCy Schubertpeer mode (1-5)
7112b15cb3dSCy Schubert
7122b15cb3dSCy Schubert@item @code{hpoll}
7132b15cb3dSCy Schubert@tab
7142b15cb3dSCy Schuberthost poll exponent (log(2) s) (3-17)
7152b15cb3dSCy Schubert@item @code{ppoll}
7162b15cb3dSCy Schubert@tab
7172b15cb3dSCy Schubertpeer poll exponent (log(2) s) (3-17)
7182b15cb3dSCy Schubert
7192b15cb3dSCy Schubert@item @code{headway}
7202b15cb3dSCy Schubert@tab
7212b15cb3dSCy Schubertheadway (see @url{rate.html, Rate Management and the Kiss-o'-Death Packet})
7222b15cb3dSCy Schubert
7232b15cb3dSCy Schubert@item @code{flash}
7242b15cb3dSCy Schubert@tab
7252b15cb3dSCy Schubert@url{decode.html#flash, flash status word}
7262b15cb3dSCy Schubert
7272b15cb3dSCy Schubert@item @code{offset}
7282b15cb3dSCy Schubert@tab
7292b15cb3dSCy Schubertfilter offset
7302b15cb3dSCy Schubert
7312b15cb3dSCy Schubert@item @code{delay}
7322b15cb3dSCy Schubert@tab
7332b15cb3dSCy Schubertfilter delay
7342b15cb3dSCy Schubert
7352b15cb3dSCy Schubert@item @code{dispersion}
7362b15cb3dSCy Schubert@tab
7372b15cb3dSCy Schubertfilter dispersion
7382b15cb3dSCy Schubert
7392b15cb3dSCy Schubert@item @code{jitter}
7402b15cb3dSCy Schubert@tab
7412b15cb3dSCy Schubertfilter jitter
7422b15cb3dSCy Schubert
7432b15cb3dSCy Schubert@item @code{ident}
7442b15cb3dSCy Schubert@tab
7452b15cb3dSCy SchubertAutokey group name for this association
7462b15cb3dSCy Schubert
7472b15cb3dSCy Schubert@item @code{bias}
7482b15cb3dSCy Schubert@tab
7492b15cb3dSCy Schubertunicast/broadcast bias
7502b15cb3dSCy Schubert
7512b15cb3dSCy Schubert@item @code{xleave}
7522b15cb3dSCy Schubert@tab
7532b15cb3dSCy Schubertinterleave delay (see @url{xleave.html, NTP Interleaved Modes})
7542b15cb3dSCy Schubert
7552b15cb3dSCy Schubert@end multitable
7562b15cb3dSCy Schubert
7572b15cb3dSCy SchubertThe bias variable is calculated when the first broadcast packet is received
7582b15cb3dSCy Schubertafter the calibration volley.  It represents the offset of the broadcast
7592b15cb3dSCy Schubertsubgraph relative to the unicast subgraph.  The xleave variable appears
7602b15cb3dSCy Schubertonly the interleaved symmetric and interleaved modes.  It represents
7612b15cb3dSCy Schubertthe internal queuing, buffering and transmission delays for the preceding
7622b15cb3dSCy Schubertpacket.
7632b15cb3dSCy Schubert
7642b15cb3dSCy SchubertWhen the NTPv4 daemon is compiled with the OpenSSL software library,
7652b15cb3dSCy Schubertadditional peer variables are displayed, including the following:
7662b15cb3dSCy Schubert
7672b15cb3dSCy Schubert@multitable @columnfractions .1 .2
7682b15cb3dSCy Schubert@headitem Variable @tab Description
7692b15cb3dSCy Schubert
7702b15cb3dSCy Schubert@item @code{flags}
7712b15cb3dSCy Schubert@tab
7722b15cb3dSCy Schubertpeer flags (see Autokey specification)
7732b15cb3dSCy Schubert
7742b15cb3dSCy Schubert@item @code{host}
7752b15cb3dSCy Schubert@tab
7762b15cb3dSCy SchubertAutokey server name
7772b15cb3dSCy Schubert
7782b15cb3dSCy Schubert@item @code{flags}
7792b15cb3dSCy Schubert@tab
7802b15cb3dSCy Schubertpeer flags (see Autokey specification)
7812b15cb3dSCy Schubert
7822b15cb3dSCy Schubert@item @code{signature}
7832b15cb3dSCy Schubert@tab
7842b15cb3dSCy SchubertOpenSSL digest/signature scheme
7852b15cb3dSCy Schubert
7862b15cb3dSCy Schubert@item @code{initsequence}
7872b15cb3dSCy Schubert@tab
7882b15cb3dSCy Schubertinitial key ID
7892b15cb3dSCy Schubert
7902b15cb3dSCy Schubert@item @code{initkey}
7912b15cb3dSCy Schubert@tab
7922b15cb3dSCy Schubertinitial key index
7932b15cb3dSCy Schubert
7942b15cb3dSCy Schubert@item @code{timestamp}
7952b15cb3dSCy Schubert@tab
7962b15cb3dSCy SchubertAutokey signature timestamp
7972b15cb3dSCy Schubert
7982b15cb3dSCy Schubert@end multitable
7992b15cb3dSCy Schubert
8002b15cb3dSCy Schubert@node Clock Variables,  , Peer Variables, Top
8012b15cb3dSCy Schubert@comment  node-name,  next,  previous,  up
8022b15cb3dSCy Schubert@section Clock Variables
8032b15cb3dSCy Schubert
8042b15cb3dSCy SchubertThe following clock variables appear in the @code{cv} billboard for each association with a reference clock.  Not all variables are displayed in some configurations.
8052b15cb3dSCy Schubert
8062b15cb3dSCy Schubert@multitable @columnfractions .1 .2
8072b15cb3dSCy Schubert@headitem Variable @tab Description
8082b15cb3dSCy Schubert@item @code{associd}
8092b15cb3dSCy Schubert@tab association ID
8102b15cb3dSCy Schubert@item @code{status}
8112b15cb3dSCy Schubert@tab @url{decode.html#clock, clock status word}
8122b15cb3dSCy Schubert@item @code{device}
8132b15cb3dSCy Schubert@tab device description
8142b15cb3dSCy Schubert@item @code{timecode}
8152b15cb3dSCy Schubert@tab ASCII time code string (specific to device)
8162b15cb3dSCy Schubert@item @code{poll}
8172b15cb3dSCy Schubert@tab poll messages sent
8182b15cb3dSCy Schubert@item @code{noreply}
8192b15cb3dSCy Schubert@tab no reply
8202b15cb3dSCy Schubert@item @code{badformat}
8212b15cb3dSCy Schubert@tab bad format
8222b15cb3dSCy Schubert@item @code{baddata}
8232b15cb3dSCy Schubert@tab bad date or time
8242b15cb3dSCy Schubert@item @code{fudgetime1}
8252b15cb3dSCy Schubert@tab fudge time 1
8262b15cb3dSCy Schubert@item @code{fudgetime2}
8272b15cb3dSCy Schubert@tab fudge time 2
8282b15cb3dSCy Schubert@item @code{stratum}
8292b15cb3dSCy Schubert@tab driver stratum
8302b15cb3dSCy Schubert@item @code{refid}
8312b15cb3dSCy Schubert@tab driver reference ID
8322b15cb3dSCy Schubert@item @code{flags}
8332b15cb3dSCy Schubert@tab driver flags
8342b15cb3dSCy Schubert@end multitable
835