Home | History | Annotate | Line # | Download | only in ntpq
      1      1.1    kardel /* -*- Mode: Text -*- */
      2      1.1    kardel 
      3      1.1    kardel autogen definitions options;
      4      1.1    kardel 
      5      1.1    kardel #include copyright.def
      6      1.1    kardel #include homerc.def
      7      1.1    kardel #include autogen-version.def
      8      1.1    kardel 
      9      1.1    kardel prog-name      = "ntpq";
     10      1.1    kardel prog-title     = "standard NTP query program";
     11      1.1    kardel argument       = '[ host ...]';
     12      1.1    kardel 
     13      1.1    kardel flag = {
     14      1.1    kardel     name      = ipv4;
     15      1.1    kardel     flags-cant = ipv6;
     16      1.1    kardel     value     = 4;
     17  1.1.1.6  christos     descrip   = "Force IPv4 name resolution";
     18      1.1    kardel     doc = <<-  _EndOfDoc_
     19  1.1.1.6  christos 	Force resolution of following host names on the command line
     20      1.1    kardel 	to the IPv4 namespace.
     21      1.1    kardel 	_EndOfDoc_;
     22      1.1    kardel };
     23      1.1    kardel 
     24      1.1    kardel flag = {
     25      1.1    kardel     name      = ipv6;
     26      1.1    kardel     flags-cant = ipv4;
     27      1.1    kardel     value     = 6;
     28  1.1.1.6  christos     descrip   = "Force IPv6 name resolution";
     29      1.1    kardel     doc = <<-  _EndOfDoc_
     30  1.1.1.6  christos 	Force resolution of following host names on the command line
     31      1.1    kardel 	to the IPv6 namespace.
     32      1.1    kardel 	_EndOfDoc_;
     33      1.1    kardel };
     34      1.1    kardel 
     35      1.1    kardel flag = {
     36      1.1    kardel     name      = command;
     37      1.1    kardel     value     = c;
     38      1.1    kardel     arg-type  = string;
     39      1.1    kardel     descrip   = "run a command and exit";
     40      1.1    kardel     max       = NOLIMIT;
     41      1.1    kardel     arg-name  = cmd;
     42      1.1    kardel     call-proc = ntpq_custom_opt_handler;
     43      1.1    kardel     doc = <<-  _EndOfDoc_
     44      1.1    kardel 	The following argument is interpreted as an interactive format command
     45      1.1    kardel 	and is added to the list of commands to be executed on the specified
     46      1.1    kardel 	host(s).
     47      1.1    kardel 	_EndOfDoc_;
     48      1.1    kardel };
     49      1.1    kardel 
     50      1.1    kardel #include debug-opt.def
     51      1.1    kardel 
     52      1.1    kardel flag = {
     53      1.1    kardel     name      = interactive;
     54      1.1    kardel     value     = i;
     55      1.1    kardel     flags-cant = command, peers;
     56      1.1    kardel     descrip   = "Force ntpq to operate in interactive mode";
     57      1.1    kardel     doc = <<-  _EndOfDoc_
     58  1.1.1.2  christos 	Force @code{ntpq} to operate in interactive mode.
     59  1.1.1.2  christos 	Prompts will be written to the standard output and
     60  1.1.1.2  christos 	commands read from the standard input.
     61      1.1    kardel 	_EndOfDoc_;
     62      1.1    kardel };
     63      1.1    kardel 
     64      1.1    kardel flag = {
     65      1.1    kardel     name      = numeric;
     66      1.1    kardel     value     = n;
     67      1.1    kardel     descrip   = "numeric host addresses";
     68      1.1    kardel     doc = <<-  _EndOfDoc_
     69      1.1    kardel 	Output all host addresses in dotted-quad numeric format rather than
     70  1.1.1.6  christos 	converting to the canonical host names.
     71      1.1    kardel 	_EndOfDoc_;
     72      1.1    kardel };
     73      1.1    kardel 
     74      1.1    kardel flag = {
     75      1.1    kardel     name      = old-rv;
     76      1.1    kardel     descrip   = "Always output status line with readvar";
     77      1.1    kardel     doc = <<-  _EndOfDoc_
     78  1.1.1.2  christos 	By default, @code{ntpq} now suppresses the @code{associd=...}
     79  1.1.1.2  christos 	line that precedes the output of @code{readvar}
     80  1.1.1.2  christos 	(alias @code{rv}) when a single variable is requested, such as
     81  1.1.1.2  christos 	@code{ntpq -c "rv 0 offset"}.
     82  1.1.1.2  christos 	This option causes @code{ntpq} to include both lines of output
     83  1.1.1.2  christos 	for a single-variable @code{readvar}.
     84  1.1.1.2  christos 	Using an environment variable to
     85      1.1    kardel 	preset this option in a script will enable both older and
     86  1.1.1.2  christos 	newer @code{ntpq} to behave identically in this regard.
     87      1.1    kardel 	_EndOfDoc_;
     88      1.1    kardel };
     89      1.1    kardel 
     90  1.1.1.3  christos flag = {
     91  1.1.1.3  christos     name      = peers;
     92  1.1.1.3  christos     value     = p;
     93  1.1.1.3  christos     descrip   = "Print a list of the peers";
     94  1.1.1.3  christos     flags-cant = interactive;
     95  1.1.1.3  christos     call-proc = ntpq_custom_opt_handler;
     96  1.1.1.3  christos     doc = <<-  _EndOfDoc_
     97  1.1.1.3  christos 	Print a list of the peers known to the server as well as a summary
     98  1.1.1.3  christos 	of their state. This is equivalent to the 'peers' interactive command.
     99  1.1.1.3  christos 	_EndOfDoc_;
    100  1.1.1.3  christos };
    101  1.1.1.3  christos 
    102  1.1.1.3  christos flag = {
    103  1.1.1.5  christos     name      = refid;
    104  1.1.1.5  christos     value     = r;
    105  1.1.1.5  christos     descrip   = "Set default display type for S2+ refids";
    106  1.1.1.5  christos     arg-type  = keyword;
    107  1.1.1.5  christos     keyword   = hash, ipv4;
    108  1.1.1.5  christos     arg-default = ipv4;
    109  1.1.1.5  christos     doc = <<-  _EndOfDoc_
    110  1.1.1.5  christos 	Set the default display format for S2+ refids.
    111  1.1.1.5  christos 	_EndOfDoc_;
    112  1.1.1.5  christos };
    113  1.1.1.5  christos 
    114  1.1.1.5  christos flag = {
    115  1.1.1.7  christos     name      = unconnected;
    116  1.1.1.7  christos     value     = u;
    117  1.1.1.7  christos     descrip   = "Use unconnected UDP to communicate with ntpd (default on Windows)";
    118  1.1.1.7  christos     doc = <<-  _EndOfDoc_
    119  1.1.1.7  christos 	Open an unconnected UDP association to ntpd (the default
    120  1.1.1.7  christos 	on Windows).
    121  1.1.1.7  christos 	_EndOfDoc_;
    122  1.1.1.7  christos };
    123  1.1.1.7  christos 
    124  1.1.1.7  christos flag = {
    125  1.1.1.3  christos     name      = wide;
    126  1.1.1.3  christos     value     = w;
    127  1.1.1.3  christos     descrip   = "Display the full 'remote' value";
    128  1.1.1.3  christos     doc = <<-  _EndOfDoc_
    129  1.1.1.3  christos 	Display the full value of the 'remote' value.  If this requires
    130  1.1.1.3  christos 	more than 15 characters, display the full value, emit a newline,
    131  1.1.1.3  christos 	and continue the data display properly indented on the next line.
    132  1.1.1.3  christos 	_EndOfDoc_;
    133  1.1.1.3  christos };
    134  1.1.1.3  christos 
    135  1.1.1.2  christos doc-section	= {
    136  1.1.1.2  christos   ds-type	= 'DESCRIPTION';
    137  1.1.1.2  christos   ds-format	= 'mdoc';
    138  1.1.1.2  christos   ds-text	= <<-  _END_PROG_MDOC_DESCRIP
    139  1.1.1.6  christos .Pp
    140  1.1.1.2  christos The
    141  1.1.1.2  christos .Nm
    142  1.1.1.6  christos utility program is used to query NTP servers to monitor NTP operations
    143  1.1.1.6  christos and performance, requesting
    144  1.1.1.2  christos information about current state and/or changes in that state.
    145  1.1.1.2  christos The program may be run either in interactive mode or controlled using
    146  1.1.1.2  christos command line arguments.
    147  1.1.1.2  christos Requests to read and write arbitrary
    148  1.1.1.2  christos variables can be assembled, with raw and pretty-printed output
    149  1.1.1.2  christos options being available.
    150  1.1.1.2  christos The
    151  1.1.1.2  christos .Nm
    152  1.1.1.2  christos utility can also obtain and print a
    153  1.1.1.2  christos list of peers in a common format by sending multiple queries to the
    154  1.1.1.2  christos server.
    155  1.1.1.6  christos .Pp
    156  1.1.1.2  christos If one or more request options is included on the command line
    157  1.1.1.2  christos when
    158  1.1.1.2  christos .Nm
    159  1.1.1.2  christos is executed, each of the requests will be sent
    160  1.1.1.2  christos to the NTP servers running on each of the hosts given as command
    161  1.1.1.2  christos line arguments, or on localhost by default.
    162  1.1.1.2  christos If no request options
    163  1.1.1.2  christos are given,
    164  1.1.1.2  christos .Nm
    165  1.1.1.2  christos will attempt to read commands from the
    166  1.1.1.2  christos standard input and execute these on the NTP server running on the
    167  1.1.1.2  christos first host given on the command line, again defaulting to localhost
    168  1.1.1.2  christos when no other host is specified.
    169  1.1.1.2  christos The
    170  1.1.1.2  christos .Nm
    171  1.1.1.2  christos utility will prompt for
    172  1.1.1.2  christos commands if the standard input is a terminal device.
    173  1.1.1.6  christos .Pp
    174  1.1.1.2  christos .Nm
    175  1.1.1.2  christos uses NTP mode 6 packets to communicate with the
    176  1.1.1.2  christos NTP server, and hence can be used to query any compatible server on
    177  1.1.1.2  christos the network which permits it.
    178  1.1.1.2  christos Note that since NTP is a UDP protocol
    179  1.1.1.2  christos this communication will be somewhat unreliable, especially over
    180  1.1.1.2  christos large distances in terms of network topology.
    181  1.1.1.2  christos The
    182  1.1.1.2  christos .Nm
    183  1.1.1.2  christos utility makes
    184  1.1.1.2  christos one attempt to retransmit requests, and will time requests out if
    185  1.1.1.2  christos the remote host is not heard from within a suitable timeout
    186  1.1.1.2  christos time.
    187  1.1.1.6  christos .Pp
    188  1.1.1.6  christos Note that in contexts where a host name is expected, a
    189  1.1.1.6  christos .Fl 4
    190  1.1.1.6  christos qualifier preceding the host name forces resolution to the IPv4
    191  1.1.1.6  christos namespace, while a
    192  1.1.1.6  christos .Fl 6
    193  1.1.1.6  christos qualifier forces resolution to the IPv6 namespace.
    194  1.1.1.6  christos For examples and usage, see the
    195  1.1.1.6  christos .Dq NTP Debugging Techniques
    196  1.1.1.6  christos page.
    197  1.1.1.6  christos .Pp
    198  1.1.1.2  christos Specifying a
    199  1.1.1.2  christos command line option other than
    200  1.1.1.2  christos .Fl i
    201  1.1.1.2  christos or
    202  1.1.1.2  christos .Fl n
    203  1.1.1.2  christos will
    204  1.1.1.2  christos cause the specified query (queries) to be sent to the indicated
    205  1.1.1.2  christos host(s) immediately.
    206  1.1.1.2  christos Otherwise,
    207  1.1.1.2  christos .Nm
    208  1.1.1.2  christos will attempt to read
    209  1.1.1.2  christos interactive format commands from the standard input.
    210  1.1.1.6  christos 
    211  1.1.1.2  christos .Ss "Internal Commands"
    212  1.1.1.6  christos .Pp
    213  1.1.1.2  christos Interactive format commands consist of a keyword followed by zero
    214  1.1.1.2  christos to four arguments.
    215  1.1.1.2  christos Only enough characters of the full keyword to
    216  1.1.1.2  christos uniquely identify the command need be typed.
    217  1.1.1.6  christos .Pp
    218  1.1.1.2  christos A
    219  1.1.1.2  christos number of interactive format commands are executed entirely within
    220  1.1.1.2  christos the
    221  1.1.1.2  christos .Nm
    222  1.1.1.6  christos utility itself and do not result in NTP
    223  1.1.1.2  christos requests being sent to a server.
    224  1.1.1.2  christos These are described following.
    225  1.1.1.6  christos .Bl -tag -width "help [command]" -compact -offset indent
    226  1.1.1.6  christos .It Ic ? Op Ar command
    227  1.1.1.6  christos .It Ic help Op Ar command
    228  1.1.1.2  christos A
    229  1.1.1.2  christos .Ql \&?
    230  1.1.1.6  christos by itself will print a list of all the commands
    231  1.1.1.6  christos known to
    232  1.1.1.2  christos .Nm .
    233  1.1.1.2  christos A
    234  1.1.1.2  christos .Ql \&?
    235  1.1.1.6  christos followed by a command name will print function and usage
    236  1.1.1.2  christos information about the command.
    237  1.1.1.6  christos .It Ic addvars Ar name Ns Oo \&= Ns Ar value Oc Ns Op ,...
    238  1.1.1.6  christos .It Ic rmvars Ar name Ns Op ,...
    239  1.1.1.2  christos .It Ic clearvars
    240  1.1.1.3  christos .It Ic showvars
    241  1.1.1.6  christos The arguments to this command consist of a list of
    242  1.1.1.2  christos items of the form
    243  1.1.1.6  christos .Ar name Ns Op \&= Ns Ar value ,
    244  1.1.1.2  christos where the
    245  1.1.1.6  christos .No \&= Ns Ar value
    246  1.1.1.2  christos is ignored, and can be omitted,
    247  1.1.1.2  christos in requests to the server to read variables.
    248  1.1.1.2  christos The
    249  1.1.1.2  christos .Nm
    250  1.1.1.6  christos utility maintains an internal list in which data to be included in
    251  1.1.1.6  christos messages can be assembled, and displayed or set using the
    252  1.1.1.2  christos .Ic readlist
    253  1.1.1.2  christos and
    254  1.1.1.2  christos .Ic writelist
    255  1.1.1.2  christos commands described below.
    256  1.1.1.2  christos The
    257  1.1.1.2  christos .Ic addvars
    258  1.1.1.2  christos command allows variables and their optional values to be added to
    259  1.1.1.2  christos the list.
    260  1.1.1.2  christos If more than one variable is to be added, the list should
    261  1.1.1.2  christos be comma-separated and not contain white space.
    262  1.1.1.2  christos The
    263  1.1.1.2  christos .Ic rmvars
    264  1.1.1.2  christos command can be used to remove individual variables from the list,
    265  1.1.1.2  christos while the
    266  1.1.1.6  christos .Ic clearvars
    267  1.1.1.2  christos command removes all variables from the
    268  1.1.1.2  christos list.
    269  1.1.1.3  christos The
    270  1.1.1.3  christos .Ic showvars
    271  1.1.1.3  christos command displays the current list of optional variables.
    272  1.1.1.6  christos .It Ic authenticate Op Cm yes Ns | Ns Cm no
    273  1.1.1.2  christos Normally
    274  1.1.1.2  christos .Nm
    275  1.1.1.2  christos does not authenticate requests unless
    276  1.1.1.2  christos they are write requests.
    277  1.1.1.2  christos The command
    278  1.1.1.6  christos .Ic authenticate Cm yes
    279  1.1.1.2  christos causes
    280  1.1.1.2  christos .Nm
    281  1.1.1.2  christos to send authentication with all requests it
    282  1.1.1.2  christos makes.
    283  1.1.1.2  christos Authenticated requests causes some servers to handle
    284  1.1.1.6  christos requests slightly differently.
    285  1.1.1.2  christos The command
    286  1.1.1.6  christos .Ic authenticate
    287  1.1.1.2  christos causes
    288  1.1.1.2  christos .Nm
    289  1.1.1.2  christos to display whether or not
    290  1.1.1.6  christos it is currently authenticating requests.
    291  1.1.1.2  christos .It Ic cooked
    292  1.1.1.2  christos Causes output from query commands to be "cooked", so that
    293  1.1.1.2  christos variables which are recognized by
    294  1.1.1.2  christos .Nm
    295  1.1.1.2  christos will have their
    296  1.1.1.2  christos values reformatted for human consumption.
    297  1.1.1.2  christos Variables which
    298  1.1.1.2  christos .Nm
    299  1.1.1.6  christos could not decode completely are
    300  1.1.1.2  christos marked with a trailing
    301  1.1.1.2  christos .Ql \&? .
    302  1.1.1.6  christos .It Ic debug Op Cm more Ns | Ns Cm less Ns | Ns Cm off
    303  1.1.1.2  christos With no argument, displays the current debug level.
    304  1.1.1.6  christos Otherwise, the debugging level is changed as indicated.
    305  1.1.1.6  christos .It Ic delay Op Ar milliseconds
    306  1.1.1.2  christos Specify a time interval to be added to timestamps included in
    307  1.1.1.2  christos requests which require authentication.
    308  1.1.1.2  christos This is used to enable
    309  1.1.1.2  christos (unreliable) server reconfiguration over long delay network paths
    310  1.1.1.2  christos or between machines whose clocks are unsynchronized.
    311  1.1.1.2  christos Actually the
    312  1.1.1.2  christos server does not now require timestamps in authenticated requests,
    313  1.1.1.2  christos so this command may be obsolete.
    314  1.1.1.6  christos Without any arguments, displays the current delay.
    315  1.1.1.6  christos .It Ic drefid Op Cm hash Ns | Ns Cm ipv4
    316  1.1.1.6  christos Display refids as IPv4 or hash.
    317  1.1.1.6  christos Without any arguments, displays whether refids are shown as IPv4
    318  1.1.1.6  christos addresses or hashes.
    319  1.1.1.3  christos .It Ic exit
    320  1.1.1.3  christos Exit
    321  1.1.1.3  christos .Nm .
    322  1.1.1.6  christos .It Ic host Op Ar name
    323  1.1.1.2  christos Set the host to which future queries will be sent.
    324  1.1.1.6  christos The
    325  1.1.1.6  christos .Ar name
    326  1.1.1.2  christos may be either a host name or a numeric address.
    327  1.1.1.6  christos Without any arguments, displays the current host.
    328  1.1.1.6  christos .It Ic hostnames Op Cm yes Ns | Ns Cm no
    329  1.1.1.2  christos If
    330  1.1.1.2  christos .Cm yes
    331  1.1.1.2  christos is specified, host names are printed in
    332  1.1.1.2  christos information displays.
    333  1.1.1.2  christos If
    334  1.1.1.2  christos .Cm no
    335  1.1.1.2  christos is specified, numeric
    336  1.1.1.2  christos addresses are printed instead.
    337  1.1.1.2  christos The default is
    338  1.1.1.2  christos .Cm yes ,
    339  1.1.1.2  christos unless
    340  1.1.1.2  christos modified using the command line
    341  1.1.1.2  christos .Fl n
    342  1.1.1.2  christos switch.
    343  1.1.1.6  christos Without any arguments, displays whether host names or numeric addresses
    344  1.1.1.6  christos are shown.
    345  1.1.1.6  christos .It Ic keyid Op Ar keyid
    346  1.1.1.2  christos This command allows the specification of a key number to be
    347  1.1.1.2  christos used to authenticate configuration requests.
    348  1.1.1.2  christos This must correspond
    349  1.1.1.4  christos to the
    350  1.1.1.4  christos .Cm controlkey
    351  1.1.1.4  christos key number the server has been configured to use for this
    352  1.1.1.2  christos purpose.
    353  1.1.1.6  christos Without any arguments, displays the current
    354  1.1.1.6  christos .Ar keyid .
    355  1.1.1.6  christos .It Ic keytype Op Ar digest
    356  1.1.1.6  christos Specify the digest algorithm to use for authenticating requests, with default
    357  1.1.1.6  christos .Cm MD5 .
    358  1.1.1.3  christos If
    359  1.1.1.3  christos .Nm
    360  1.1.1.6  christos was built with OpenSSL support, and OpenSSL is installed,
    361  1.1.1.6  christos .Ar digest
    362  1.1.1.6  christos can be any message digest algorithm supported by OpenSSL.
    363  1.1.1.3  christos If no argument is given, the current
    364  1.1.1.6  christos .Ic keytype Ar digest
    365  1.1.1.6  christos algorithm used is displayed.
    366  1.1.1.6  christos .It Ic ntpversion Op Cm 1 Ns | Ns Cm 2 Ns | Ns Cm 3 Ns | Ns Cm 4
    367  1.1.1.2  christos Sets the NTP version number which
    368  1.1.1.2  christos .Nm
    369  1.1.1.2  christos claims in
    370  1.1.1.2  christos packets.
    371  1.1.1.2  christos Defaults to 3, and note that mode 6 control messages (and
    372  1.1.1.2  christos modes, for that matter) didn't exist in NTP version 1.
    373  1.1.1.2  christos There appear
    374  1.1.1.2  christos to be no servers left which demand version 1.
    375  1.1.1.2  christos With no argument, displays the current NTP version that will be used
    376  1.1.1.2  christos when communicating with servers.
    377  1.1.1.2  christos .It Ic passwd
    378  1.1.1.2  christos This command prompts you to type in a password (which will not
    379  1.1.1.2  christos be echoed) which will be used to authenticate configuration
    380  1.1.1.2  christos requests.
    381  1.1.1.2  christos The password must correspond to the key configured for
    382  1.1.1.2  christos use by the NTP server for this purpose if such requests are to be
    383  1.1.1.2  christos successful.
    384  1.1.1.6  christos .It Ic poll Oo Ar n Oc Op Cm verbose
    385  1.1.1.6  christos Poll an NTP server in client mode
    386  1.1.1.6  christos .Ar n
    387  1.1.1.6  christos times.
    388  1.1.1.6  christos Poll not implemented yet.
    389  1.1.1.3  christos .It Ic quit
    390  1.1.1.3  christos Exit
    391  1.1.1.3  christos .Nm .
    392  1.1.1.2  christos .It Ic raw
    393  1.1.1.2  christos Causes all output from query commands is printed as received
    394  1.1.1.2  christos from the remote server.
    395  1.1.1.2  christos The only formating/interpretation done on
    396  1.1.1.2  christos the data is to transform nonascii data into a printable (but barely
    397  1.1.1.2  christos understandable) form.
    398  1.1.1.6  christos .It Ic timeout Op Ar milliseconds
    399  1.1.1.2  christos Specify a timeout period for responses to server queries.
    400  1.1.1.2  christos The
    401  1.1.1.2  christos default is about 5000 milliseconds.
    402  1.1.1.6  christos Without any arguments, displays the current timeout period.
    403  1.1.1.2  christos Note that since
    404  1.1.1.2  christos .Nm
    405  1.1.1.2  christos retries each query once after a timeout, the total waiting time for
    406  1.1.1.2  christos a timeout will be twice the timeout value set.
    407  1.1.1.3  christos .It Ic version
    408  1.1.1.6  christos Display the version of the
    409  1.1.1.3  christos .Nm
    410  1.1.1.3  christos program.
    411  1.1.1.2  christos .El
    412      1.1    kardel 
    413  1.1.1.3  christos .Ss "Control Message Commands"
    414  1.1.1.6  christos Association ids are used to identify system, peer and clock variables.
    415  1.1.1.6  christos System variables are assigned an association id of zero and system name
    416  1.1.1.6  christos space, while each association is assigned a nonzero association id and
    417  1.1.1.6  christos peer namespace.
    418  1.1.1.6  christos Most control commands send a single message to the server and expect a
    419  1.1.1.6  christos single response message.
    420  1.1.1.3  christos The exceptions are the
    421  1.1.1.6  christos .Ic peers
    422  1.1.1.3  christos command, which sends a series of messages,
    423  1.1.1.3  christos and the
    424  1.1.1.6  christos .Ic mreadlist
    425  1.1.1.3  christos and
    426  1.1.1.6  christos .Ic mreadvar
    427  1.1.1.3  christos commands, which iterate over a range of associations.
    428  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
    429  1.1.1.6  christos .It Ic apeers
    430  1.1.1.6  christos Display a list of peers in the form:
    431  1.1.1.6  christos .Dl [tally]remote refid assid st t when pool reach delay offset jitter
    432  1.1.1.6  christos where the output is just like the
    433  1.1.1.6  christos .Ic peers
    434  1.1.1.6  christos command except that the
    435  1.1.1.6  christos .Cm refid
    436  1.1.1.6  christos is displayed in hex format and the association number is also displayed.
    437  1.1.1.6  christos .It Ic associations
    438  1.1.1.3  christos Display a list of mobilized associations in the form:
    439  1.1.1.3  christos .Dl ind assid status conf reach auth condition last_event cnt
    440  1.1.1.6  christos .Bl -column -offset indent ".Sy Variable" "see the select field of the peer status word"
    441  1.1.1.6  christos .It Sy Variable Ta Sy Description
    442  1.1.1.6  christos .It Cm ind Ta index on this list
    443  1.1.1.6  christos .It Cm assid Ta association id
    444  1.1.1.6  christos .It Cm status Ta peer status word
    445  1.1.1.6  christos .It Cm conf Ta Cm yes : No persistent, Cm no : No ephemeral
    446  1.1.1.6  christos .It Cm reach Ta Cm yes : No reachable, Cm no : No unreachable
    447  1.1.1.6  christos .It Cm auth Ta Cm ok , Cm yes , Cm bad No and Cm none
    448  1.1.1.6  christos .It Cm condition Ta selection status \&(see the Cm select No field of the peer status word\&)
    449  1.1.1.6  christos .It Cm last_event Ta event report \&(see the Cm event No field of the peer status word\&)
    450  1.1.1.6  christos .It Cm cnt Ta event count \&(see the Cm count No field of the peer status word\&)
    451  1.1.1.3  christos .El
    452  1.1.1.6  christos .It Ic authinfo
    453  1.1.1.6  christos Display the authentication statistics counters:
    454  1.1.1.6  christos time since reset, stored keys, free keys, key lookups, keys not found,
    455  1.1.1.6  christos uncached keys, expired keys, encryptions, decryptions.
    456  1.1.1.6  christos .It Ic clocklist Op Ar associd
    457  1.1.1.6  christos .It Ic cl Op Ar associd
    458  1.1.1.6  christos Display all clock variables in the variable list for those associations
    459  1.1.1.6  christos supporting a reference clock.
    460  1.1.1.6  christos .It Ic clockvar Oo Ar associd Oc Oo Ar name Ns Oo \&= Ns Ar value Oc Ns Oc Ns Op ,...
    461  1.1.1.6  christos .It Ic cv Oo Ar associd Oc Oo Ar name Ns Oo \&= Ns Ar value Oc Ns Oc Ns Op ,...
    462  1.1.1.6  christos Display a list of clock variables for those associations supporting a
    463  1.1.1.6  christos reference clock.
    464  1.1.1.6  christos .It Ic :config Ar "configuration command line"
    465  1.1.1.6  christos Send the remainder of the command line, including whitespace, to the
    466  1.1.1.6  christos server as a run-time configuration command in the same format as a line
    467  1.1.1.6  christos in the configuration file.
    468  1.1.1.6  christos This command is experimental until further notice and clarification.
    469  1.1.1.6  christos Authentication is of course required.
    470  1.1.1.6  christos .It Ic config-from-file Ar filename
    471  1.1.1.6  christos Send each line of
    472  1.1.1.3  christos .Ar filename
    473  1.1.1.6  christos to the server as run-time configuration commands in the same format as
    474  1.1.1.6  christos lines in the configuration file.
    475  1.1.1.6  christos This command is experimental until further notice and clarification.
    476  1.1.1.6  christos Authentication is required.
    477  1.1.1.3  christos .It Ic ifstats
    478  1.1.1.6  christos Display status and statistics counters for each local network interface address:
    479  1.1.1.6  christos interface number, interface name and address or broadcast, drop, flag,
    480  1.1.1.6  christos ttl, mc, received, sent, send failed, peers, uptime.
    481  1.1.1.6  christos Authentication is required.
    482  1.1.1.3  christos .It Ic iostats
    483  1.1.1.6  christos Display network and reference clock I/O statistics:
    484  1.1.1.6  christos time since reset, receive buffers, free receive buffers, used receive buffers,
    485  1.1.1.6  christos low water refills, dropped packets, ignored packets, received packets,
    486  1.1.1.6  christos packets sent, packet send failures, input wakeups, useful input wakeups.
    487  1.1.1.3  christos .It Ic kerninfo
    488  1.1.1.6  christos Display kernel loop and PPS statistics:
    489  1.1.1.6  christos associd, status, pll offset, pll frequency, maximum error,
    490  1.1.1.6  christos estimated error, kernel status, pll time constant, precision,
    491  1.1.1.6  christos frequency tolerance, pps frequency, pps stability, pps jitter,
    492  1.1.1.6  christos calibration interval, calibration cycles, jitter exceeded,
    493  1.1.1.6  christos stability exceeded, calibration errors.
    494  1.1.1.6  christos As with other ntpq output, times are in milliseconds; very small values
    495  1.1.1.6  christos may be shown as exponentials.
    496  1.1.1.6  christos The precision value displayed is in milliseconds as well, unlike the
    497  1.1.1.6  christos precision system variable.
    498  1.1.1.3  christos .It Ic lassociations
    499  1.1.1.6  christos Perform the same function as the associations command, except display
    500  1.1.1.6  christos mobilized and unmobilized associations, including all clients.
    501  1.1.1.6  christos .It Ic lopeers Op Fl 4 Ns | Ns Fl 6
    502  1.1.1.6  christos Display a list of all peers and clients showing
    503  1.1.1.6  christos .Cm dstadr
    504  1.1.1.6  christos (associated with the given IP version).
    505  1.1.1.6  christos .It Ic lpassociations
    506  1.1.1.6  christos Display the last obtained list of associations, including all clients.
    507  1.1.1.6  christos .It Ic lpeers Op Fl 4 Ns | Ns Fl 6
    508  1.1.1.6  christos Display a list of all peers and clients (associated with the given IP version).
    509  1.1.1.3  christos .It Ic monstats
    510  1.1.1.6  christos Display monitor facility status, statistics, and limits:
    511  1.1.1.6  christos enabled, addresses, peak addresses, maximum addresses,
    512  1.1.1.6  christos reclaim above count, reclaim older than, kilobytes, maximum kilobytes.
    513  1.1.1.6  christos .It Ic mreadlist Ar associdlo Ar associdhi
    514  1.1.1.6  christos .It Ic mrl Ar associdlo Ar associdhi
    515  1.1.1.6  christos Perform the same function as the
    516  1.1.1.6  christos .Ic readlist
    517  1.1.1.6  christos command for a range of association ids.
    518  1.1.1.6  christos .It Ic mreadvar Ar associdlo Ar associdhi Oo Ar name Oc Ns Op ,...
    519  1.1.1.6  christos This range may be determined from the list displayed by any
    520  1.1.1.6  christos command showing associations.
    521  1.1.1.6  christos .It Ic mrv Ar associdlo Ar associdhi Oo Ar name Oc Ns Op ,...
    522  1.1.1.6  christos Perform the same function as the
    523  1.1.1.6  christos .Ic readvar
    524  1.1.1.6  christos command for a range of association ids.
    525  1.1.1.6  christos This range may be determined from the list displayed by any
    526  1.1.1.6  christos command showing associations.
    527  1.1.1.6  christos .It Xo Ic mrulist Oo Cm limited | Cm kod | Cm mincount Ns \&= Ns Ar count |
    528  1.1.1.6  christos .Cm laddr Ns \&= Ns Ar localaddr | Cm sort Ns \&= Ns Oo \&- Oc Ns Ar sortorder |
    529  1.1.1.6  christos .Cm resany Ns \&= Ns Ar hexmask | Cm resall Ns \&= Ns Ar hexmask Oc
    530  1.1.1.6  christos .Xc
    531  1.1.1.6  christos Display traffic counts of the most recently seen source addresses
    532  1.1.1.6  christos collected and maintained by the monitor facility.
    533  1.1.1.3  christos With the exception of
    534  1.1.1.6  christos .Cm sort Ns \&= Ns Oo \&- Oc Ns Ar sortorder ,
    535  1.1.1.3  christos the options filter the list returned by
    536  1.1.1.6  christos .Xr ntpd 8 .
    537  1.1.1.3  christos The
    538  1.1.1.3  christos .Cm limited
    539  1.1.1.3  christos and
    540  1.1.1.3  christos .Cm kod
    541  1.1.1.6  christos options return only entries representing client addresses from which the
    542  1.1.1.6  christos last packet received triggered either discarding or a KoD response.
    543  1.1.1.3  christos The
    544  1.1.1.3  christos .Cm mincount Ns = Ns Ar count
    545  1.1.1.3  christos option filters entries representing less than
    546  1.1.1.3  christos .Ar count
    547  1.1.1.3  christos packets.
    548  1.1.1.3  christos The
    549  1.1.1.3  christos .Cm laddr Ns = Ns Ar localaddr
    550  1.1.1.3  christos option filters entries for packets received on any local address other than
    551  1.1.1.3  christos .Ar localaddr .
    552  1.1.1.3  christos .Cm resany Ns = Ns Ar hexmask
    553  1.1.1.3  christos and
    554  1.1.1.3  christos .Cm resall Ns = Ns Ar hexmask
    555  1.1.1.3  christos filter entries containing none or less than all, respectively, of the bits in
    556  1.1.1.3  christos .Ar hexmask ,
    557  1.1.1.3  christos which must begin with
    558  1.1.1.3  christos .Cm 0x .
    559  1.1.1.3  christos The
    560  1.1.1.3  christos .Ar sortorder
    561  1.1.1.3  christos defaults to
    562  1.1.1.3  christos .Cm lstint
    563  1.1.1.6  christos and may be
    564  1.1.1.3  christos .Cm addr ,
    565  1.1.1.3  christos .Cm avgint ,
    566  1.1.1.6  christos .Cm count ,
    567  1.1.1.3  christos .Cm lstint ,
    568  1.1.1.6  christos or any of those preceded by
    569  1.1.1.6  christos .Ql \&-
    570  1.1.1.6  christos to reverse the sort order.
    571  1.1.1.3  christos The output columns are:
    572  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
    573  1.1.1.3  christos .It Column
    574  1.1.1.3  christos Description
    575  1.1.1.3  christos .It Ic lstint
    576  1.1.1.6  christos Interval in seconds between the receipt of the most recent packet from
    577  1.1.1.6  christos this address and the completion of the retrieval of the MRU list by
    578  1.1.1.3  christos .Nm .
    579  1.1.1.3  christos .It Ic avgint
    580  1.1.1.3  christos Average interval in s between packets from this address.
    581  1.1.1.3  christos .It Ic rstr
    582  1.1.1.3  christos Restriction flags associated with this address.
    583  1.1.1.3  christos Most are copied unchanged from the matching
    584  1.1.1.3  christos .Ic restrict
    585  1.1.1.6  christos command, however 0x400 (kod) and 0x20 (limited) flags are cleared unless
    586  1.1.1.6  christos the last packet from this address triggered a rate control response.
    587  1.1.1.3  christos .It Ic r
    588  1.1.1.3  christos Rate control indicator, either
    589  1.1.1.3  christos a period,
    590  1.1.1.3  christos .Ic L
    591  1.1.1.3  christos or
    592  1.1.1.3  christos .Ic K
    593  1.1.1.3  christos for no rate control response,
    594  1.1.1.3  christos rate limiting by discarding, or rate limiting with a KoD response, respectively.
    595  1.1.1.3  christos .It Ic m
    596  1.1.1.3  christos Packet mode.
    597  1.1.1.3  christos .It Ic v
    598  1.1.1.3  christos Packet version number.
    599  1.1.1.3  christos .It Ic count
    600  1.1.1.3  christos Packets received from this address.
    601  1.1.1.3  christos .It Ic rport
    602  1.1.1.3  christos Source port of last packet from this address.
    603  1.1.1.3  christos .It Ic remote address
    604  1.1.1.6  christos host or DNS name, numeric address, or address followed by
    605  1.1.1.3  christos claimed DNS name which could not be verified in parentheses.
    606  1.1.1.3  christos .El
    607  1.1.1.6  christos .It Ic opeers Op Fl 4 | Fl 6
    608  1.1.1.3  christos Obtain and print the old-style list of all peers and clients showing
    609  1.1.1.6  christos .Cm dstadr
    610  1.1.1.6  christos (associated with the given IP version),
    611  1.1.1.3  christos rather than the
    612  1.1.1.6  christos .Cm refid .
    613  1.1.1.3  christos .It Ic passociations
    614  1.1.1.3  christos Perform the same function as the
    615  1.1.1.3  christos .Ic associations
    616  1.1.1.3  christos command,
    617  1.1.1.3  christos except that it uses previously stored data rather than making a new query.
    618  1.1.1.3  christos .It Ic peers
    619  1.1.1.3  christos Display a list of peers in the form:
    620  1.1.1.3  christos .Dl [tally]remote refid st t when pool reach delay offset jitter
    621  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
    622  1.1.1.3  christos .It Variable
    623  1.1.1.3  christos Description
    624  1.1.1.6  christos .It Cm [tally]
    625  1.1.1.3  christos single-character code indicating current value of the
    626  1.1.1.3  christos .Ic select
    627  1.1.1.3  christos field of the
    628  1.1.1.3  christos .Lk decode.html#peer "peer status word"
    629  1.1.1.6  christos .It Cm remote
    630  1.1.1.3  christos host name (or IP number) of peer.
    631  1.1.1.6  christos The value displayed will be truncated to 15 characters unless the
    632  1.1.1.6  christos .Nm
    633  1.1.1.3  christos .Fl w
    634  1.1.1.6  christos option is given, in which case the full value will be displayed
    635  1.1.1.6  christos on the first line, and if too long,
    636  1.1.1.6  christos the remaining data will be displayed on the next line.
    637  1.1.1.6  christos .It Cm refid
    638  1.1.1.6  christos source IP address or
    639  1.1.1.3  christos .Lk decode.html#kiss "'kiss code"
    640  1.1.1.6  christos .It Cm st
    641  1.1.1.6  christos stratum: 0 for local reference clocks, 1 for servers with local
    642  1.1.1.6  christos reference clocks, ..., 16 for unsynchronized server clocks
    643  1.1.1.6  christos .It Cm t
    644  1.1.1.3  christos .Ic u :
    645  1.1.1.3  christos unicast or manycast client,
    646  1.1.1.3  christos .Ic b :
    647  1.1.1.3  christos broadcast or multicast client,
    648  1.1.1.6  christos .Ic p :
    649  1.1.1.6  christos pool source,
    650  1.1.1.3  christos .Ic l :
    651  1.1.1.3  christos local (reference clock),
    652  1.1.1.3  christos .Ic s :
    653  1.1.1.3  christos symmetric (peer),
    654  1.1.1.3  christos .Ic A :
    655  1.1.1.3  christos manycast server,
    656  1.1.1.3  christos .Ic B :
    657  1.1.1.3  christos broadcast server,
    658  1.1.1.3  christos .Ic M :
    659  1.1.1.3  christos multicast server
    660  1.1.1.6  christos .It Cm when
    661  1.1.1.6  christos time in seconds, minutes, hours, or days since the last packet
    662  1.1.1.6  christos was received, or
    663  1.1.1.6  christos .Ql \&-
    664  1.1.1.6  christos if a packet has never been received
    665  1.1.1.6  christos .It Cm poll
    666  1.1.1.6  christos poll interval (s)
    667  1.1.1.6  christos .It Cm reach
    668  1.1.1.3  christos reach shift register (octal)
    669  1.1.1.6  christos .It Cm delay
    670  1.1.1.3  christos roundtrip delay
    671  1.1.1.6  christos .It Cm offset
    672  1.1.1.3  christos offset of server relative to this host
    673  1.1.1.6  christos .It Cm jitter
    674  1.1.1.6  christos offset RMS error estimate.
    675  1.1.1.3  christos .El
    676  1.1.1.6  christos .It Ic pstats Ar associd
    677  1.1.1.6  christos Display the statistics for the peer with the given
    678  1.1.1.6  christos .Ar associd :
    679  1.1.1.6  christos associd, status, remote host, local address, time last received,
    680  1.1.1.6  christos time until next send, reachability change, packets sent,
    681  1.1.1.6  christos packets received, bad authentication, bogus origin, duplicate,
    682  1.1.1.6  christos bad dispersion, bad reference time, candidate order.
    683  1.1.1.6  christos .It Ic readlist Op Ar associd
    684  1.1.1.6  christos .It Ic rl Op Ar associd
    685  1.1.1.6  christos Display all system or peer variables.
    686  1.1.1.6  christos If the
    687  1.1.1.6  christos .Ar associd
    688  1.1.1.6  christos is omitted, it is assumed to be zero.
    689  1.1.1.6  christos .It Ic readvar Op Ar associd Ar name Ns Oo Ns = Ns Ar value Oc Op , ...
    690  1.1.1.6  christos .It Ic rv Op Ar associd Ar name Ns Oo Ns = Ns Ar value Oc Op , ...
    691  1.1.1.6  christos Display the specified system or peer variables.
    692  1.1.1.3  christos If
    693  1.1.1.6  christos .Ar associd
    694  1.1.1.3  christos is zero, the variables are from the
    695  1.1.1.3  christos .Sx System Variables
    696  1.1.1.3  christos name space, otherwise they are from the
    697  1.1.1.3  christos .Sx Peer Variables
    698  1.1.1.3  christos name space.
    699  1.1.1.3  christos The
    700  1.1.1.6  christos .Ar associd
    701  1.1.1.3  christos is required, as the same name can occur in both spaces.
    702  1.1.1.3  christos If no
    703  1.1.1.3  christos .Ar name
    704  1.1.1.3  christos is included, all operative variables in the name space are displayed.
    705  1.1.1.3  christos In this case only, if the
    706  1.1.1.6  christos .Ar associd
    707  1.1.1.6  christos is omitted, it is assumed to be zero.
    708  1.1.1.3  christos Multiple names are specified with comma separators and without whitespace.
    709  1.1.1.3  christos Note that time values are represented in milliseconds
    710  1.1.1.3  christos and frequency values in parts-per-million (PPM).
    711  1.1.1.3  christos Some NTP timestamps are represented in the format
    712  1.1.1.6  christos .Ar YYYY Ns Ar MM Ar DD Ar TTTT ,
    713  1.1.1.6  christos where
    714  1.1.1.6  christos .Ar YYYY
    715  1.1.1.6  christos is the year,
    716  1.1.1.6  christos .Ar MM
    717  1.1.1.6  christos the month of year,
    718  1.1.1.6  christos .Ar DD
    719  1.1.1.6  christos the day of month and
    720  1.1.1.6  christos .Ar TTTT
    721  1.1.1.6  christos the time of day.
    722  1.1.1.3  christos .It Ic reslist
    723  1.1.1.6  christos Display the access control (restrict) list for
    724  1.1.1.3  christos .Nm .
    725  1.1.1.6  christos Authentication is required.
    726  1.1.1.3  christos .It Ic saveconfig Ar filename
    727  1.1.1.6  christos Save the current configuration,
    728  1.1.1.6  christos including any runtime modifications made by
    729  1.1.1.3  christos .Ic :config
    730  1.1.1.3  christos or
    731  1.1.1.3  christos .Ic config-from-file ,
    732  1.1.1.6  christos to the NTP server host file
    733  1.1.1.3  christos .Ar filename .
    734  1.1.1.3  christos This command will be rejected by the server unless
    735  1.1.1.3  christos .Lk miscopt.html#saveconfigdir "saveconfigdir"
    736  1.1.1.3  christos appears in the
    737  1.1.1.6  christos .Xr ntpd 8
    738  1.1.1.3  christos configuration file.
    739  1.1.1.3  christos .Ar filename
    740  1.1.1.3  christos can use
    741  1.1.1.6  christos .Xr date 1
    742  1.1.1.6  christos format specifiers to substitute the current date and time, for
    743  1.1.1.6  christos example,
    744  1.1.1.6  christos .D1 Ic saveconfig Pa ntp-%Y%m%d-%H%M%S.conf .
    745  1.1.1.3  christos The filename used is stored in system variable
    746  1.1.1.6  christos .Cm savedconfig .
    747  1.1.1.3  christos Authentication is required.
    748  1.1.1.6  christos .It Ic sysinfo
    749  1.1.1.6  christos Display system operational summary:
    750  1.1.1.6  christos associd, status, system peer, system peer mode, leap indicator,
    751  1.1.1.6  christos stratum, log2 precision, root delay, root dispersion,
    752  1.1.1.6  christos reference id, reference time, system jitter, clock jitter,
    753  1.1.1.6  christos clock wander, broadcast delay, symm. auth. delay.
    754  1.1.1.6  christos .It Ic sysstats
    755  1.1.1.6  christos Display system uptime and packet counts maintained in the
    756  1.1.1.6  christos protocol module:
    757  1.1.1.6  christos uptime, sysstats reset, packets received, current version,
    758  1.1.1.6  christos older version, bad length or format, authentication failed,
    759  1.1.1.6  christos declined, restricted, rate limited, KoD responses,
    760  1.1.1.6  christos processed for time.
    761  1.1.1.3  christos .It Ic timerstats
    762  1.1.1.6  christos Display interval timer counters:
    763  1.1.1.6  christos time since reset, timer overruns, calls to transmit.
    764  1.1.1.6  christos .It Ic writelist Ar associd
    765  1.1.1.6  christos Set all system or peer variables included in the variable list.
    766  1.1.1.6  christos .It Ic writevar Ar associd Ar name Ns = Ns Ar value Op , ...
    767  1.1.1.6  christos Set the specified variables in the variable list.
    768  1.1.1.3  christos If the
    769  1.1.1.6  christos .Ar associd
    770  1.1.1.3  christos is zero, the variables are from the
    771  1.1.1.3  christos .Sx System Variables
    772  1.1.1.3  christos name space, otherwise they are from the
    773  1.1.1.3  christos .Sx Peer Variables
    774  1.1.1.3  christos name space.
    775  1.1.1.3  christos The
    776  1.1.1.6  christos .Ar associd
    777  1.1.1.3  christos is required, as the same name can occur in both spaces.
    778  1.1.1.6  christos Authentication is required.
    779  1.1.1.3  christos .El
    780  1.1.1.3  christos 
    781  1.1.1.3  christos .Ss Status Words and Kiss Codes
    782  1.1.1.3  christos The current state of the operating program is shown
    783  1.1.1.3  christos in a set of status words
    784  1.1.1.3  christos maintained by the system.
    785  1.1.1.3  christos Status information is also available on a per-association basis.
    786  1.1.1.6  christos These words are displayed by the
    787  1.1.1.6  christos .Ic readlist
    788  1.1.1.3  christos and
    789  1.1.1.6  christos .Ic associations
    790  1.1.1.3  christos commands both in hexadecimal and in decoded short tip strings.
    791  1.1.1.3  christos The codes, tips and short explanations are documented on the
    792  1.1.1.3  christos .Lk decode.html "Event Messages and Status Words"
    793  1.1.1.3  christos page.
    794  1.1.1.3  christos The page also includes a list of system and peer messages,
    795  1.1.1.3  christos the code for the latest of which is included in the status word.
    796  1.1.1.3  christos .Pp
    797  1.1.1.3  christos Information resulting from protocol machine state transitions
    798  1.1.1.3  christos is displayed using an informal set of ASCII strings called
    799  1.1.1.3  christos .Lk decode.html#kiss "kiss codes" .
    800  1.1.1.3  christos The original purpose was for kiss-o'-death (KoD) packets
    801  1.1.1.3  christos sent by the server to advise the client of an unusual condition.
    802  1.1.1.3  christos They are now displayed, when appropriate,
    803  1.1.1.3  christos in the reference identifier field in various billboards.
    804  1.1.1.3  christos 
    805  1.1.1.3  christos .Ss System Variables
    806  1.1.1.3  christos The following system variables appear in the
    807  1.1.1.6  christos .Ic readlist
    808  1.1.1.3  christos billboard.
    809  1.1.1.3  christos Not all variables are displayed in some configurations.
    810  1.1.1.6  christos .Pp
    811  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
    812  1.1.1.3  christos .It Variable
    813  1.1.1.3  christos Description
    814  1.1.1.6  christos .It Cm status
    815  1.1.1.3  christos .Lk decode.html#sys "system status word"
    816  1.1.1.6  christos .It Cm version
    817  1.1.1.3  christos NTP software version and build time
    818  1.1.1.6  christos .It Cm processor
    819  1.1.1.3  christos hardware platform and version
    820  1.1.1.6  christos .It Cm system
    821  1.1.1.3  christos operating system and version
    822  1.1.1.6  christos .It Cm leap
    823  1.1.1.3  christos leap warning indicator (0-3)
    824  1.1.1.6  christos .It Cm stratum
    825  1.1.1.3  christos stratum (1-15)
    826  1.1.1.6  christos .It Cm precision
    827  1.1.1.3  christos precision (log2 s)
    828  1.1.1.6  christos .It Cm rootdelay
    829  1.1.1.3  christos total roundtrip delay to the primary reference clock
    830  1.1.1.6  christos .It Cm rootdisp
    831  1.1.1.3  christos total dispersion to the primary reference clock
    832  1.1.1.6  christos .It Cm refid
    833  1.1.1.6  christos reference id or
    834  1.1.1.3  christos .Lk decode.html#kiss "kiss code"
    835  1.1.1.6  christos .It Cm reftime
    836  1.1.1.3  christos reference time
    837  1.1.1.6  christos .It Ic clock
    838  1.1.1.6  christos date and time of day
    839  1.1.1.6  christos .It Cm peer
    840  1.1.1.6  christos system peer association id
    841  1.1.1.6  christos .It Cm tc
    842  1.1.1.6  christos time constant and poll exponent (log2 s) (3-17)
    843  1.1.1.6  christos .It Cm mintc
    844  1.1.1.6  christos minimum time constant (log2 s) (3-10)
    845  1.1.1.6  christos .It Cm offset
    846  1.1.1.6  christos combined offset of server relative to this host
    847  1.1.1.6  christos .It Cm frequency
    848  1.1.1.6  christos frequency drift (PPM) relative to hardware clock
    849  1.1.1.6  christos .It Cm sys_jitter
    850  1.1.1.3  christos combined system jitter
    851  1.1.1.6  christos .It Cm clk_wander
    852  1.1.1.3  christos clock frequency wander (PPM)
    853  1.1.1.6  christos .It Cm clk_jitter
    854  1.1.1.3  christos clock jitter
    855  1.1.1.6  christos .It Cm tai
    856  1.1.1.3  christos TAI-UTC offset (s)
    857  1.1.1.6  christos .It Cm leapsec
    858  1.1.1.3  christos NTP seconds when the next leap second is/was inserted
    859  1.1.1.6  christos .It Cm expire
    860  1.1.1.3  christos NTP seconds when the NIST leapseconds file expires
    861  1.1.1.3  christos .El
    862  1.1.1.3  christos The jitter and wander statistics are exponentially-weighted RMS averages.
    863  1.1.1.3  christos The system jitter is defined in the NTPv4 specification;
    864  1.1.1.3  christos the clock jitter statistic is computed by the clock discipline module.
    865  1.1.1.3  christos .Pp
    866  1.1.1.3  christos When the NTPv4 daemon is compiled with the OpenSSL software library,
    867  1.1.1.3  christos additional system variables are displayed,
    868  1.1.1.3  christos including some or all of the following,
    869  1.1.1.3  christos depending on the particular Autokey dance:
    870  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
    871  1.1.1.3  christos .It Variable
    872  1.1.1.3  christos Description
    873  1.1.1.6  christos .It Cm host
    874  1.1.1.3  christos Autokey host name for this host
    875  1.1.1.6  christos .It Cm ident
    876  1.1.1.3  christos Autokey group name for this host
    877  1.1.1.6  christos .It Cm flags
    878  1.1.1.3  christos host flags  (see Autokey specification)
    879  1.1.1.6  christos .It Cm digest
    880  1.1.1.3  christos OpenSSL message digest algorithm
    881  1.1.1.6  christos .It Cm signature
    882  1.1.1.3  christos OpenSSL digest/signature scheme
    883  1.1.1.6  christos .It Cm update
    884  1.1.1.3  christos NTP seconds at last signature update
    885  1.1.1.6  christos .It Cm cert
    886  1.1.1.3  christos certificate subject, issuer and certificate flags
    887  1.1.1.6  christos .It Cm until
    888  1.1.1.3  christos NTP seconds when the certificate expires
    889  1.1.1.3  christos .El
    890  1.1.1.3  christos .Ss Peer Variables
    891  1.1.1.3  christos The following peer variables appear in the
    892  1.1.1.6  christos .Ic readlist
    893  1.1.1.3  christos billboard for each association.
    894  1.1.1.3  christos Not all variables are displayed in some configurations.
    895  1.1.1.6  christos .Pp
    896  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
    897  1.1.1.3  christos .It Variable
    898  1.1.1.3  christos Description
    899  1.1.1.6  christos .It Cm associd
    900  1.1.1.6  christos association id
    901  1.1.1.6  christos .It Cm status
    902  1.1.1.3  christos .Lk decode.html#peer "peer status word"
    903  1.1.1.6  christos .It Cm srcadr
    904  1.1.1.3  christos source (remote) IP address
    905  1.1.1.6  christos .It Cm srcport
    906  1.1.1.3  christos source (remote) port
    907  1.1.1.6  christos .It Cm dstadr
    908  1.1.1.3  christos destination (local) IP address
    909  1.1.1.6  christos .It Cm dstport
    910  1.1.1.3  christos destination (local) port
    911  1.1.1.6  christos .It Cm leap
    912  1.1.1.3  christos leap indicator (0-3)
    913  1.1.1.6  christos .It Cm stratum
    914  1.1.1.3  christos stratum (0-15)
    915  1.1.1.6  christos .It Cm precision
    916  1.1.1.3  christos precision (log2 s)
    917  1.1.1.6  christos .It Cm rootdelay
    918  1.1.1.3  christos total roundtrip delay to the primary reference clock
    919  1.1.1.6  christos .It Cm rootdisp
    920  1.1.1.3  christos total root dispersion to the primary reference clock
    921  1.1.1.6  christos .It Cm refid
    922  1.1.1.6  christos reference id or
    923  1.1.1.3  christos .Lk decode.html#kiss "kiss code"
    924  1.1.1.6  christos .It Cm reftime
    925  1.1.1.3  christos reference time
    926  1.1.1.6  christos .It Cm rec
    927  1.1.1.6  christos last packet received time
    928  1.1.1.6  christos .It Cm reach
    929  1.1.1.3  christos reach register (octal)
    930  1.1.1.6  christos .It Cm unreach
    931  1.1.1.3  christos unreach counter
    932  1.1.1.6  christos .It Cm hmode
    933  1.1.1.3  christos host mode (1-6)
    934  1.1.1.6  christos .It Cm pmode
    935  1.1.1.3  christos peer mode (1-5)
    936  1.1.1.6  christos .It Cm hpoll
    937  1.1.1.3  christos host poll exponent (log2 s) (3-17)
    938  1.1.1.6  christos .It Cm ppoll
    939  1.1.1.3  christos peer poll exponent (log2 s) (3-17)
    940  1.1.1.6  christos .It Cm headway
    941  1.1.1.3  christos headway (see
    942  1.1.1.3  christos .Lk rate.html "Rate Management and the Kiss-o'-Death Packet" )
    943  1.1.1.6  christos .It Cm flash
    944  1.1.1.3  christos .Lk decode.html#flash "flash status word"
    945  1.1.1.6  christos .It Cm keyid
    946  1.1.1.6  christos symmetric key id
    947  1.1.1.6  christos .It Cm offset
    948  1.1.1.3  christos filter offset
    949  1.1.1.6  christos .It Cm delay
    950  1.1.1.3  christos filter delay
    951  1.1.1.6  christos .It Cm dispersion
    952  1.1.1.3  christos filter dispersion
    953  1.1.1.6  christos .It Cm jitter
    954  1.1.1.3  christos filter jitter
    955  1.1.1.6  christos .It Cm bias
    956  1.1.1.3  christos unicast/broadcast bias
    957  1.1.1.6  christos .It Cm xleave
    958  1.1.1.3  christos interleave delay (see
    959  1.1.1.3  christos .Lk xleave.html "NTP Interleaved Modes" )
    960  1.1.1.3  christos .El
    961  1.1.1.3  christos The
    962  1.1.1.6  christos .Cm bias
    963  1.1.1.3  christos variable is calculated when the first broadcast packet is received
    964  1.1.1.3  christos after the calibration volley.
    965  1.1.1.6  christos It represents the offset of the broadcast subgraph relative to the
    966  1.1.1.6  christos unicast subgraph.
    967  1.1.1.3  christos The
    968  1.1.1.6  christos .Cm xleave
    969  1.1.1.3  christos variable appears only for the interleaved symmetric and interleaved modes.
    970  1.1.1.3  christos It represents the internal queuing, buffering and transmission delays
    971  1.1.1.3  christos for the preceding packet.
    972  1.1.1.3  christos .Pp
    973  1.1.1.3  christos When the NTPv4 daemon is compiled with the OpenSSL software library,
    974  1.1.1.3  christos additional peer variables are displayed, including the following:
    975  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
    976  1.1.1.3  christos .It Variable
    977  1.1.1.3  christos Description
    978  1.1.1.6  christos .It Cm flags
    979  1.1.1.3  christos peer flags (see Autokey specification)
    980  1.1.1.6  christos .It Cm host
    981  1.1.1.3  christos Autokey server name
    982  1.1.1.6  christos .It Cm flags
    983  1.1.1.3  christos peer flags (see Autokey specification)
    984  1.1.1.6  christos .It Cm signature
    985  1.1.1.3  christos OpenSSL digest/signature scheme
    986  1.1.1.6  christos .It Cm initsequence
    987  1.1.1.6  christos initial key id
    988  1.1.1.6  christos .It Cm initkey
    989  1.1.1.3  christos initial key index
    990  1.1.1.6  christos .It Cm timestamp
    991  1.1.1.3  christos Autokey signature timestamp
    992  1.1.1.6  christos .It Cm ident
    993  1.1.1.6  christos Autokey group name for this association
    994  1.1.1.3  christos .El
    995  1.1.1.3  christos 
    996  1.1.1.3  christos .Ss Clock Variables
    997  1.1.1.3  christos The following clock variables appear in the
    998  1.1.1.6  christos .Ic clocklist
    999  1.1.1.3  christos billboard for each association with a reference clock.
   1000  1.1.1.3  christos Not all variables are displayed in some configurations.
   1001  1.1.1.3  christos .Bl -tag -width "something" -compact -offset indent
   1002  1.1.1.3  christos .It Variable
   1003  1.1.1.3  christos Description
   1004  1.1.1.6  christos .It Cm associd
   1005  1.1.1.6  christos association id
   1006  1.1.1.6  christos .It Cm status
   1007  1.1.1.3  christos .Lk decode.html#clock "clock status word"
   1008  1.1.1.6  christos .It Cm device
   1009  1.1.1.3  christos device description
   1010  1.1.1.6  christos .It Cm timecode
   1011  1.1.1.3  christos ASCII time code string (specific to device)
   1012  1.1.1.6  christos .It Cm poll
   1013  1.1.1.3  christos poll messages sent
   1014  1.1.1.6  christos .It Cm noreply
   1015  1.1.1.3  christos no reply
   1016  1.1.1.6  christos .It Cm badformat
   1017  1.1.1.3  christos bad format
   1018  1.1.1.6  christos .It Cm baddata
   1019  1.1.1.3  christos bad date or time
   1020  1.1.1.6  christos .It Cm fudgetime1
   1021  1.1.1.3  christos fudge time 1
   1022  1.1.1.6  christos .It Cm fudgetime2
   1023  1.1.1.3  christos fudge time 2
   1024  1.1.1.6  christos .It Cm stratum
   1025  1.1.1.3  christos driver stratum
   1026  1.1.1.6  christos .It Cm refid
   1027  1.1.1.6  christos driver reference id
   1028  1.1.1.6  christos .It Cm flags
   1029  1.1.1.3  christos driver flags
   1030  1.1.1.3  christos .El
   1031  1.1.1.2  christos 	_END_PROG_MDOC_DESCRIP;
   1032  1.1.1.2  christos };
   1033