xref: /freebsd/contrib/ntp/html/ntpq.html (revision 2b15cb3d0922bd70ea592f0da9b4a5b167f4d53f)
19c2daa00SOllivier Robert<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
29c2daa00SOllivier Robert<html>
39c2daa00SOllivier Robert<head>
4ea906c41SOllivier Robert<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
59c2daa00SOllivier Robert<meta name="generator" content="HTML Tidy, see www.w3.org">
69c2daa00SOllivier Robert<title>ntpq - standard NTP query program</title>
79c2daa00SOllivier Robert<link href="scripts/style.css" type="text/css" rel="stylesheet">
89c2daa00SOllivier Robert</head>
99c2daa00SOllivier Robert<body>
109c2daa00SOllivier Robert<h3><tt>ntpq</tt> - standard NTP query program</h3>
119c2daa00SOllivier Robert<img src="pic/bustardfly.gif" alt="gif" align="left"><a href="http://www.eecis.udel.edu/~mills/pictures.html">from <i>Pogo</i>, Walt Kelly</a>
129c2daa00SOllivier Robert<p>A typical NTP monitoring packet</p>
13*2b15cb3dSCy Schubert<p>Last update:
14*2b15cb3dSCy Schubert  <!-- #BeginDate format:En2m -->31-Jan-2014  06:54<!-- #EndDate -->
15*2b15cb3dSCy Schubert    UTC</p>
169c2daa00SOllivier Robert<br clear="left">
179c2daa00SOllivier Robert<h4>More Help</h4>
18*2b15cb3dSCy Schubert<script type="text/javascript" language="javascript" src="scripts/manual.txt"></script>
199c2daa00SOllivier Robert<hr>
209c2daa00SOllivier Robert<h4>Synopsis</h4>
21*2b15cb3dSCy Schubert<tt>ntpq [-46dinp] [-c <i>command</i>] [<i>host</i>] [...]</tt>
229c2daa00SOllivier Robert<h4>Description</h4>
23*2b15cb3dSCy Schubert<p>The <tt>ntpq</tt> utility program is used to monitor NTP daemon <tt>ntpd</tt> operations
24*2b15cb3dSCy Schubert  and determine performance. It uses the standard NTP mode 6 control
25*2b15cb3dSCy Schubert  message formats defined in Appendix B of the NTPv3 specification
26*2b15cb3dSCy Schubert  RFC1305. The same formats are used in NTPv4, although some of the
27*2b15cb3dSCy Schubert  variable names have changed and new ones added. The description
28*2b15cb3dSCy Schubert  on this page is for the NTPv4 variables.</p>
299c2daa00SOllivier Robert<p>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 <tt>ntpq</tt> can also obtain and print a list of peers in a common format by sending multiple queries to the server.</p>
309c2daa00SOllivier Robert<p>If one or more request options is included on the command line when <tt>ntpq</tt> 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, <tt>ntpq</tt> 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. <tt>ntpq</tt> will prompt for commands if the standard input is a terminal device.</p>
319c2daa00SOllivier Robert<p><tt>ntpq</tt> 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. <tt>ntpq</tt> makes one attempt to retransmit requests, and will time requests out if the remote host is not heard from within a suitable timeout time.</p>
329c2daa00SOllivier Robert<p>Note that in contexts where a host name is expected, a <tt>-4</tt> qualifier preceding the host name forces DNS resolution to the IPv4 namespace, while a <tt>-6</tt> qualifier forces DNS resolution to the IPv6 namespace.</p>
339c2daa00SOllivier Robert<p>For examples and usage, see the <a href="debug.html">NTP Debugging Techniques</a> page.</p>
349c2daa00SOllivier Robert<p>Command line options are described following. Specifying a command line option other than <tt>-i</tt> or <tt>-n</tt> will cause the specified query (queries) to be sent to the indicated host(s) immediately. Otherwise, <tt>ntpq</tt> will attempt to read interactive format commands from the standard input.</p>
359c2daa00SOllivier Robert<dl>
36*2b15cb3dSCy Schubert  <dt><tt>-4</tt></dt>
37*2b15cb3dSCy Schubert  <dd>Force DNS resolution of following host names on the command line to the IPv4 namespace.</dd>
38*2b15cb3dSCy Schubert  <dt><tt>-6</tt></dt>
39*2b15cb3dSCy Schubert  <dd>Force DNS resolution of following host names on the command line to the IPv6 namespace.</dd>
40*2b15cb3dSCy Schubert  <dt><tt>-c</tt></dt>
41*2b15cb3dSCy Schubert  <dd>The following argument is interpreted as an interactive format command and is added to the list of commands to be executed on the specified host(s). Multiple <tt>-c</tt> options may be given.</dd>
42*2b15cb3dSCy Schubert  <dt><tt>-d</tt></dt>
43*2b15cb3dSCy Schubert  <dd>Turn on debugging mode.</dd>
44*2b15cb3dSCy Schubert  <dt><tt>-i</tt></dt>
45*2b15cb3dSCy Schubert  <dd>Force <tt>ntpq</tt> to operate in interactive mode. Prompts will be written to the standard output and commands read from the standard input.</dd>
46*2b15cb3dSCy Schubert  <dt><tt>-n</tt></dt>
47*2b15cb3dSCy Schubert  <dd>Output all host addresses in dotted-quad numeric format rather than converting to the canonical host names.</dd>
48*2b15cb3dSCy Schubert  <dt><tt>-p</tt></dt>
49*2b15cb3dSCy Schubert  <dd>Print a list of the peers known to the server as well as a summary of their state. This is equivalent to the <tt>peers</tt> interactive command.</dd>
509c2daa00SOllivier Robert</dl>
519c2daa00SOllivier Robert<h4>Internal Commands</h4>
52*2b15cb3dSCy Schubert<p>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 <tt>&gt;</tt>, followed by a file name, to the command line. A number of interactive format commands are executed entirely within the <tt>ntpq</tt> program itself and do not result in NTP mode-6 requests being sent to a server. These are described following.</p>
539c2daa00SOllivier Robert<dl>
54*2b15cb3dSCy Schubert  <dt id="help"><tt>? [<i>command_keyword</i>]</tt><br>
55*2b15cb3dSCy Schubert    <tt>help [<i>command_keyword</i>]</tt></dt>
56*2b15cb3dSCy Schubert  <dd>A <tt>?</tt> by itself will print a list of all the command keywords known to <tt>ntpq</tt>. A <tt>?</tt> followed by a command keyword will print function and usage information about the command.</dd>
57*2b15cb3dSCy Schubert  <dt id="addvars"><tt>addvars <i>name</i> [ = <i>value</i>] [...]</tt><br>
58*2b15cb3dSCy Schubert    <tt>rmvars <i>name</i> [...]</tt><br>
59*2b15cb3dSCy Schubert    <tt>clearvars</tt></dt>
60*2b15cb3dSCy Schubert  <dd>The arguments to this command consist of a list of items of the form <tt><i>name</i> = <i>value</i></tt>, where the <tt>= <i>value</i></tt> is ignored, and can be omitted in read requests. <tt>ntpq</tt> maintains an internal list in which data to be included in control messages can be assembled, and sent using the <tt>readlist</tt> and <tt>writelist</tt> commands described below. The <tt>addvars</tt> command allows variables and optional values to be added to the list. If more than one variable is to be added, the list should be comma-separated and not contain white space. The <tt>rmvars</tt> command can be used to remove individual variables from the list, while the <tt>clearlist</tt> command removes all variables from the list.</dd>
61*2b15cb3dSCy Schubert  <dt id="cooked"><tt>cooked</tt></dt>
62*2b15cb3dSCy Schubert  <dd>Display server messages in prettyprint format.</dd>
63*2b15cb3dSCy Schubert  <dt id="debug"><tt>debug more | less | off</tt></dt>
64*2b15cb3dSCy Schubert  <dd>Turns internal query program debugging on and off.</dd>
65*2b15cb3dSCy Schubert  <dt id="delay"><tt>delay <i>milliseconds</i></tt></dt>
66*2b15cb3dSCy Schubert  <dd>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.</dd>
67*2b15cb3dSCy Schubert  <dt id="host"><tt>host <i>name</i></tt></dt>
68*2b15cb3dSCy Schubert  <dd>Set the host to which future queries will be sent. The name may be either a DNS name or a numeric address.</dd>
69*2b15cb3dSCy Schubert  <dt id="hostnames"><tt>hostnames [yes | no]</tt></dt>
70*2b15cb3dSCy Schubert  <dd>If <tt>yes</tt> is specified, host names are printed in information displays. If <tt>no</tt> is specified, numeric addresses are printed instead. The default is <tt>yes</tt>, unless modified using the command line <tt>-n</tt> switch.</dd>
71*2b15cb3dSCy Schubert  <dt id="keyid"><tt>keyid <i>keyid</i></tt></dt>
72*2b15cb3dSCy Schubert  <dd>This command specifies the key number to be used to authenticate configuration requests. This must correspond to a key ID configured in <tt>ntp.conf</tt> for this purpose.</dd>
73*2b15cb3dSCy Schubert  <dt id="keytype"><tt>keytype</tt></dt>
74*2b15cb3dSCy Schubert  <dd>Specify the digest algorithm to use for authenticated requests, with default <tt>MD5</tt>. If the OpenSSL library is installed, digest can be be any message digest algorithm supported by the library. The current selections are: <tt>MD2</tt>, <tt>MD4</tt>, <tt>MD5</tt>, <tt>MDC2</tt>, <tt>RIPEMD160</tt>, <tt>SHA</tt> and <tt>SHA1</tt>.</dd>
75*2b15cb3dSCy Schubert  <dt id="ntpversion"><tt>ntpversion 1 | 2 | 3 | 4</tt></dt>
76*2b15cb3dSCy Schubert  <dd>Sets the NTP version number which <tt>ntpq</tt> claims in packets. Defaults to 2, Note that mode-6 control messages (and modes, for that matter) didn't exist in NTP version 1.</dd>
77*2b15cb3dSCy Schubert  <dt id="passwd"><tt>passwd</tt></dt>
78*2b15cb3dSCy Schubert  <dd>This command prompts for a password to authenticate requests. The password must correspond to the key ID configured in <tt>ntp.conf</tt> for this purpose.</dd>
79*2b15cb3dSCy Schubert  <dt id="quit"><tt>quit</tt></dt>
80*2b15cb3dSCy Schubert  <dd>Exit <tt>ntpq</tt>.</dd>
81*2b15cb3dSCy Schubert  <dt id="raw"><tt>raw</tt></dt>
82*2b15cb3dSCy Schubert  <dd>Display server messages as received and without reformatting.</dd>
83*2b15cb3dSCy Schubert  <dt id="timeout"><tt>timeout <i>millseconds</i></tt></dt>
84*2b15cb3dSCy Schubert  <dd>Specify a timeout period for responses to server queries. The default is about 5000 milliseconds. Note that since <tt>ntpq</tt> retries each query once after a timeout, the total waiting time for a timeout will be twice the timeout value set.</dd>
859c2daa00SOllivier Robert</dl>
869c2daa00SOllivier Robert<h4>Control Message Commands</h4>
87*2b15cb3dSCy Schubert<p>Association IDs are used to identify system, peer and clock variables. System variables are assigned an association ID of zero and system name space, while each association is assigned a nonzero association ID and peer namespace. Most control commands send a single mode-6 message to the server and expect a single response message. The exceptions are the <tt>peers</tt> command, which sends a series of messages, and the <tt>mreadlist</tt> and <tt>mreadvar</tt> commands, which iterate over a range of associations.</p>
889c2daa00SOllivier Robert<dl>
89*2b15cb3dSCy Schubert  <dt id="as"><tt>associations</tt></dt>
90*2b15cb3dSCy Schubert  <dd>Display a list of mobilized associations in the form</dd>
91*2b15cb3dSCy Schubert  <dd><tt>ind assid status conf reach auth condition last_event cnt</tt></dd>
929c2daa00SOllivier Robert  <dd>
93*2b15cb3dSCy Schubert    <table width="100%" border="1" cellspacing="2" cellpadding="2">
94*2b15cb3dSCy Schubert      <tr>
95*2b15cb3dSCy Schubert        <td>Variable</td>
96*2b15cb3dSCy Schubert        <td>Description</td>
97*2b15cb3dSCy Schubert      </tr>
98*2b15cb3dSCy Schubert      <tr>
99*2b15cb3dSCy Schubert        <td><tt>ind</tt></td>
100*2b15cb3dSCy Schubert        <td>index on this list</td>
101*2b15cb3dSCy Schubert      </tr>
102*2b15cb3dSCy Schubert      <tr>
103*2b15cb3dSCy Schubert        <td><tt>assid</tt></td>
104*2b15cb3dSCy Schubert        <td>association ID</td>
105*2b15cb3dSCy Schubert      </tr>
106*2b15cb3dSCy Schubert      <tr>
107*2b15cb3dSCy Schubert        <td><tt>status</tt></td>
108*2b15cb3dSCy Schubert        <td><a href="decode.html#peer">peer status word</a></td>
109*2b15cb3dSCy Schubert      </tr>
110*2b15cb3dSCy Schubert      <tr>
111*2b15cb3dSCy Schubert        <td><tt>conf</tt></td>
112*2b15cb3dSCy Schubert        <td><tt>yes</tt>: persistent, <tt>no</tt>: ephemeral</td>
113*2b15cb3dSCy Schubert      </tr>
114*2b15cb3dSCy Schubert      <tr>
115*2b15cb3dSCy Schubert        <td><tt>reach</tt></td>
116*2b15cb3dSCy Schubert        <td><tt>yes</tt>: reachable, <tt>no</tt>: unreachable</td>
117*2b15cb3dSCy Schubert      </tr>
118*2b15cb3dSCy Schubert      <tr>
119*2b15cb3dSCy Schubert        <td><tt>auth</tt></td>
120*2b15cb3dSCy Schubert        <td><tt>ok</tt>, <tt>yes</tt>, <tt>bad</tt> and <tt>none</tt></td>
121*2b15cb3dSCy Schubert      </tr>
122*2b15cb3dSCy Schubert      <tr>
123*2b15cb3dSCy Schubert        <td><tt>condition</tt></td>
124*2b15cb3dSCy Schubert        <td>selection status (see the <tt>select</tt> field of the <a href="decode.html#peer">peer status word</a>)</td>
125*2b15cb3dSCy Schubert      </tr>
126*2b15cb3dSCy Schubert      <tr>
127*2b15cb3dSCy Schubert        <td><tt>last_event</tt></td>
128*2b15cb3dSCy Schubert        <td>event report (see the <tt>event</tt> field of the <a href="decode.html#peer">peer status word</a>)</td>
129*2b15cb3dSCy Schubert      </tr>
130*2b15cb3dSCy Schubert      <tr>
131*2b15cb3dSCy Schubert        <td><tt>cnt</tt></td>
132*2b15cb3dSCy Schubert        <td>event count (see the <tt>count</tt> field of the <a href="decode.html#peer">peer status word</a>)</td>
133*2b15cb3dSCy Schubert      </tr>
134*2b15cb3dSCy Schubert    </table>
135*2b15cb3dSCy Schubert  </dd>
136*2b15cb3dSCy Schubert  <dt id="cv"><tt>clockvar <i>assocID</i> [<i>name</i> [ = <i>value</i> [...]] [...]</tt><br>
137*2b15cb3dSCy Schubert    <tt>cv <i>assocID</i> [<i>name</i> [ = <i>value</i> [...] ][...]</tt></dt>
138*2b15cb3dSCy Schubert  <dd>Display a list of <a href="#clock">clock variables</a> for those associations supporting a reference clock.</dd>
139*2b15cb3dSCy Schubert  <dt id=":config"><tt>:config [...]</tt></dt>
140*2b15cb3dSCy Schubert  <dd>Send the remainder of the command line, including whitespace, to the server as a run-time configuration command in the same format as the configuration file. This command is experimental until further notice and clarification. Authentication is of course required.</dd>
141*2b15cb3dSCy Schubert  <dt id="config-from-file"><tt>config-from-file <i>filename</i></tt></dt>
142*2b15cb3dSCy Schubert  <dd>Send the each line of <i>filename</i> to the server as run-time configuration commands in the same format as the configuration file. This command is experimental until further notice and clarification. Authentication is required.</dd>
143*2b15cb3dSCy Schubert  <dt id="ifstats"><tt>ifstats</tt></dt>
144*2b15cb3dSCy Schubert  <dd>Display statistics for each local network address. Authentication is required.</dd>
145*2b15cb3dSCy Schubert  <dt id="iostats"><tt>iostats</tt></dt>
146*2b15cb3dSCy Schubert  <dd>Display network and reference clock I/O statistics.</dd>
147*2b15cb3dSCy Schubert  <dt id="kerninfo"><tt>kerninfo</tt></dt>
148*2b15cb3dSCy Schubert  <dd>Display kernel loop and PPS statistics. As with other ntpq output, times are in milliseconds. The precision value displayed is in milliseconds as well, unlike the precision system variable.</dd>
149*2b15cb3dSCy Schubert  <dt id="lassoc"><tt>lassociations</tt></dt>
150*2b15cb3dSCy Schubert  <dd>Perform the same function as the associations command, except display mobilized and unmobilized associations.</dd>
151*2b15cb3dSCy Schubert  <dt id="monstats"><tt>monstats</tt></dt>
152*2b15cb3dSCy Schubert  <dd>Display monitor facility statistics.</dd>
153*2b15cb3dSCy Schubert  <dt id="mrulist"><tt>mrulist [limited | kod | mincount=<i>count</i> | laddr=<i>localaddr</i> | sort=<i>sortorder</i> | resany=<i>hexmask</i> | resall=<i>hexmask</i>]</tt></dt>
154*2b15cb3dSCy Schubert  <dd>Obtain and print traffic counts collected and maintained by the monitor facility. With the exception of <tt>sort=<i>sortorder</i></tt>, the options filter the list returned by <tt>ntpd</tt>. The <tt>limited</tt> and <tt>kod</tt> options return only entries representing client addresses from which the last packet received triggered either discarding or a KoD response. The <tt>mincount=<i>count</i></tt> option filters entries representing less than <tt><i>count</i></tt> packets. The <tt>laddr=<i>localaddr</i></tt> option filters entries for packets received on any local address other than <tt><i>localaddr</i></tt>. <tt>resany=<i>hexmask</i></tt> and <tt>resall=<i>hexmask</i></tt> filter entries containing none or less than all, respectively, of the bits in <tt><i>hexmask</i></tt>, which must begin with <tt>0x</tt>.</dd>
155*2b15cb3dSCy Schubert  <dd>The <tt><i>sortorder</i></tt> defaults to <tt>lstint</tt> and may be any of <tt>addr</tt>, <tt>count</tt>, <tt>avgint</tt>, <tt>lstint</tt>, or any of those preceded by a minus sign (hyphen) to reverse the sort order. The output columns are:
156*2b15cb3dSCy Schubert    <table width="100%" border="1" cellspacing="2" cellpadding="2">
157*2b15cb3dSCy Schubert      <tr>
158*2b15cb3dSCy Schubert        <td>Column</td>
159*2b15cb3dSCy Schubert        <td>Description</td>
160*2b15cb3dSCy Schubert      </tr>
161*2b15cb3dSCy Schubert      <tr>
162*2b15cb3dSCy Schubert        <td><tt>lstint</tt></td>
163*2b15cb3dSCy Schubert        <td>Interval in s between the receipt of the most recent packet from this address and the completion of the
164*2b15cb3dSCy Schubert          retrieval of the MRU list by <tt>ntpq</tt>.</td>
165*2b15cb3dSCy Schubert      </tr>
166*2b15cb3dSCy Schubert      <tr>
167*2b15cb3dSCy Schubert        <td><tt>avgint</tt></td>
168*2b15cb3dSCy Schubert        <td>Average interval in s between packets from this address.</td>
169*2b15cb3dSCy Schubert      </tr>
170*2b15cb3dSCy Schubert      <tr>
171*2b15cb3dSCy Schubert        <td><tt>rstr</tt></td>
172*2b15cb3dSCy Schubert        <td>Restriction flags associated with this address.  Most are copied unchanged from the matching <tt>restrict</tt> command, however 0x400 (kod) and 0x20 (limited) flags are cleared unless the last packet from this
173*2b15cb3dSCy Schubert          address triggered a rate control response.</td>
174*2b15cb3dSCy Schubert      </tr>
175*2b15cb3dSCy Schubert      <tr>
176*2b15cb3dSCy Schubert        <td><tt>r</tt></td>
177*2b15cb3dSCy Schubert        <td>Rate control indicator, either a period, <tt>L</tt> or <tt>K</tt> for no rate control response,
178*2b15cb3dSCy Schubert          rate limiting by discarding, or rate limiting with a KoD response, respectively.</td>
179*2b15cb3dSCy Schubert      </tr>
180*2b15cb3dSCy Schubert      <tr>
181*2b15cb3dSCy Schubert        <td><tt>m</tt></td>
182*2b15cb3dSCy Schubert        <td>Packet mode.</td>
183*2b15cb3dSCy Schubert      </tr>
184*2b15cb3dSCy Schubert      <tr>
185*2b15cb3dSCy Schubert        <td><tt>v</tt></td>
186*2b15cb3dSCy Schubert        <td>Packet version number.</td>
187*2b15cb3dSCy Schubert      </tr>
188*2b15cb3dSCy Schubert      <tr>
189*2b15cb3dSCy Schubert        <td><tt>count</tt></td>
190*2b15cb3dSCy Schubert        <td>Packets received from this address.</td>
191*2b15cb3dSCy Schubert      </tr>
192*2b15cb3dSCy Schubert      <tr>
193*2b15cb3dSCy Schubert        <td><tt>rport</tt></td>
194*2b15cb3dSCy Schubert        <td>Source port of last packet from this address.</td>
195*2b15cb3dSCy Schubert      </tr>
196*2b15cb3dSCy Schubert      <tr>
197*2b15cb3dSCy Schubert        <td><tt>remote address</tt></td>
198*2b15cb3dSCy Schubert        <td>DNS name, numeric address, or address followed by claimed DNS name which
199*2b15cb3dSCy Schubert          could not be verified in parentheses.</td>
200*2b15cb3dSCy Schubert      </tr>
201*2b15cb3dSCy Schubert    </table>
202*2b15cb3dSCy Schubert  </dd>
203*2b15cb3dSCy Schubert  <dt id="mreadvar"><tt>mreadvar <i>assocID</i> <i>assocID</i> [ <i>variable_name</i> [ = <i>value</i>[ ... ]</tt></dt>
204*2b15cb3dSCy Schubert  <dt id="mrv"><tt>mrv <i>assocID</i> <i>assocID</i> [ <i>variable_name</i> [ = <i>value</i>[ ... ]</tt></dt>
205*2b15cb3dSCy Schubert  <dd>Perform the same function as the <tt>readvar</tt> command, except for a range of association IDs. This range is determined from the association list cached by the most recent <tt>associations</tt> command.</dd>
206*2b15cb3dSCy Schubert  <dt id="passoc"><tt>passociations</tt></dt>
207*2b15cb3dSCy Schubert  <dd>Perform the same function as the <tt>associations command</tt>, except that it uses previously stored data rather than making a new query.</dd>
208*2b15cb3dSCy Schubert  <dt id="pe"><tt>peers</tt></dt>
209*2b15cb3dSCy Schubert  <dd>Display a list of peers in the form</dd>
210*2b15cb3dSCy Schubert  <dd><tt>[tally]remote refid st t when pool reach delay offset jitter</tt></dd>
2119c2daa00SOllivier Robert  <dd>
212*2b15cb3dSCy Schubert    <table width="100%" border="1" cellspacing="2" cellpadding="2">
213*2b15cb3dSCy Schubert      <tr>
214*2b15cb3dSCy Schubert        <td>Variable</td>
215*2b15cb3dSCy Schubert        <td>Description</td>
216*2b15cb3dSCy Schubert      </tr>
217*2b15cb3dSCy Schubert      <tr>
218*2b15cb3dSCy Schubert        <td><tt>[tally]</tt></td>
219*2b15cb3dSCy Schubert        <td>single-character code indicating current value of the <tt>select</tt> field of the <a href="decode.html#peer">peer status word</a></td>
220*2b15cb3dSCy Schubert      </tr>
221*2b15cb3dSCy Schubert      <tr>
222*2b15cb3dSCy Schubert        <td><tt>remote</tt></td>
223*2b15cb3dSCy Schubert        <td>host name (or IP number) of peer</td>
224*2b15cb3dSCy Schubert      </tr>
225*2b15cb3dSCy Schubert      <tr>
226*2b15cb3dSCy Schubert        <td><tt>refid</tt></td>
227*2b15cb3dSCy Schubert        <td>association ID or <a href="decode.html#kiss">kiss code</a></td>
228*2b15cb3dSCy Schubert      </tr>
229*2b15cb3dSCy Schubert      <tr>
230*2b15cb3dSCy Schubert        <td><tt>st</tt></td>
231*2b15cb3dSCy Schubert        <td>stratum</td>
232*2b15cb3dSCy Schubert      </tr>
233*2b15cb3dSCy Schubert      <tr>
234*2b15cb3dSCy Schubert        <td><tt>t</tt></td>
235*2b15cb3dSCy Schubert        <td><tt>u</tt>: unicast or manycast client, <tt>b</tt>:
236*2b15cb3dSCy Schubert          broadcast or multicast client, <tt>l</tt>: local (reference clock), <tt>s</tt>: symmetric (peer), <tt>A</tt>: manycast server, <tt>B</tt>:
237*2b15cb3dSCy Schubert          broadcast server, <tt>M</tt>: multicast server</td>
238*2b15cb3dSCy Schubert      </tr>
239*2b15cb3dSCy Schubert      <tr>
240*2b15cb3dSCy Schubert        <td><tt>when</tt></td>
241*2b15cb3dSCy Schubert        <td>sec/min/hr since last received packet</td>
242*2b15cb3dSCy Schubert      </tr>
243*2b15cb3dSCy Schubert      <tr>
244*2b15cb3dSCy Schubert        <td><tt>poll</tt></td>
245*2b15cb3dSCy Schubert        <td>poll interval (log<sub>2</sub> s)</td>
246*2b15cb3dSCy Schubert      </tr>
247*2b15cb3dSCy Schubert      <tr>
248*2b15cb3dSCy Schubert        <td><tt>reach</tt></td>
249*2b15cb3dSCy Schubert        <td>reach shift register (octal)</td>
250*2b15cb3dSCy Schubert      </tr>
251*2b15cb3dSCy Schubert      <tr>
252*2b15cb3dSCy Schubert        <td><tt>delay</tt></td>
253*2b15cb3dSCy Schubert        <td>roundtrip delay</td>
254*2b15cb3dSCy Schubert      </tr>
255*2b15cb3dSCy Schubert      <tr>
256*2b15cb3dSCy Schubert        <td><tt>offset</tt></td>
257*2b15cb3dSCy Schubert        <td>offset of server relative to this host</td>
258*2b15cb3dSCy Schubert      </tr>
259*2b15cb3dSCy Schubert      <tr>
260*2b15cb3dSCy Schubert        <td><tt>jitter</tt></td>
261*2b15cb3dSCy Schubert        <td>jitter</td>
262*2b15cb3dSCy Schubert      </tr>
263*2b15cb3dSCy Schubert    </table>
264*2b15cb3dSCy Schubert  </dd>
265*2b15cb3dSCy Schubert  <dt id="rv"><tt>readvar <i>assocID</i> <i>name</i> [ = <i>value</i> ] [,...]</tt><br>
266*2b15cb3dSCy Schubert    <tt>rv <i>assocID</i> [ <i>name</i> ] [,...]</tt></dt>
267*2b15cb3dSCy Schubert  <dd>Display the specified variables. If <tt><i>assocID</i></tt> is zero, the
268*2b15cb3dSCy Schubert    variables are from the <a href="#system">system variables</a> name space,
269*2b15cb3dSCy Schubert    otherwise they are from the <a href="#peer">peer variables</a> name space.
270*2b15cb3dSCy Schubert    The <tt><i>assocID</i></tt> is required, as the same name can occur in both spaces. If no <tt><i>name</i></tt> is
271*2b15cb3dSCy Schubert    included, all operative variables in the name space are displayed.
272*2b15cb3dSCy Schubert    In this case only, if the <tt><i>assocID</i></tt> is omitted, it is assumed zero. Multiple
273*2b15cb3dSCy Schubert    names are specified with comma separators and without whitespace.
274*2b15cb3dSCy Schubert    Note that time values are represented in milliseconds and frequency
275*2b15cb3dSCy Schubert    values in parts-per-million (PPM). Some NTP timestamps are represented
276*2b15cb3dSCy Schubert    in the format YYYYMMDDTTTT, where YYYY is the year, MM the month
277*2b15cb3dSCy Schubert    of year, DD the day of month and TTTT the time of day.</dd>
278*2b15cb3dSCy Schubert  <dt id="saveconfig"><tt>saveconfig <i>filename</i></tt></dt>
279*2b15cb3dSCy Schubert  <dd>Write the current configuration, including any runtime modifications given with <tt>:config</tt> or <tt>config-from-file</tt>, to the ntpd host's file <i>filename</i>.  This command will be rejected by the server unless <a href="miscopt.html#saveconfigdir">saveconfigdir</a> appears in the <tt>ntpd</tt> configuration file. <i>filename</i> can use strftime() format specifies to substitute the current date and time, for example, <tt>saveconfig ntp-%Y%m%d-%H%M%S.conf</tt>. The filename used is stored in system variable <tt>savedconfig</tt>. Authentication is required.</dd>
280*2b15cb3dSCy Schubert  <dt id="writevar"><tt>writevar <i>assocID</i> <i>name</i> = <i>value</i> [,...]</tt></dt>
281*2b15cb3dSCy Schubert  <dd>Write the specified variables. If the <tt><i>assocID</i></tt> is zero, the variables are from the <a href="#system">system variables</a> name space, otherwise they are from the <a href="#peer">peer variables</a> name	space. The <tt><i>assocID</i></tt> is required, as the same name can occur in both spaces.</dd>
282*2b15cb3dSCy Schubert  <dt id="sysinfo"><tt>sysinfo</tt></dt>
283*2b15cb3dSCy Schubert  <dd>Display operational summary.</dd>
284*2b15cb3dSCy Schubert  <dt id="sysstats"><tt>sysstats</tt></dt>
285*2b15cb3dSCy Schubert  <dd>Print statistics counters maintained in the protocol module.</dd>
286*2b15cb3dSCy Schubert</dl>
287*2b15cb3dSCy Schubert<h4 id="status">Status Words and Kiss Codes</h4>
288*2b15cb3dSCy Schubert<p>The current state of the operating program is shown in a set of status words maintained by the system and each association separately. These words are displayed in the <tt>rv</tt> and <tt>as</tt> commands both in hexadecimal and decoded short tip strings. The codes, tips and short explanations are on the <a href="decode.html">Event Messages and Status Words</a> page. The page also includes a list of system and peer messages, the code for the latest of which is included in the status word.</p>
289*2b15cb3dSCy Schubert<p>Information resulting from protocol machine state transitions is displayed using an informal set of ASCII strings called <a href="decode.html#kiss">kiss codes</a>. The original purpose was for kiss-o'-death (KoD) packets sent by the server to advise the client of an unusual condition. They are now displayed, when appropriate, in the reference identifier field in various billboards.</p>
290*2b15cb3dSCy Schubert<h4 id="system">System Variables</h4>
291*2b15cb3dSCy Schubert<p>The following system variables appear in the <tt>rv</tt> billboard. Not all variables are displayed in some configurations.</p>
292*2b15cb3dSCy Schubert<table width="100%" border="1" cellspacing="2" cellpadding="2">
293*2b15cb3dSCy Schubert  <tr>
294*2b15cb3dSCy Schubert    <td>Variable</td>
295*2b15cb3dSCy Schubert    <td>Description</td>
296*2b15cb3dSCy Schubert  </tr>
297*2b15cb3dSCy Schubert  <tr>
298*2b15cb3dSCy Schubert    <td><tt>status</tt></td>
299*2b15cb3dSCy Schubert    <td><a href="decode.html#sys">system status word</a></td>
300*2b15cb3dSCy Schubert  </tr>
301*2b15cb3dSCy Schubert  <tr>
302*2b15cb3dSCy Schubert    <td><tt>version</tt></td>
303*2b15cb3dSCy Schubert    <td>NTP software version and build time</td>
304*2b15cb3dSCy Schubert  </tr>
305*2b15cb3dSCy Schubert  <tr>
306*2b15cb3dSCy Schubert    <td><tt>processor</tt></td>
307*2b15cb3dSCy Schubert    <td>hardware platform and version</td>
308*2b15cb3dSCy Schubert  </tr>
309*2b15cb3dSCy Schubert  <tr>
310*2b15cb3dSCy Schubert    <td><tt>system</tt></td>
311*2b15cb3dSCy Schubert    <td>operating system and version</td>
312*2b15cb3dSCy Schubert  </tr>
313*2b15cb3dSCy Schubert  <tr>
314*2b15cb3dSCy Schubert    <td><tt>leap</tt></td>
315*2b15cb3dSCy Schubert    <td>leap warning indicator (0-3)</td>
316*2b15cb3dSCy Schubert  </tr>
317*2b15cb3dSCy Schubert  <tr>
318*2b15cb3dSCy Schubert    <td><tt>stratum</tt></td>
319*2b15cb3dSCy Schubert    <td>stratum (1-15)</td>
320*2b15cb3dSCy Schubert  </tr>
321*2b15cb3dSCy Schubert  <tr>
322*2b15cb3dSCy Schubert    <td><tt>precision</tt></td>
323*2b15cb3dSCy Schubert    <td>precision (log<sub>2</sub> s)</td>
324*2b15cb3dSCy Schubert  </tr>
325*2b15cb3dSCy Schubert  <tr>
326*2b15cb3dSCy Schubert    <td><tt>rootdelay</tt></td>
327*2b15cb3dSCy Schubert    <td>total roundtrip delay to the primary reference clock</td>
328*2b15cb3dSCy Schubert  </tr>
329*2b15cb3dSCy Schubert  <tr>
330*2b15cb3dSCy Schubert    <td><tt>rootdisp</tt></td>
331*2b15cb3dSCy Schubert    <td>total dispersion to the primary reference clock</td>
332*2b15cb3dSCy Schubert  </tr>
333*2b15cb3dSCy Schubert  <tr>
334*2b15cb3dSCy Schubert    <td><tt>peer</tt></td>
335*2b15cb3dSCy Schubert    <td>system peer association ID</td>
336*2b15cb3dSCy Schubert  </tr>
337*2b15cb3dSCy Schubert  <tr>
338*2b15cb3dSCy Schubert    <td><tt>tc</tt></td>
339*2b15cb3dSCy Schubert    <td>time constant and poll exponent (log<sub>2</sub> s) (3-17)</td>
340*2b15cb3dSCy Schubert  </tr>
341*2b15cb3dSCy Schubert  <tr>
342*2b15cb3dSCy Schubert    <td><tt>mintc</tt></td>
343*2b15cb3dSCy Schubert    <td>minimum time constant (log<sub>2</sub> s) (3-10)</td>
344*2b15cb3dSCy Schubert  </tr>
345*2b15cb3dSCy Schubert  <tr>
346*2b15cb3dSCy Schubert    <td><tt>clock</tt></td>
347*2b15cb3dSCy Schubert    <td>date and time of day</td>
348*2b15cb3dSCy Schubert  </tr>
349*2b15cb3dSCy Schubert  <tr>
350*2b15cb3dSCy Schubert    <td><tt>refid</tt></td>
351*2b15cb3dSCy Schubert    <td>reference ID or <a href="decode.html#kiss">kiss code</a></td>
352*2b15cb3dSCy Schubert  </tr>
353*2b15cb3dSCy Schubert  <tr>
354*2b15cb3dSCy Schubert    <td><tt>reftime</tt></td>
355*2b15cb3dSCy Schubert    <td>reference time</td>
356*2b15cb3dSCy Schubert  </tr>
357*2b15cb3dSCy Schubert  <tr>
358*2b15cb3dSCy Schubert    <td><tt>offset</tt></td>
359*2b15cb3dSCy Schubert    <td>combined  offset of server relative to this host</td>
360*2b15cb3dSCy Schubert  </tr>
361*2b15cb3dSCy Schubert  <tr>
362*2b15cb3dSCy Schubert    <td><tt>sys_jitter</tt></td>
363*2b15cb3dSCy Schubert    <td>combined system jitter</td>
364*2b15cb3dSCy Schubert  </tr>
365*2b15cb3dSCy Schubert  <tr>
366*2b15cb3dSCy Schubert    <td><tt>frequency</tt></td>
367*2b15cb3dSCy Schubert    <td> frequency offset (PPM) relative to hardware clock</td>
368*2b15cb3dSCy Schubert  </tr>
369*2b15cb3dSCy Schubert  <tr>
370*2b15cb3dSCy Schubert    <td><tt>clk_wander</tt></td>
371*2b15cb3dSCy Schubert    <td>clock frequency wander (PPM)</td>
372*2b15cb3dSCy Schubert  </tr>
373*2b15cb3dSCy Schubert  <tr>
374*2b15cb3dSCy Schubert    <td><tt>clk_jitter</tt></td>
375*2b15cb3dSCy Schubert    <td>clock jitter</td>
376*2b15cb3dSCy Schubert  </tr>
377*2b15cb3dSCy Schubert  <tr>
378*2b15cb3dSCy Schubert    <td><tt>tai</tt></td>
379*2b15cb3dSCy Schubert    <td>TAI-UTC offset (s)</td>
380*2b15cb3dSCy Schubert  </tr>
381*2b15cb3dSCy Schubert  <tr>
382*2b15cb3dSCy Schubert    <td><tt>leapsec</tt></td>
383*2b15cb3dSCy Schubert    <td>NTP seconds when the next leap second is/was inserted</td>
384*2b15cb3dSCy Schubert  </tr>
385*2b15cb3dSCy Schubert  <tr>
386*2b15cb3dSCy Schubert    <td><tt>expire</tt></td>
387*2b15cb3dSCy Schubert    <td>NTP seconds when the NIST leapseconds file expires</td>
388*2b15cb3dSCy Schubert  </tr>
389*2b15cb3dSCy Schubert</table>
3909c2daa00SOllivier Robert<dl>
391*2b15cb3dSCy Schubert  <dt>The jitter and wander statistics are exponentially-weighted RMS averages.
392*2b15cb3dSCy Schubert    The system jitter is defined in the NTPv4 specification; the
393*2b15cb3dSCy Schubert    clock jitter statistic is computed by the clock discipline module.</dt>
394*2b15cb3dSCy Schubert  <dt>When the NTPv4 daemon is compiled with the OpenSSL software library, additional
395*2b15cb3dSCy Schubert    system variables are displayed, including some or all of the following, depending
396*2b15cb3dSCy Schubert    on the particular Autokey dance:</dt>
3979c2daa00SOllivier Robert</dl>
398*2b15cb3dSCy Schubert<table width="100%" border="1" cellspacing="2" cellpadding="2">
399*2b15cb3dSCy Schubert  <tr>
400*2b15cb3dSCy Schubert    <td>Variable</td>
401*2b15cb3dSCy Schubert    <td>Description</td>
402*2b15cb3dSCy Schubert  </tr>
403*2b15cb3dSCy Schubert  <tr>
404*2b15cb3dSCy Schubert    <td><tt>host</tt></td>
405*2b15cb3dSCy Schubert    <td>Autokey host name for this host</td>
406*2b15cb3dSCy Schubert  </tr>
407*2b15cb3dSCy Schubert  <tr>
408*2b15cb3dSCy Schubert    <td><tt>ident</tt></td>
409*2b15cb3dSCy Schubert    <td>Autokey group name for this host</td>
410*2b15cb3dSCy Schubert  </tr>
411*2b15cb3dSCy Schubert  <tr>
412*2b15cb3dSCy Schubert    <td><tt>flags</tt></td>
413*2b15cb3dSCy Schubert    <td>host flags  (see Autokey specification)</td>
414*2b15cb3dSCy Schubert  </tr>
415*2b15cb3dSCy Schubert  <tr>
416*2b15cb3dSCy Schubert    <td><tt>digest</tt></td>
417*2b15cb3dSCy Schubert    <td>OpenSSL message digest algorithm</td>
418*2b15cb3dSCy Schubert  </tr>
419*2b15cb3dSCy Schubert  <tr>
420*2b15cb3dSCy Schubert    <td><tt>signature</tt></td>
421*2b15cb3dSCy Schubert    <td>OpenSSL digest/signature scheme</td>
422*2b15cb3dSCy Schubert  </tr>
423*2b15cb3dSCy Schubert  <tr>
424*2b15cb3dSCy Schubert    <td><tt>update</tt></td>
425*2b15cb3dSCy Schubert    <td>NTP seconds at last signature update</td>
426*2b15cb3dSCy Schubert  </tr>
427*2b15cb3dSCy Schubert  <tr>
428*2b15cb3dSCy Schubert    <td><tt>cert</tt></td>
429*2b15cb3dSCy Schubert    <td>certificate subject, issuer and certificate flags</td>
430*2b15cb3dSCy Schubert  </tr>
431*2b15cb3dSCy Schubert  <tr>
432*2b15cb3dSCy Schubert    <td><tt>until</tt></td>
433*2b15cb3dSCy Schubert    <td>NTP seconds when the certificate expires</td>
434*2b15cb3dSCy Schubert  </tr>
435*2b15cb3dSCy Schubert</table>
436*2b15cb3dSCy Schubert<h4 id="peer">Peer Variables</h4>
437*2b15cb3dSCy Schubert<p>The following peer variables appear in the <tt>rv</tt> billboard for each association. Not all variables are displayed in some configurations.</p>
438*2b15cb3dSCy Schubert<table width="100%" border="1" cellspacing="2" cellpadding="2">
439*2b15cb3dSCy Schubert  <tr>
440*2b15cb3dSCy Schubert    <td>Variable</td>
441*2b15cb3dSCy Schubert    <td>Description</td>
442*2b15cb3dSCy Schubert  </tr>
443*2b15cb3dSCy Schubert  <tr>
444*2b15cb3dSCy Schubert    <td><tt>associd</tt></td>
445*2b15cb3dSCy Schubert    <td>association ID</td>
446*2b15cb3dSCy Schubert  </tr>
447*2b15cb3dSCy Schubert  <tr>
448*2b15cb3dSCy Schubert    <td><tt>status</tt></td>
449*2b15cb3dSCy Schubert    <td><a href="decode.html#peer">peer status word</a></td>
450*2b15cb3dSCy Schubert  </tr>
451*2b15cb3dSCy Schubert  <tr>
452*2b15cb3dSCy Schubert    <td><tt>srcadr<br>
453*2b15cb3dSCy Schubert      srcport</tt></td>
454*2b15cb3dSCy Schubert    <td>source (remote) IP address and port</td>
455*2b15cb3dSCy Schubert  </tr>
456*2b15cb3dSCy Schubert  <tr>
457*2b15cb3dSCy Schubert    <td><tt>dstadr<br>
458*2b15cb3dSCy Schubert      dstport</tt></td>
459*2b15cb3dSCy Schubert    <td>destination (local) IP address and port</td>
460*2b15cb3dSCy Schubert  </tr>
461*2b15cb3dSCy Schubert  <tr>
462*2b15cb3dSCy Schubert    <td><tt>leap</tt></td>
463*2b15cb3dSCy Schubert    <td>leap indicator (0-3)</td>
464*2b15cb3dSCy Schubert  </tr>
465*2b15cb3dSCy Schubert  <tr>
466*2b15cb3dSCy Schubert    <td><tt>stratum</tt></td>
467*2b15cb3dSCy Schubert    <td>stratum (0-15)</td>
468*2b15cb3dSCy Schubert  </tr>
469*2b15cb3dSCy Schubert  <tr>
470*2b15cb3dSCy Schubert    <td><tt>precision</tt></td>
471*2b15cb3dSCy Schubert    <td>precision (log<sub>2</sub> s)</td>
472*2b15cb3dSCy Schubert  </tr>
473*2b15cb3dSCy Schubert  <tr>
474*2b15cb3dSCy Schubert    <td><tt>rootdelay</tt></td>
475*2b15cb3dSCy Schubert    <td>total roundtrip delay to the primary reference clock</td>
476*2b15cb3dSCy Schubert  </tr>
477*2b15cb3dSCy Schubert  <tr>
478*2b15cb3dSCy Schubert    <td><tt>rootdisp</tt></td>
479*2b15cb3dSCy Schubert    <td>total root dispersion to the primary reference clock</td>
480*2b15cb3dSCy Schubert  </tr>
481*2b15cb3dSCy Schubert  <tr>
482*2b15cb3dSCy Schubert    <td><tt>refid</tt></td>
483*2b15cb3dSCy Schubert    <td>reference ID or <a href="decode.html#kiss">kiss code</a></td>
484*2b15cb3dSCy Schubert  </tr>
485*2b15cb3dSCy Schubert  <tr>
486*2b15cb3dSCy Schubert    <td><tt>reftime</tt></td>
487*2b15cb3dSCy Schubert    <td>reference time</td>
488*2b15cb3dSCy Schubert  </tr>
489*2b15cb3dSCy Schubert  <tr>
490*2b15cb3dSCy Schubert    <td><tt>reach</tt></td>
491*2b15cb3dSCy Schubert    <td>reach register (octal)</td>
492*2b15cb3dSCy Schubert  </tr>
493*2b15cb3dSCy Schubert  <tr>
494*2b15cb3dSCy Schubert    <td><tt>unreach</tt></td>
495*2b15cb3dSCy Schubert    <td>unreach counter</td>
496*2b15cb3dSCy Schubert  </tr>
497*2b15cb3dSCy Schubert  <tr>
498*2b15cb3dSCy Schubert    <td><tt>hmode</tt></td>
499*2b15cb3dSCy Schubert    <td>host mode (1-6)</td>
500*2b15cb3dSCy Schubert  </tr>
501*2b15cb3dSCy Schubert  <tr>
502*2b15cb3dSCy Schubert    <td><tt>pmode</tt></td>
503*2b15cb3dSCy Schubert    <td>peer mode (1-5)</td>
504*2b15cb3dSCy Schubert  </tr>
505*2b15cb3dSCy Schubert  <tr>
506*2b15cb3dSCy Schubert    <td><tt>hpoll</tt></td>
507*2b15cb3dSCy Schubert    <td>host poll exponent (log<sub>2</sub> s) (3-17)</td>
508*2b15cb3dSCy Schubert  </tr>
509*2b15cb3dSCy Schubert  <tr>
510*2b15cb3dSCy Schubert    <td><tt>ppoll</tt></td>
511*2b15cb3dSCy Schubert    <td>peer poll exponent (log<sub>2</sub> s) (3-17)</td>
512*2b15cb3dSCy Schubert  </tr>
513*2b15cb3dSCy Schubert  <tr>
514*2b15cb3dSCy Schubert    <td><tt>headway</tt></td>
515*2b15cb3dSCy Schubert    <td>headway (see <a href="rate.html">Rate Management and the Kiss-o'-Death Packet)</a></td>
516*2b15cb3dSCy Schubert  </tr>
517*2b15cb3dSCy Schubert  <tr>
518*2b15cb3dSCy Schubert    <td><tt>flash</tt></td>
519*2b15cb3dSCy Schubert    <td><a href="decode.html#flash">flash status word</a></td>
520*2b15cb3dSCy Schubert  </tr>
521*2b15cb3dSCy Schubert  <tr>
522*2b15cb3dSCy Schubert    <td><tt>offset</tt></td>
523*2b15cb3dSCy Schubert    <td>filter offset</td>
524*2b15cb3dSCy Schubert  </tr>
525*2b15cb3dSCy Schubert  <tr>
526*2b15cb3dSCy Schubert    <td><tt>delay</tt></td>
527*2b15cb3dSCy Schubert    <td>filter delay</td>
528*2b15cb3dSCy Schubert  </tr>
529*2b15cb3dSCy Schubert  <tr>
530*2b15cb3dSCy Schubert    <td><tt>dispersion</tt></td>
531*2b15cb3dSCy Schubert    <td>filter dispersion</td>
532*2b15cb3dSCy Schubert  </tr>
533*2b15cb3dSCy Schubert  <tr>
534*2b15cb3dSCy Schubert    <td><tt>jitter</tt></td>
535*2b15cb3dSCy Schubert    <td>filter jitter</td>
536*2b15cb3dSCy Schubert  </tr>
537*2b15cb3dSCy Schubert  <tr>
538*2b15cb3dSCy Schubert    <td><tt>ident</tt></td>
539*2b15cb3dSCy Schubert    <td>Autokey group name for this association</td>
540*2b15cb3dSCy Schubert  </tr>
541*2b15cb3dSCy Schubert  <tr>
542*2b15cb3dSCy Schubert    <td><tt>bias</tt></td>
543*2b15cb3dSCy Schubert    <td>unicast/broadcast bias</td>
544*2b15cb3dSCy Schubert  </tr>
545*2b15cb3dSCy Schubert  <tr>
546*2b15cb3dSCy Schubert    <td><tt>xleave</tt></td>
547*2b15cb3dSCy Schubert    <td>interleave delay (see <a href="xleave.html">NTP Interleaved Modes</a>)</td>
548*2b15cb3dSCy Schubert  </tr>
549*2b15cb3dSCy Schubert</table>
550*2b15cb3dSCy Schubert<p>The bias variable is calculated when the first broadcast packet is received
551*2b15cb3dSCy Schubert  after the calibration volley. It represents the offset of the broadcast
552*2b15cb3dSCy Schubert  subgraph relative to the unicast subgraph. The xleave variable appears
553*2b15cb3dSCy Schubert  only the interleaved symmetric and interleaved modes. It represents
554*2b15cb3dSCy Schubert  the internal queuing, buffering and transmission delays for the preceding
555*2b15cb3dSCy Schubert  packet.</p>
5569c2daa00SOllivier Robert<p>When the NTPv4 daemon is compiled with the OpenSSL software library, additional peer variables are displayed, including the following:</p>
557*2b15cb3dSCy Schubert<table width="100%" border="1" cellspacing="2" cellpadding="2">
558*2b15cb3dSCy Schubert  <tr>
559*2b15cb3dSCy Schubert    <td>Variable</td>
560*2b15cb3dSCy Schubert    <td>Description</td>
561*2b15cb3dSCy Schubert  </tr>
562*2b15cb3dSCy Schubert  <tr>
563*2b15cb3dSCy Schubert    <td><tt>flags</tt></td>
564*2b15cb3dSCy Schubert    <td>peer flags (see Autokey specification)</td>
565*2b15cb3dSCy Schubert  </tr>
566*2b15cb3dSCy Schubert  <tr>
567*2b15cb3dSCy Schubert    <td><tt>host</tt></td>
568*2b15cb3dSCy Schubert    <td>Autokey server name</td>
569*2b15cb3dSCy Schubert  </tr>
570*2b15cb3dSCy Schubert  <tr>
571*2b15cb3dSCy Schubert    <td><tt>flags</tt></td>
572*2b15cb3dSCy Schubert    <td>peer flags (see Autokey specification)</td>
573*2b15cb3dSCy Schubert  </tr>
574*2b15cb3dSCy Schubert  <tr>
575*2b15cb3dSCy Schubert    <td><tt>signature</tt></td>
576*2b15cb3dSCy Schubert    <td>OpenSSL digest/signature scheme</td>
577*2b15cb3dSCy Schubert  </tr>
578*2b15cb3dSCy Schubert  <tr>
579*2b15cb3dSCy Schubert    <td><tt>initsequence</tt></td>
580*2b15cb3dSCy Schubert    <td>initial key ID</td>
581*2b15cb3dSCy Schubert  </tr>
582*2b15cb3dSCy Schubert  <tr>
583*2b15cb3dSCy Schubert    <td><tt>initkey</tt></td>
584*2b15cb3dSCy Schubert    <td>initial key index</td>
585*2b15cb3dSCy Schubert  </tr>
586*2b15cb3dSCy Schubert  <tr>
587*2b15cb3dSCy Schubert    <td><tt>timestamp</tt></td>
588*2b15cb3dSCy Schubert    <td>Autokey signature timestamp</td>
589*2b15cb3dSCy Schubert  </tr>
590*2b15cb3dSCy Schubert</table>
591*2b15cb3dSCy Schubert<h4 id="clock">Clock Variables</h4>
592*2b15cb3dSCy Schubert<p>The following clock variables appear in the <tt>cv</tt> billboard for each association with a reference clock. Not all variables are displayed in some configurations.</p>
593*2b15cb3dSCy Schubert<table width="100%" border="1" cellspacing="2" cellpadding="2">
594*2b15cb3dSCy Schubert  <tr>
595*2b15cb3dSCy Schubert    <td>Variable</td>
596*2b15cb3dSCy Schubert    <td>Description</td>
597*2b15cb3dSCy Schubert  </tr>
598*2b15cb3dSCy Schubert  <tr>
599*2b15cb3dSCy Schubert    <td><tt>associd</tt></td>
600*2b15cb3dSCy Schubert    <td>association ID</td>
601*2b15cb3dSCy Schubert  </tr>
602*2b15cb3dSCy Schubert  <tr>
603*2b15cb3dSCy Schubert    <td><tt>status</tt></td>
604*2b15cb3dSCy Schubert    <td><a href="decode.html#clock">clock status word</a></td>
605*2b15cb3dSCy Schubert  </tr>
606*2b15cb3dSCy Schubert  <tr>
607*2b15cb3dSCy Schubert    <td><tt>device</tt></td>
608*2b15cb3dSCy Schubert    <td>device description</td>
609*2b15cb3dSCy Schubert  </tr>
610*2b15cb3dSCy Schubert  <tr>
611*2b15cb3dSCy Schubert    <td><tt>timecode</tt></td>
612*2b15cb3dSCy Schubert    <td>ASCII time code string (specific to device)</td>
613*2b15cb3dSCy Schubert  </tr>
614*2b15cb3dSCy Schubert  <tr>
615*2b15cb3dSCy Schubert    <td><tt>poll</tt></td>
616*2b15cb3dSCy Schubert    <td>poll messages sent</td>
617*2b15cb3dSCy Schubert  </tr>
618*2b15cb3dSCy Schubert  <tr>
619*2b15cb3dSCy Schubert    <td><tt>noreply</tt></td>
620*2b15cb3dSCy Schubert    <td>no reply</td>
621*2b15cb3dSCy Schubert  </tr>
622*2b15cb3dSCy Schubert  <tr>
623*2b15cb3dSCy Schubert    <td><tt>badformat</tt></td>
624*2b15cb3dSCy Schubert    <td>bad format</td>
625*2b15cb3dSCy Schubert  </tr>
626*2b15cb3dSCy Schubert  <tr>
627*2b15cb3dSCy Schubert    <td><tt>baddata</tt></td>
628*2b15cb3dSCy Schubert    <td>bad date or time</td>
629*2b15cb3dSCy Schubert  </tr>
630*2b15cb3dSCy Schubert  <tr>
631*2b15cb3dSCy Schubert    <td><tt>fudgetime1</tt></td>
632*2b15cb3dSCy Schubert    <td>fudge time 1</td>
633*2b15cb3dSCy Schubert  </tr>
634*2b15cb3dSCy Schubert  <tr>
635*2b15cb3dSCy Schubert    <td><tt>fudgetime2</tt></td>
636*2b15cb3dSCy Schubert    <td>fudge time 2</td>
637*2b15cb3dSCy Schubert  </tr>
638*2b15cb3dSCy Schubert  <tr>
639*2b15cb3dSCy Schubert    <td><tt>stratum</tt></td>
640*2b15cb3dSCy Schubert    <td>driver stratum</td>
641*2b15cb3dSCy Schubert  </tr>
642*2b15cb3dSCy Schubert  <tr>
643*2b15cb3dSCy Schubert    <td><tt>refid</tt></td>
644*2b15cb3dSCy Schubert    <td>driver reference ID</td>
645*2b15cb3dSCy Schubert  </tr>
646*2b15cb3dSCy Schubert  <tr>
647*2b15cb3dSCy Schubert    <td><tt>flags</tt></td>
648*2b15cb3dSCy Schubert    <td>driver flags</td>
649*2b15cb3dSCy Schubert  </tr>
650*2b15cb3dSCy Schubert</table>
6519c2daa00SOllivier Robert<hr>
6529c2daa00SOllivier Robert<script type="text/javascript" language="javascript" src="scripts/footer.txt"></script>
6539c2daa00SOllivier Robert</body>
6549c2daa00SOllivier Robert</html>
655