1ea906c41SOllivier Robert/* -*- Mode: Text -*- */ 2ea906c41SOllivier Robert 3ea906c41SOllivier Robertautogen definitions options; 4ea906c41SOllivier Robert 5ea906c41SOllivier Robert#include copyright.def 6ea906c41SOllivier Robert#include homerc.def 7ea906c41SOllivier Robert#include autogen-version.def 8ea906c41SOllivier Robert 9ea906c41SOllivier Robertprog-name = "ntpq"; 10*c7a33fe3SAlexander Ziaeeprog-title = "query Network Time Protocol servers"; 11ea906c41SOllivier Robertargument = '[ host ...]'; 12ea906c41SOllivier Robert 13ea906c41SOllivier Robertflag = { 14ea906c41SOllivier Robert name = ipv4; 152b15cb3dSCy Schubert flags-cant = ipv6; 16ea906c41SOllivier Robert value = 4; 1709100258SXin LI descrip = "Force IPv4 name resolution"; 18ea906c41SOllivier Robert doc = <<- _EndOfDoc_ 1909100258SXin LI Force resolution of following host names on the command line 20ea906c41SOllivier Robert to the IPv4 namespace. 21ea906c41SOllivier Robert _EndOfDoc_; 22ea906c41SOllivier Robert}; 23ea906c41SOllivier Robert 24ea906c41SOllivier Robertflag = { 25ea906c41SOllivier Robert name = ipv6; 262b15cb3dSCy Schubert flags-cant = ipv4; 27ea906c41SOllivier Robert value = 6; 2809100258SXin LI descrip = "Force IPv6 name resolution"; 29ea906c41SOllivier Robert doc = <<- _EndOfDoc_ 3009100258SXin LI Force resolution of following host names on the command line 31ea906c41SOllivier Robert to the IPv6 namespace. 32ea906c41SOllivier Robert _EndOfDoc_; 33ea906c41SOllivier Robert}; 34ea906c41SOllivier Robert 35ea906c41SOllivier Robertflag = { 36ea906c41SOllivier Robert name = command; 37ea906c41SOllivier Robert value = c; 38ea906c41SOllivier Robert arg-type = string; 39ea906c41SOllivier Robert descrip = "run a command and exit"; 40ea906c41SOllivier Robert max = NOLIMIT; 41ea906c41SOllivier Robert arg-name = cmd; 422b15cb3dSCy Schubert call-proc = ntpq_custom_opt_handler; 43ea906c41SOllivier Robert doc = <<- _EndOfDoc_ 44ea906c41SOllivier Robert The following argument is interpreted as an interactive format command 45ea906c41SOllivier Robert and is added to the list of commands to be executed on the specified 46ea906c41SOllivier Robert host(s). 47ea906c41SOllivier Robert _EndOfDoc_; 48ea906c41SOllivier Robert}; 49ea906c41SOllivier Robert 50ea906c41SOllivier Robert#include debug-opt.def 51ea906c41SOllivier Robert 52ea906c41SOllivier Robertflag = { 53ea906c41SOllivier Robert name = interactive; 54ea906c41SOllivier Robert value = i; 55ea906c41SOllivier Robert flags-cant = command, peers; 56ea906c41SOllivier Robert descrip = "Force ntpq to operate in interactive mode"; 57ea906c41SOllivier Robert doc = <<- _EndOfDoc_ 582b15cb3dSCy Schubert Force @code{ntpq} to operate in interactive mode. 592b15cb3dSCy Schubert Prompts will be written to the standard output and 602b15cb3dSCy Schubert commands read from the standard input. 61ea906c41SOllivier Robert _EndOfDoc_; 62ea906c41SOllivier Robert}; 63ea906c41SOllivier Robert 64ea906c41SOllivier Robertflag = { 65ea906c41SOllivier Robert name = numeric; 66ea906c41SOllivier Robert value = n; 67ea906c41SOllivier Robert descrip = "numeric host addresses"; 68ea906c41SOllivier Robert doc = <<- _EndOfDoc_ 69ea906c41SOllivier Robert Output all host addresses in dotted-quad numeric format rather than 70ea906c41SOllivier Robert converting to the canonical host names. 71ea906c41SOllivier Robert _EndOfDoc_; 72ea906c41SOllivier Robert}; 73ea906c41SOllivier Robert 742b15cb3dSCy Schubertflag = { 752b15cb3dSCy Schubert name = old-rv; 762b15cb3dSCy Schubert descrip = "Always output status line with readvar"; 772b15cb3dSCy Schubert doc = <<- _EndOfDoc_ 782b15cb3dSCy Schubert By default, @code{ntpq} now suppresses the @code{associd=...} 792b15cb3dSCy Schubert line that precedes the output of @code{readvar} 802b15cb3dSCy Schubert (alias @code{rv}) when a single variable is requested, such as 812b15cb3dSCy Schubert @code{ntpq -c "rv 0 offset"}. 822b15cb3dSCy Schubert This option causes @code{ntpq} to include both lines of output 832b15cb3dSCy Schubert for a single-variable @code{readvar}. 842b15cb3dSCy Schubert Using an environment variable to 852b15cb3dSCy Schubert preset this option in a script will enable both older and 862b15cb3dSCy Schubert newer @code{ntpq} to behave identically in this regard. 872b15cb3dSCy Schubert _EndOfDoc_; 882b15cb3dSCy Schubert}; 89ea906c41SOllivier Robert 902b15cb3dSCy Schubertflag = { 912b15cb3dSCy Schubert name = peers; 922b15cb3dSCy Schubert value = p; 932b15cb3dSCy Schubert descrip = "Print a list of the peers"; 942b15cb3dSCy Schubert flags-cant = interactive; 952b15cb3dSCy Schubert call-proc = ntpq_custom_opt_handler; 962b15cb3dSCy Schubert doc = <<- _EndOfDoc_ 972b15cb3dSCy Schubert Print a list of the peers known to the server as well as a summary 982b15cb3dSCy Schubert of their state. This is equivalent to the 'peers' interactive command. 992b15cb3dSCy Schubert _EndOfDoc_; 1002b15cb3dSCy Schubert}; 1012b15cb3dSCy Schubert 1022b15cb3dSCy Schubertflag = { 1034990d495SXin LI name = refid; 1044990d495SXin LI value = r; 1054990d495SXin LI descrip = "Set default display type for S2+ refids"; 1064990d495SXin LI arg-type = keyword; 1074990d495SXin LI keyword = hash, ipv4; 1084990d495SXin LI arg-default = ipv4; 1094990d495SXin LI doc = <<- _EndOfDoc_ 1104990d495SXin LI Set the default display format for S2+ refids. 1114990d495SXin LI _EndOfDoc_; 1124990d495SXin LI}; 1134990d495SXin LI 1144990d495SXin LIflag = { 115a466cc55SCy Schubert name = unconnected; 116a466cc55SCy Schubert value = u; 117a466cc55SCy Schubert descrip = "Use unconnected UDP to communicate with ntpd (default on Windows)"; 118a466cc55SCy Schubert doc = <<- _EndOfDoc_ 119a466cc55SCy Schubert Open an unconnected UDP association to ntpd (the default 120a466cc55SCy Schubert on Windows). 121a466cc55SCy Schubert _EndOfDoc_; 122a466cc55SCy Schubert}; 123a466cc55SCy Schubert 124a466cc55SCy Schubertflag = { 1252b15cb3dSCy Schubert name = wide; 1262b15cb3dSCy Schubert value = w; 1272b15cb3dSCy Schubert descrip = "Display the full 'remote' value"; 1282b15cb3dSCy Schubert doc = <<- _EndOfDoc_ 1292b15cb3dSCy Schubert Display the full value of the 'remote' value. If this requires 1302b15cb3dSCy Schubert more than 15 characters, display the full value, emit a newline, 1312b15cb3dSCy Schubert and continue the data display properly indented on the next line. 1322b15cb3dSCy Schubert _EndOfDoc_; 1332b15cb3dSCy Schubert}; 1342b15cb3dSCy Schubert 1352b15cb3dSCy Schubertdoc-section = { 1362b15cb3dSCy Schubert ds-type = 'DESCRIPTION'; 1372b15cb3dSCy Schubert ds-format = 'mdoc'; 1382b15cb3dSCy Schubert ds-text = <<- _END_PROG_MDOC_DESCRIP 13909100258SXin LI.Pp 140ea906c41SOllivier RobertThe 1412b15cb3dSCy Schubert.Nm 14209100258SXin LIutility program is used to query NTP servers to monitor NTP operations 14309100258SXin LIand performance, requesting 144ea906c41SOllivier Robertinformation about current state and/or changes in that state. 145ea906c41SOllivier RobertThe program may be run either in interactive mode or controlled using 146ea906c41SOllivier Robertcommand line arguments. 147ea906c41SOllivier RobertRequests to read and write arbitrary 148ea906c41SOllivier Robertvariables can be assembled, with raw and pretty-printed output 149ea906c41SOllivier Robertoptions being available. 150ea906c41SOllivier RobertThe 1512b15cb3dSCy Schubert.Nm 152ea906c41SOllivier Robertutility can also obtain and print a 153ea906c41SOllivier Robertlist of peers in a common format by sending multiple queries to the 154ea906c41SOllivier Robertserver. 15509100258SXin LI.Pp 156ea906c41SOllivier RobertIf one or more request options is included on the command line 157ea906c41SOllivier Robertwhen 1582b15cb3dSCy Schubert.Nm 159ea906c41SOllivier Robertis executed, each of the requests will be sent 160ea906c41SOllivier Robertto the NTP servers running on each of the hosts given as command 161ea906c41SOllivier Robertline arguments, or on localhost by default. 162ea906c41SOllivier RobertIf no request options 163ea906c41SOllivier Robertare given, 1642b15cb3dSCy Schubert.Nm 165ea906c41SOllivier Robertwill attempt to read commands from the 166ea906c41SOllivier Robertstandard input and execute these on the NTP server running on the 167ea906c41SOllivier Robertfirst host given on the command line, again defaulting to localhost 168ea906c41SOllivier Robertwhen no other host is specified. 169ea906c41SOllivier RobertThe 1702b15cb3dSCy Schubert.Nm 171ea906c41SOllivier Robertutility will prompt for 172ea906c41SOllivier Robertcommands if the standard input is a terminal device. 17309100258SXin LI.Pp 1742b15cb3dSCy Schubert.Nm 1752b15cb3dSCy Schubertuses NTP mode 6 packets to communicate with the 176ea906c41SOllivier RobertNTP server, and hence can be used to query any compatible server on 177ea906c41SOllivier Robertthe network which permits it. 178ea906c41SOllivier RobertNote that since NTP is a UDP protocol 179ea906c41SOllivier Robertthis communication will be somewhat unreliable, especially over 180ea906c41SOllivier Robertlarge distances in terms of network topology. 181ea906c41SOllivier RobertThe 1822b15cb3dSCy Schubert.Nm 183ea906c41SOllivier Robertutility makes 184ea906c41SOllivier Robertone attempt to retransmit requests, and will time requests out if 185ea906c41SOllivier Robertthe remote host is not heard from within a suitable timeout 186ea906c41SOllivier Roberttime. 18709100258SXin LI.Pp 18809100258SXin LINote that in contexts where a host name is expected, a 18909100258SXin LI.Fl 4 19009100258SXin LIqualifier preceding the host name forces resolution to the IPv4 19109100258SXin LInamespace, while a 19209100258SXin LI.Fl 6 19309100258SXin LIqualifier forces resolution to the IPv6 namespace. 19409100258SXin LIFor examples and usage, see the 19509100258SXin LI.Dq NTP Debugging Techniques 19609100258SXin LIpage. 19709100258SXin LI.Pp 198ea906c41SOllivier RobertSpecifying a 199ea906c41SOllivier Robertcommand line option other than 200ea906c41SOllivier Robert.Fl i 201ea906c41SOllivier Robertor 202ea906c41SOllivier Robert.Fl n 203ea906c41SOllivier Robertwill 204ea906c41SOllivier Robertcause the specified query (queries) to be sent to the indicated 205ea906c41SOllivier Roberthost(s) immediately. 206ea906c41SOllivier RobertOtherwise, 2072b15cb3dSCy Schubert.Nm 208ea906c41SOllivier Robertwill attempt to read 209ea906c41SOllivier Robertinteractive format commands from the standard input. 21009100258SXin LI 211ea906c41SOllivier Robert.Ss "Internal Commands" 21209100258SXin LI.Pp 213ea906c41SOllivier RobertInteractive format commands consist of a keyword followed by zero 214ea906c41SOllivier Robertto four arguments. 215ea906c41SOllivier RobertOnly enough characters of the full keyword to 216ea906c41SOllivier Robertuniquely identify the command need be typed. 21709100258SXin LI.Pp 218ea906c41SOllivier RobertA 219ea906c41SOllivier Robertnumber of interactive format commands are executed entirely within 220ea906c41SOllivier Robertthe 2212b15cb3dSCy Schubert.Nm 22209100258SXin LIutility itself and do not result in NTP 223ea906c41SOllivier Robertrequests being sent to a server. 224ea906c41SOllivier RobertThese are described following. 22509100258SXin LI.Bl -tag -width "help [command]" -compact -offset indent 22609100258SXin LI.It Ic ? Op Ar command 22709100258SXin LI.It Ic help Op Ar command 228ea906c41SOllivier RobertA 229ea906c41SOllivier Robert.Ql \&? 23009100258SXin LIby itself will print a list of all the commands 23109100258SXin LIknown to 2322b15cb3dSCy Schubert.Nm . 233ea906c41SOllivier RobertA 234ea906c41SOllivier Robert.Ql \&? 23509100258SXin LIfollowed by a command name will print function and usage 236ea906c41SOllivier Robertinformation about the command. 23709100258SXin LI.It Ic addvars Ar name Ns Oo \&= Ns Ar value Oc Ns Op ,... 23809100258SXin LI.It Ic rmvars Ar name Ns Op ,... 2392b15cb3dSCy Schubert.It Ic clearvars 2402b15cb3dSCy Schubert.It Ic showvars 24109100258SXin LIThe arguments to this command consist of a list of 242ea906c41SOllivier Robertitems of the form 24309100258SXin LI.Ar name Ns Op \&= Ns Ar value , 244ea906c41SOllivier Robertwhere the 24509100258SXin LI.No \&= Ns Ar value 246ea906c41SOllivier Robertis ignored, and can be omitted, 247ea906c41SOllivier Robertin requests to the server to read variables. 248ea906c41SOllivier RobertThe 2492b15cb3dSCy Schubert.Nm 25009100258SXin LIutility maintains an internal list in which data to be included in 25109100258SXin LImessages can be assembled, and displayed or set using the 252ea906c41SOllivier Robert.Ic readlist 253ea906c41SOllivier Robertand 254ea906c41SOllivier Robert.Ic writelist 255ea906c41SOllivier Robertcommands described below. 256ea906c41SOllivier RobertThe 257ea906c41SOllivier Robert.Ic addvars 258ea906c41SOllivier Robertcommand allows variables and their optional values to be added to 259ea906c41SOllivier Robertthe list. 260ea906c41SOllivier RobertIf more than one variable is to be added, the list should 261ea906c41SOllivier Robertbe comma-separated and not contain white space. 262ea906c41SOllivier RobertThe 263ea906c41SOllivier Robert.Ic rmvars 264ea906c41SOllivier Robertcommand can be used to remove individual variables from the list, 265ea906c41SOllivier Robertwhile the 26609100258SXin LI.Ic clearvars 267ea906c41SOllivier Robertcommand removes all variables from the 268ea906c41SOllivier Robertlist. 2692b15cb3dSCy SchubertThe 2702b15cb3dSCy Schubert.Ic showvars 2712b15cb3dSCy Schubertcommand displays the current list of optional variables. 27209100258SXin LI.It Ic authenticate Op Cm yes Ns | Ns Cm no 273ea906c41SOllivier RobertNormally 2742b15cb3dSCy Schubert.Nm 275ea906c41SOllivier Robertdoes not authenticate requests unless 276ea906c41SOllivier Robertthey are write requests. 277ea906c41SOllivier RobertThe command 27809100258SXin LI.Ic authenticate Cm yes 279ea906c41SOllivier Robertcauses 2802b15cb3dSCy Schubert.Nm 281ea906c41SOllivier Robertto send authentication with all requests it 282ea906c41SOllivier Robertmakes. 283ea906c41SOllivier RobertAuthenticated requests causes some servers to handle 28409100258SXin LIrequests slightly differently. 285ea906c41SOllivier RobertThe command 28609100258SXin LI.Ic authenticate 287ea906c41SOllivier Robertcauses 2882b15cb3dSCy Schubert.Nm 289ea906c41SOllivier Robertto display whether or not 29009100258SXin LIit is currently authenticating requests. 2912b15cb3dSCy Schubert.It Ic cooked 292ea906c41SOllivier RobertCauses output from query commands to be "cooked", so that 293ea906c41SOllivier Robertvariables which are recognized by 2942b15cb3dSCy Schubert.Nm 295ea906c41SOllivier Robertwill have their 296ea906c41SOllivier Robertvalues reformatted for human consumption. 297ea906c41SOllivier RobertVariables which 2982b15cb3dSCy Schubert.Nm 29909100258SXin LIcould not decode completely are 300ea906c41SOllivier Robertmarked with a trailing 301ea906c41SOllivier Robert.Ql \&? . 30209100258SXin LI.It Ic debug Op Cm more Ns | Ns Cm less Ns | Ns Cm off 303ea906c41SOllivier RobertWith no argument, displays the current debug level. 30409100258SXin LIOtherwise, the debugging level is changed as indicated. 30509100258SXin LI.It Ic delay Op Ar milliseconds 306ea906c41SOllivier RobertSpecify a time interval to be added to timestamps included in 307ea906c41SOllivier Robertrequests which require authentication. 308ea906c41SOllivier RobertThis is used to enable 309ea906c41SOllivier Robert(unreliable) server reconfiguration over long delay network paths 310ea906c41SOllivier Robertor between machines whose clocks are unsynchronized. 311ea906c41SOllivier RobertActually the 312ea906c41SOllivier Robertserver does not now require timestamps in authenticated requests, 313ea906c41SOllivier Robertso this command may be obsolete. 31409100258SXin LIWithout any arguments, displays the current delay. 31509100258SXin LI.It Ic drefid Op Cm hash Ns | Ns Cm ipv4 31609100258SXin LIDisplay refids as IPv4 or hash. 31709100258SXin LIWithout any arguments, displays whether refids are shown as IPv4 31809100258SXin LIaddresses or hashes. 3192b15cb3dSCy Schubert.It Ic exit 3202b15cb3dSCy SchubertExit 3212b15cb3dSCy Schubert.Nm . 32209100258SXin LI.It Ic host Op Ar name 323ea906c41SOllivier RobertSet the host to which future queries will be sent. 32409100258SXin LIThe 32509100258SXin LI.Ar name 3262b15cb3dSCy Schubertmay be either a host name or a numeric address. 32709100258SXin LIWithout any arguments, displays the current host. 32809100258SXin LI.It Ic hostnames Op Cm yes Ns | Ns Cm no 329ea906c41SOllivier RobertIf 330ea906c41SOllivier Robert.Cm yes 331ea906c41SOllivier Robertis specified, host names are printed in 332ea906c41SOllivier Robertinformation displays. 333ea906c41SOllivier RobertIf 334ea906c41SOllivier Robert.Cm no 335ea906c41SOllivier Robertis specified, numeric 336ea906c41SOllivier Robertaddresses are printed instead. 337ea906c41SOllivier RobertThe default is 338ea906c41SOllivier Robert.Cm yes , 339ea906c41SOllivier Robertunless 340ea906c41SOllivier Robertmodified using the command line 341ea906c41SOllivier Robert.Fl n 342ea906c41SOllivier Robertswitch. 34309100258SXin LIWithout any arguments, displays whether host names or numeric addresses 34409100258SXin LIare shown. 34509100258SXin LI.It Ic keyid Op Ar keyid 346ea906c41SOllivier RobertThis command allows the specification of a key number to be 347ea906c41SOllivier Robertused to authenticate configuration requests. 348ea906c41SOllivier RobertThis must correspond 349276da39aSCy Schubertto the 350276da39aSCy Schubert.Cm controlkey 351276da39aSCy Schubertkey number the server has been configured to use for this 352ea906c41SOllivier Robertpurpose. 35309100258SXin LIWithout any arguments, displays the current 35409100258SXin LI.Ar keyid . 35509100258SXin LI.It Ic keytype Op Ar digest 35609100258SXin LISpecify the digest algorithm to use for authenticating requests, with default 35709100258SXin LI.Cm MD5 . 3582b15cb3dSCy SchubertIf 3592b15cb3dSCy Schubert.Nm 36009100258SXin LIwas built with OpenSSL support, and OpenSSL is installed, 36109100258SXin LI.Ar digest 36209100258SXin LIcan be any message digest algorithm supported by OpenSSL. 3632b15cb3dSCy SchubertIf no argument is given, the current 36409100258SXin LI.Ic keytype Ar digest 36509100258SXin LIalgorithm used is displayed. 36609100258SXin LI.It Ic ntpversion Op Cm 1 Ns | Ns Cm 2 Ns | Ns Cm 3 Ns | Ns Cm 4 367ea906c41SOllivier RobertSets the NTP version number which 3682b15cb3dSCy Schubert.Nm 369ea906c41SOllivier Robertclaims in 370ea906c41SOllivier Robertpackets. 3712b15cb3dSCy SchubertDefaults to 3, and note that mode 6 control messages (and 372ea906c41SOllivier Robertmodes, for that matter) didn't exist in NTP version 1. 373ea906c41SOllivier RobertThere appear 374ea906c41SOllivier Robertto be no servers left which demand version 1. 375ea906c41SOllivier RobertWith no argument, displays the current NTP version that will be used 376ea906c41SOllivier Robertwhen communicating with servers. 3772b15cb3dSCy Schubert.It Ic passwd 378ea906c41SOllivier RobertThis command prompts you to type in a password (which will not 379ea906c41SOllivier Robertbe echoed) which will be used to authenticate configuration 380ea906c41SOllivier Robertrequests. 381ea906c41SOllivier RobertThe password must correspond to the key configured for 382ea906c41SOllivier Robertuse by the NTP server for this purpose if such requests are to be 383ea906c41SOllivier Robertsuccessful. 38409100258SXin LI.It Ic poll Oo Ar n Oc Op Cm verbose 38509100258SXin LIPoll an NTP server in client mode 38609100258SXin LI.Ar n 38709100258SXin LItimes. 38809100258SXin LIPoll not implemented yet. 3892b15cb3dSCy Schubert.It Ic quit 3902b15cb3dSCy SchubertExit 3912b15cb3dSCy Schubert.Nm . 3922b15cb3dSCy Schubert.It Ic raw 393ea906c41SOllivier RobertCauses all output from query commands is printed as received 394ea906c41SOllivier Robertfrom the remote server. 395ea906c41SOllivier RobertThe only formating/interpretation done on 396ea906c41SOllivier Robertthe data is to transform nonascii data into a printable (but barely 397ea906c41SOllivier Robertunderstandable) form. 39809100258SXin LI.It Ic timeout Op Ar milliseconds 399ea906c41SOllivier RobertSpecify a timeout period for responses to server queries. 400ea906c41SOllivier RobertThe 401ea906c41SOllivier Robertdefault is about 5000 milliseconds. 40209100258SXin LIWithout any arguments, displays the current timeout period. 403ea906c41SOllivier RobertNote that since 4042b15cb3dSCy Schubert.Nm 405ea906c41SOllivier Robertretries each query once after a timeout, the total waiting time for 406ea906c41SOllivier Roberta timeout will be twice the timeout value set. 4072b15cb3dSCy Schubert.It Ic version 40809100258SXin LIDisplay the version of the 4092b15cb3dSCy Schubert.Nm 4102b15cb3dSCy Schubertprogram. 4112b15cb3dSCy Schubert.El 412ea906c41SOllivier Robert 4132b15cb3dSCy Schubert.Ss "Control Message Commands" 41409100258SXin LIAssociation ids are used to identify system, peer and clock variables. 41509100258SXin LISystem variables are assigned an association id of zero and system name 41609100258SXin LIspace, while each association is assigned a nonzero association id and 41709100258SXin LIpeer namespace. 41809100258SXin LIMost control commands send a single message to the server and expect a 41909100258SXin LIsingle response message. 4202b15cb3dSCy SchubertThe exceptions are the 42109100258SXin LI.Ic peers 4222b15cb3dSCy Schubertcommand, which sends a series of messages, 4232b15cb3dSCy Schubertand the 42409100258SXin LI.Ic mreadlist 4252b15cb3dSCy Schubertand 42609100258SXin LI.Ic mreadvar 4272b15cb3dSCy Schubertcommands, which iterate over a range of associations. 4282b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 42909100258SXin LI.It Ic apeers 43009100258SXin LIDisplay a list of peers in the form: 43109100258SXin LI.Dl [tally]remote refid assid st t when pool reach delay offset jitter 43209100258SXin LIwhere the output is just like the 43309100258SXin LI.Ic peers 43409100258SXin LIcommand except that the 43509100258SXin LI.Cm refid 43609100258SXin LIis displayed in hex format and the association number is also displayed. 43709100258SXin LI.It Ic associations 4382b15cb3dSCy SchubertDisplay a list of mobilized associations in the form: 4392b15cb3dSCy Schubert.Dl ind assid status conf reach auth condition last_event cnt 44009100258SXin LI.Bl -column -offset indent ".Sy Variable" "see the select field of the peer status word" 44109100258SXin LI.It Sy Variable Ta Sy Description 44209100258SXin LI.It Cm ind Ta index on this list 44309100258SXin LI.It Cm assid Ta association id 44409100258SXin LI.It Cm status Ta peer status word 44509100258SXin LI.It Cm conf Ta Cm yes : No persistent, Cm no : No ephemeral 44609100258SXin LI.It Cm reach Ta Cm yes : No reachable, Cm no : No unreachable 44709100258SXin LI.It Cm auth Ta Cm ok , Cm yes , Cm bad No and Cm none 44809100258SXin LI.It Cm condition Ta selection status \&(see the Cm select No field of the peer status word\&) 44909100258SXin LI.It Cm last_event Ta event report \&(see the Cm event No field of the peer status word\&) 45009100258SXin LI.It Cm cnt Ta event count \&(see the Cm count No field of the peer status word\&) 4512b15cb3dSCy Schubert.El 45209100258SXin LI.It Ic authinfo 45309100258SXin LIDisplay the authentication statistics counters: 45409100258SXin LItime since reset, stored keys, free keys, key lookups, keys not found, 45509100258SXin LIuncached keys, expired keys, encryptions, decryptions. 45609100258SXin LI.It Ic clocklist Op Ar associd 45709100258SXin LI.It Ic cl Op Ar associd 45809100258SXin LIDisplay all clock variables in the variable list for those associations 45909100258SXin LIsupporting a reference clock. 46009100258SXin LI.It Ic clockvar Oo Ar associd Oc Oo Ar name Ns Oo \&= Ns Ar value Oc Ns Oc Ns Op ,... 46109100258SXin LI.It Ic cv Oo Ar associd Oc Oo Ar name Ns Oo \&= Ns Ar value Oc Ns Oc Ns Op ,... 46209100258SXin LIDisplay a list of clock variables for those associations supporting a 46309100258SXin LIreference clock. 46409100258SXin LI.It Ic :config Ar "configuration command line" 46509100258SXin LISend the remainder of the command line, including whitespace, to the 46609100258SXin LIserver as a run-time configuration command in the same format as a line 46709100258SXin LIin the configuration file. 46809100258SXin LIThis command is experimental until further notice and clarification. 46909100258SXin LIAuthentication is of course required. 47009100258SXin LI.It Ic config-from-file Ar filename 47109100258SXin LISend each line of 4722b15cb3dSCy Schubert.Ar filename 47309100258SXin LIto the server as run-time configuration commands in the same format as 47409100258SXin LIlines in the configuration file. 47509100258SXin LIThis command is experimental until further notice and clarification. 47609100258SXin LIAuthentication is required. 4772b15cb3dSCy Schubert.It Ic ifstats 47809100258SXin LIDisplay status and statistics counters for each local network interface address: 47909100258SXin LIinterface number, interface name and address or broadcast, drop, flag, 48009100258SXin LIttl, mc, received, sent, send failed, peers, uptime. 48109100258SXin LIAuthentication is required. 4822b15cb3dSCy Schubert.It Ic iostats 48309100258SXin LIDisplay network and reference clock I/O statistics: 48409100258SXin LItime since reset, receive buffers, free receive buffers, used receive buffers, 48509100258SXin LIlow water refills, dropped packets, ignored packets, received packets, 48609100258SXin LIpackets sent, packet send failures, input wakeups, useful input wakeups. 4872b15cb3dSCy Schubert.It Ic kerninfo 48809100258SXin LIDisplay kernel loop and PPS statistics: 48909100258SXin LIassocid, status, pll offset, pll frequency, maximum error, 49009100258SXin LIestimated error, kernel status, pll time constant, precision, 49109100258SXin LIfrequency tolerance, pps frequency, pps stability, pps jitter, 49209100258SXin LIcalibration interval, calibration cycles, jitter exceeded, 49309100258SXin LIstability exceeded, calibration errors. 49409100258SXin LIAs with other ntpq output, times are in milliseconds; very small values 49509100258SXin LImay be shown as exponentials. 49609100258SXin LIThe precision value displayed is in milliseconds as well, unlike the 49709100258SXin LIprecision system variable. 4982b15cb3dSCy Schubert.It Ic lassociations 49909100258SXin LIPerform the same function as the associations command, except display 50009100258SXin LImobilized and unmobilized associations, including all clients. 50109100258SXin LI.It Ic lopeers Op Fl 4 Ns | Ns Fl 6 50209100258SXin LIDisplay a list of all peers and clients showing 50309100258SXin LI.Cm dstadr 50409100258SXin LI(associated with the given IP version). 50509100258SXin LI.It Ic lpassociations 50609100258SXin LIDisplay the last obtained list of associations, including all clients. 50709100258SXin LI.It Ic lpeers Op Fl 4 Ns | Ns Fl 6 50809100258SXin LIDisplay a list of all peers and clients (associated with the given IP version). 5092b15cb3dSCy Schubert.It Ic monstats 51009100258SXin LIDisplay monitor facility status, statistics, and limits: 51109100258SXin LIenabled, addresses, peak addresses, maximum addresses, 51209100258SXin LIreclaim above count, reclaim older than, kilobytes, maximum kilobytes. 51309100258SXin LI.It Ic mreadlist Ar associdlo Ar associdhi 51409100258SXin LI.It Ic mrl Ar associdlo Ar associdhi 51509100258SXin LIPerform the same function as the 51609100258SXin LI.Ic readlist 51709100258SXin LIcommand for a range of association ids. 51809100258SXin LI.It Ic mreadvar Ar associdlo Ar associdhi Oo Ar name Oc Ns Op ,... 51909100258SXin LIThis range may be determined from the list displayed by any 52009100258SXin LIcommand showing associations. 52109100258SXin LI.It Ic mrv Ar associdlo Ar associdhi Oo Ar name Oc Ns Op ,... 52209100258SXin LIPerform the same function as the 52309100258SXin LI.Ic readvar 52409100258SXin LIcommand for a range of association ids. 52509100258SXin LIThis range may be determined from the list displayed by any 52609100258SXin LIcommand showing associations. 52709100258SXin LI.It Xo Ic mrulist Oo Cm limited | Cm kod | Cm mincount Ns \&= Ns Ar count | 52809100258SXin LI.Cm laddr Ns \&= Ns Ar localaddr | Cm sort Ns \&= Ns Oo \&- Oc Ns Ar sortorder | 52909100258SXin LI.Cm resany Ns \&= Ns Ar hexmask | Cm resall Ns \&= Ns Ar hexmask Oc 53009100258SXin LI.Xc 53109100258SXin LIDisplay traffic counts of the most recently seen source addresses 53209100258SXin LIcollected and maintained by the monitor facility. 5332b15cb3dSCy SchubertWith the exception of 53409100258SXin LI.Cm sort Ns \&= Ns Oo \&- Oc Ns Ar sortorder , 5352b15cb3dSCy Schubertthe options filter the list returned by 53609100258SXin LI.Xr ntpd 8 . 5372b15cb3dSCy SchubertThe 5382b15cb3dSCy Schubert.Cm limited 5392b15cb3dSCy Schubertand 5402b15cb3dSCy Schubert.Cm kod 54109100258SXin LIoptions return only entries representing client addresses from which the 54209100258SXin LIlast packet received triggered either discarding or a KoD response. 5432b15cb3dSCy SchubertThe 5442b15cb3dSCy Schubert.Cm mincount Ns = Ns Ar count 5452b15cb3dSCy Schubertoption filters entries representing less than 5462b15cb3dSCy Schubert.Ar count 5472b15cb3dSCy Schubertpackets. 5482b15cb3dSCy SchubertThe 5492b15cb3dSCy Schubert.Cm laddr Ns = Ns Ar localaddr 5502b15cb3dSCy Schubertoption filters entries for packets received on any local address other than 5512b15cb3dSCy Schubert.Ar localaddr . 5522b15cb3dSCy Schubert.Cm resany Ns = Ns Ar hexmask 5532b15cb3dSCy Schubertand 5542b15cb3dSCy Schubert.Cm resall Ns = Ns Ar hexmask 5552b15cb3dSCy Schubertfilter entries containing none or less than all, respectively, of the bits in 5562b15cb3dSCy Schubert.Ar hexmask , 5572b15cb3dSCy Schubertwhich must begin with 5582b15cb3dSCy Schubert.Cm 0x . 5592b15cb3dSCy SchubertThe 5602b15cb3dSCy Schubert.Ar sortorder 5612b15cb3dSCy Schubertdefaults to 5622b15cb3dSCy Schubert.Cm lstint 56309100258SXin LIand may be 5642b15cb3dSCy Schubert.Cm addr , 5652b15cb3dSCy Schubert.Cm avgint , 56609100258SXin LI.Cm count , 5672b15cb3dSCy Schubert.Cm lstint , 56809100258SXin LIor any of those preceded by 56909100258SXin LI.Ql \&- 57009100258SXin LIto reverse the sort order. 5712b15cb3dSCy SchubertThe output columns are: 5722b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 5732b15cb3dSCy Schubert.It Column 5742b15cb3dSCy SchubertDescription 5752b15cb3dSCy Schubert.It Ic lstint 57609100258SXin LIInterval in seconds between the receipt of the most recent packet from 57709100258SXin LIthis address and the completion of the retrieval of the MRU list by 5782b15cb3dSCy Schubert.Nm . 5792b15cb3dSCy Schubert.It Ic avgint 5802b15cb3dSCy SchubertAverage interval in s between packets from this address. 5812b15cb3dSCy Schubert.It Ic rstr 5822b15cb3dSCy SchubertRestriction flags associated with this address. 5832b15cb3dSCy SchubertMost are copied unchanged from the matching 5842b15cb3dSCy Schubert.Ic restrict 58509100258SXin LIcommand, however 0x400 (kod) and 0x20 (limited) flags are cleared unless 58609100258SXin LIthe last packet from this address triggered a rate control response. 5872b15cb3dSCy Schubert.It Ic r 5882b15cb3dSCy SchubertRate control indicator, either 5892b15cb3dSCy Schuberta period, 5902b15cb3dSCy Schubert.Ic L 5912b15cb3dSCy Schubertor 5922b15cb3dSCy Schubert.Ic K 5932b15cb3dSCy Schubertfor no rate control response, 5942b15cb3dSCy Schubertrate limiting by discarding, or rate limiting with a KoD response, respectively. 5952b15cb3dSCy Schubert.It Ic m 5962b15cb3dSCy SchubertPacket mode. 5972b15cb3dSCy Schubert.It Ic v 5982b15cb3dSCy SchubertPacket version number. 5992b15cb3dSCy Schubert.It Ic count 6002b15cb3dSCy SchubertPackets received from this address. 6012b15cb3dSCy Schubert.It Ic rport 6022b15cb3dSCy SchubertSource port of last packet from this address. 6032b15cb3dSCy Schubert.It Ic remote address 60409100258SXin LIhost or DNS name, numeric address, or address followed by 6052b15cb3dSCy Schubertclaimed DNS name which could not be verified in parentheses. 6062b15cb3dSCy Schubert.El 60709100258SXin LI.It Ic opeers Op Fl 4 | Fl 6 6082b15cb3dSCy SchubertObtain and print the old-style list of all peers and clients showing 60909100258SXin LI.Cm dstadr 61009100258SXin LI(associated with the given IP version), 6112b15cb3dSCy Schubertrather than the 61209100258SXin LI.Cm refid . 6132b15cb3dSCy Schubert.It Ic passociations 6142b15cb3dSCy SchubertPerform the same function as the 6152b15cb3dSCy Schubert.Ic associations 6162b15cb3dSCy Schubertcommand, 6172b15cb3dSCy Schubertexcept that it uses previously stored data rather than making a new query. 6182b15cb3dSCy Schubert.It Ic peers 6192b15cb3dSCy SchubertDisplay a list of peers in the form: 6202b15cb3dSCy Schubert.Dl [tally]remote refid st t when pool reach delay offset jitter 6212b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 6222b15cb3dSCy Schubert.It Variable 6232b15cb3dSCy SchubertDescription 62409100258SXin LI.It Cm [tally] 6252b15cb3dSCy Schubertsingle-character code indicating current value of the 6262b15cb3dSCy Schubert.Ic select 6272b15cb3dSCy Schubertfield of the 6282b15cb3dSCy Schubert.Lk decode.html#peer "peer status word" 62909100258SXin LI.It Cm remote 6302b15cb3dSCy Schuberthost name (or IP number) of peer. 6312b15cb3dSCy SchubertThe value displayed will be truncated to 15 characters unless the 63209100258SXin LI.Nm 6332b15cb3dSCy Schubert.Fl w 63409100258SXin LIoption is given, in which case the full value will be displayed 63509100258SXin LIon the first line, and if too long, 63609100258SXin LIthe remaining data will be displayed on the next line. 63709100258SXin LI.It Cm refid 63809100258SXin LIsource IP address or 6392b15cb3dSCy Schubert.Lk decode.html#kiss "'kiss code" 64009100258SXin LI.It Cm st 64109100258SXin LIstratum: 0 for local reference clocks, 1 for servers with local 64209100258SXin LIreference clocks, ..., 16 for unsynchronized server clocks 64309100258SXin LI.It Cm t 6442b15cb3dSCy Schubert.Ic u : 6452b15cb3dSCy Schubertunicast or manycast client, 6462b15cb3dSCy Schubert.Ic b : 6472b15cb3dSCy Schubertbroadcast or multicast client, 64809100258SXin LI.Ic p : 64909100258SXin LIpool source, 6502b15cb3dSCy Schubert.Ic l : 6512b15cb3dSCy Schubertlocal (reference clock), 6522b15cb3dSCy Schubert.Ic s : 6532b15cb3dSCy Schubertsymmetric (peer), 6542b15cb3dSCy Schubert.Ic A : 6552b15cb3dSCy Schubertmanycast server, 6562b15cb3dSCy Schubert.Ic B : 6572b15cb3dSCy Schubertbroadcast server, 6582b15cb3dSCy Schubert.Ic M : 6592b15cb3dSCy Schubertmulticast server 66009100258SXin LI.It Cm when 66109100258SXin LItime in seconds, minutes, hours, or days since the last packet 66209100258SXin LIwas received, or 66309100258SXin LI.Ql \&- 66409100258SXin LIif a packet has never been received 66509100258SXin LI.It Cm poll 66609100258SXin LIpoll interval (s) 66709100258SXin LI.It Cm reach 6682b15cb3dSCy Schubertreach shift register (octal) 66909100258SXin LI.It Cm delay 6702b15cb3dSCy Schubertroundtrip delay 67109100258SXin LI.It Cm offset 6722b15cb3dSCy Schubertoffset of server relative to this host 67309100258SXin LI.It Cm jitter 67409100258SXin LIoffset RMS error estimate. 6752b15cb3dSCy Schubert.El 67609100258SXin LI.It Ic pstats Ar associd 67709100258SXin LIDisplay the statistics for the peer with the given 67809100258SXin LI.Ar associd : 67909100258SXin LIassocid, status, remote host, local address, time last received, 68009100258SXin LItime until next send, reachability change, packets sent, 68109100258SXin LIpackets received, bad authentication, bogus origin, duplicate, 68209100258SXin LIbad dispersion, bad reference time, candidate order. 68309100258SXin LI.It Ic readlist Op Ar associd 68409100258SXin LI.It Ic rl Op Ar associd 68509100258SXin LIDisplay all system or peer variables. 68609100258SXin LIIf the 68709100258SXin LI.Ar associd 68809100258SXin LIis omitted, it is assumed to be zero. 68909100258SXin LI.It Ic readvar Op Ar associd Ar name Ns Oo Ns = Ns Ar value Oc Op , ... 69009100258SXin LI.It Ic rv Op Ar associd Ar name Ns Oo Ns = Ns Ar value Oc Op , ... 69109100258SXin LIDisplay the specified system or peer variables. 6922b15cb3dSCy SchubertIf 69309100258SXin LI.Ar associd 6942b15cb3dSCy Schubertis zero, the variables are from the 6952b15cb3dSCy Schubert.Sx System Variables 6962b15cb3dSCy Schubertname space, otherwise they are from the 6972b15cb3dSCy Schubert.Sx Peer Variables 6982b15cb3dSCy Schubertname space. 6992b15cb3dSCy SchubertThe 70009100258SXin LI.Ar associd 7012b15cb3dSCy Schubertis required, as the same name can occur in both spaces. 7022b15cb3dSCy SchubertIf no 7032b15cb3dSCy Schubert.Ar name 7042b15cb3dSCy Schubertis included, all operative variables in the name space are displayed. 7052b15cb3dSCy SchubertIn this case only, if the 70609100258SXin LI.Ar associd 70709100258SXin LIis omitted, it is assumed to be zero. 7082b15cb3dSCy SchubertMultiple names are specified with comma separators and without whitespace. 7092b15cb3dSCy SchubertNote that time values are represented in milliseconds 7102b15cb3dSCy Schubertand frequency values in parts-per-million (PPM). 7112b15cb3dSCy SchubertSome NTP timestamps are represented in the format 71209100258SXin LI.Ar YYYY Ns Ar MM Ar DD Ar TTTT , 71309100258SXin LIwhere 71409100258SXin LI.Ar YYYY 71509100258SXin LIis the year, 71609100258SXin LI.Ar MM 71709100258SXin LIthe month of year, 71809100258SXin LI.Ar DD 71909100258SXin LIthe day of month and 72009100258SXin LI.Ar TTTT 72109100258SXin LIthe time of day. 7222b15cb3dSCy Schubert.It Ic reslist 72309100258SXin LIDisplay the access control (restrict) list for 7242b15cb3dSCy Schubert.Nm . 72509100258SXin LIAuthentication is required. 7262b15cb3dSCy Schubert.It Ic saveconfig Ar filename 72709100258SXin LISave the current configuration, 72809100258SXin LIincluding any runtime modifications made by 7292b15cb3dSCy Schubert.Ic :config 7302b15cb3dSCy Schubertor 7312b15cb3dSCy Schubert.Ic config-from-file , 73209100258SXin LIto the NTP server host file 7332b15cb3dSCy Schubert.Ar filename . 7342b15cb3dSCy SchubertThis command will be rejected by the server unless 7352b15cb3dSCy Schubert.Lk miscopt.html#saveconfigdir "saveconfigdir" 7362b15cb3dSCy Schubertappears in the 73709100258SXin LI.Xr ntpd 8 7382b15cb3dSCy Schubertconfiguration file. 7392b15cb3dSCy Schubert.Ar filename 7402b15cb3dSCy Schubertcan use 74109100258SXin LI.Xr date 1 74209100258SXin LIformat specifiers to substitute the current date and time, for 74309100258SXin LIexample, 74409100258SXin LI.D1 Ic saveconfig Pa ntp-%Y%m%d-%H%M%S.conf . 7452b15cb3dSCy SchubertThe filename used is stored in system variable 74609100258SXin LI.Cm savedconfig . 7472b15cb3dSCy SchubertAuthentication is required. 74809100258SXin LI.It Ic sysinfo 74909100258SXin LIDisplay system operational summary: 75009100258SXin LIassocid, status, system peer, system peer mode, leap indicator, 75109100258SXin LIstratum, log2 precision, root delay, root dispersion, 75209100258SXin LIreference id, reference time, system jitter, clock jitter, 75309100258SXin LIclock wander, broadcast delay, symm. auth. delay. 75409100258SXin LI.It Ic sysstats 75509100258SXin LIDisplay system uptime and packet counts maintained in the 75609100258SXin LIprotocol module: 75709100258SXin LIuptime, sysstats reset, packets received, current version, 75809100258SXin LIolder version, bad length or format, authentication failed, 75909100258SXin LIdeclined, restricted, rate limited, KoD responses, 76009100258SXin LIprocessed for time. 7612b15cb3dSCy Schubert.It Ic timerstats 76209100258SXin LIDisplay interval timer counters: 76309100258SXin LItime since reset, timer overruns, calls to transmit. 76409100258SXin LI.It Ic writelist Ar associd 76509100258SXin LISet all system or peer variables included in the variable list. 76609100258SXin LI.It Ic writevar Ar associd Ar name Ns = Ns Ar value Op , ... 76709100258SXin LISet the specified variables in the variable list. 7682b15cb3dSCy SchubertIf the 76909100258SXin LI.Ar associd 7702b15cb3dSCy Schubertis zero, the variables are from the 7712b15cb3dSCy Schubert.Sx System Variables 7722b15cb3dSCy Schubertname space, otherwise they are from the 7732b15cb3dSCy Schubert.Sx Peer Variables 7742b15cb3dSCy Schubertname space. 7752b15cb3dSCy SchubertThe 77609100258SXin LI.Ar associd 7772b15cb3dSCy Schubertis required, as the same name can occur in both spaces. 77809100258SXin LIAuthentication is required. 7792b15cb3dSCy Schubert.El 7802b15cb3dSCy Schubert 7812b15cb3dSCy Schubert.Ss Status Words and Kiss Codes 7822b15cb3dSCy SchubertThe current state of the operating program is shown 7832b15cb3dSCy Schubertin a set of status words 7842b15cb3dSCy Schubertmaintained by the system. 7852b15cb3dSCy SchubertStatus information is also available on a per-association basis. 78609100258SXin LIThese words are displayed by the 78709100258SXin LI.Ic readlist 7882b15cb3dSCy Schubertand 78909100258SXin LI.Ic associations 7902b15cb3dSCy Schubertcommands both in hexadecimal and in decoded short tip strings. 7912b15cb3dSCy SchubertThe codes, tips and short explanations are documented on the 7922b15cb3dSCy Schubert.Lk decode.html "Event Messages and Status Words" 7932b15cb3dSCy Schubertpage. 7942b15cb3dSCy SchubertThe page also includes a list of system and peer messages, 7952b15cb3dSCy Schubertthe code for the latest of which is included in the status word. 7962b15cb3dSCy Schubert.Pp 7972b15cb3dSCy SchubertInformation resulting from protocol machine state transitions 7982b15cb3dSCy Schubertis displayed using an informal set of ASCII strings called 7992b15cb3dSCy Schubert.Lk decode.html#kiss "kiss codes" . 8002b15cb3dSCy SchubertThe original purpose was for kiss-o'-death (KoD) packets 8012b15cb3dSCy Schubertsent by the server to advise the client of an unusual condition. 8022b15cb3dSCy SchubertThey are now displayed, when appropriate, 8032b15cb3dSCy Schubertin the reference identifier field in various billboards. 8042b15cb3dSCy Schubert 8052b15cb3dSCy Schubert.Ss System Variables 8062b15cb3dSCy SchubertThe following system variables appear in the 80709100258SXin LI.Ic readlist 8082b15cb3dSCy Schubertbillboard. 8092b15cb3dSCy SchubertNot all variables are displayed in some configurations. 81009100258SXin LI.Pp 8112b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 8122b15cb3dSCy Schubert.It Variable 8132b15cb3dSCy SchubertDescription 81409100258SXin LI.It Cm status 8152b15cb3dSCy Schubert.Lk decode.html#sys "system status word" 81609100258SXin LI.It Cm version 8172b15cb3dSCy SchubertNTP software version and build time 81809100258SXin LI.It Cm processor 8192b15cb3dSCy Schuberthardware platform and version 82009100258SXin LI.It Cm system 8212b15cb3dSCy Schubertoperating system and version 82209100258SXin LI.It Cm leap 8232b15cb3dSCy Schubertleap warning indicator (0-3) 82409100258SXin LI.It Cm stratum 8252b15cb3dSCy Schubertstratum (1-15) 82609100258SXin LI.It Cm precision 8272b15cb3dSCy Schubertprecision (log2 s) 82809100258SXin LI.It Cm rootdelay 8292b15cb3dSCy Schuberttotal roundtrip delay to the primary reference clock 83009100258SXin LI.It Cm rootdisp 8312b15cb3dSCy Schuberttotal dispersion to the primary reference clock 83209100258SXin LI.It Cm refid 83309100258SXin LIreference id or 83409100258SXin LI.Lk decode.html#kiss "kiss code" 83509100258SXin LI.It Cm reftime 83609100258SXin LIreference time 8372b15cb3dSCy Schubert.It Ic clock 8382b15cb3dSCy Schubertdate and time of day 83909100258SXin LI.It Cm peer 84009100258SXin LIsystem peer association id 84109100258SXin LI.It Cm tc 84209100258SXin LItime constant and poll exponent (log2 s) (3-17) 84309100258SXin LI.It Cm mintc 84409100258SXin LIminimum time constant (log2 s) (3-10) 84509100258SXin LI.It Cm offset 8462b15cb3dSCy Schubertcombined offset of server relative to this host 84709100258SXin LI.It Cm frequency 84809100258SXin LIfrequency drift (PPM) relative to hardware clock 84909100258SXin LI.It Cm sys_jitter 8502b15cb3dSCy Schubertcombined system jitter 85109100258SXin LI.It Cm clk_wander 8522b15cb3dSCy Schubertclock frequency wander (PPM) 85309100258SXin LI.It Cm clk_jitter 8542b15cb3dSCy Schubertclock jitter 85509100258SXin LI.It Cm tai 8562b15cb3dSCy SchubertTAI-UTC offset (s) 85709100258SXin LI.It Cm leapsec 8582b15cb3dSCy SchubertNTP seconds when the next leap second is/was inserted 85909100258SXin LI.It Cm expire 8602b15cb3dSCy SchubertNTP seconds when the NIST leapseconds file expires 8612b15cb3dSCy Schubert.El 8622b15cb3dSCy SchubertThe jitter and wander statistics are exponentially-weighted RMS averages. 8632b15cb3dSCy SchubertThe system jitter is defined in the NTPv4 specification; 8642b15cb3dSCy Schubertthe clock jitter statistic is computed by the clock discipline module. 8652b15cb3dSCy Schubert.Pp 8662b15cb3dSCy SchubertWhen the NTPv4 daemon is compiled with the OpenSSL software library, 8672b15cb3dSCy Schubertadditional system variables are displayed, 8682b15cb3dSCy Schubertincluding some or all of the following, 8692b15cb3dSCy Schubertdepending on the particular Autokey dance: 8702b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 8712b15cb3dSCy Schubert.It Variable 8722b15cb3dSCy SchubertDescription 87309100258SXin LI.It Cm host 8742b15cb3dSCy SchubertAutokey host name for this host 87509100258SXin LI.It Cm ident 8762b15cb3dSCy SchubertAutokey group name for this host 87709100258SXin LI.It Cm flags 8782b15cb3dSCy Schuberthost flags (see Autokey specification) 87909100258SXin LI.It Cm digest 8802b15cb3dSCy SchubertOpenSSL message digest algorithm 88109100258SXin LI.It Cm signature 8822b15cb3dSCy SchubertOpenSSL digest/signature scheme 88309100258SXin LI.It Cm update 8842b15cb3dSCy SchubertNTP seconds at last signature update 88509100258SXin LI.It Cm cert 8862b15cb3dSCy Schubertcertificate subject, issuer and certificate flags 88709100258SXin LI.It Cm until 8882b15cb3dSCy SchubertNTP seconds when the certificate expires 8892b15cb3dSCy Schubert.El 8902b15cb3dSCy Schubert.Ss Peer Variables 8912b15cb3dSCy SchubertThe following peer variables appear in the 89209100258SXin LI.Ic readlist 8932b15cb3dSCy Schubertbillboard for each association. 8942b15cb3dSCy SchubertNot all variables are displayed in some configurations. 89509100258SXin LI.Pp 8962b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 8972b15cb3dSCy Schubert.It Variable 8982b15cb3dSCy SchubertDescription 89909100258SXin LI.It Cm associd 90009100258SXin LIassociation id 90109100258SXin LI.It Cm status 9022b15cb3dSCy Schubert.Lk decode.html#peer "peer status word" 90309100258SXin LI.It Cm srcadr 9042b15cb3dSCy Schubertsource (remote) IP address 90509100258SXin LI.It Cm srcport 9062b15cb3dSCy Schubertsource (remote) port 90709100258SXin LI.It Cm dstadr 9082b15cb3dSCy Schubertdestination (local) IP address 90909100258SXin LI.It Cm dstport 9102b15cb3dSCy Schubertdestination (local) port 91109100258SXin LI.It Cm leap 9122b15cb3dSCy Schubertleap indicator (0-3) 91309100258SXin LI.It Cm stratum 9142b15cb3dSCy Schubertstratum (0-15) 91509100258SXin LI.It Cm precision 9162b15cb3dSCy Schubertprecision (log2 s) 91709100258SXin LI.It Cm rootdelay 9182b15cb3dSCy Schuberttotal roundtrip delay to the primary reference clock 91909100258SXin LI.It Cm rootdisp 9202b15cb3dSCy Schuberttotal root dispersion to the primary reference clock 92109100258SXin LI.It Cm refid 92209100258SXin LIreference id or 9232b15cb3dSCy Schubert.Lk decode.html#kiss "kiss code" 92409100258SXin LI.It Cm reftime 9252b15cb3dSCy Schubertreference time 92609100258SXin LI.It Cm rec 92709100258SXin LIlast packet received time 92809100258SXin LI.It Cm reach 9292b15cb3dSCy Schubertreach register (octal) 93009100258SXin LI.It Cm unreach 9312b15cb3dSCy Schubertunreach counter 93209100258SXin LI.It Cm hmode 9332b15cb3dSCy Schuberthost mode (1-6) 93409100258SXin LI.It Cm pmode 9352b15cb3dSCy Schubertpeer mode (1-5) 93609100258SXin LI.It Cm hpoll 9372b15cb3dSCy Schuberthost poll exponent (log2 s) (3-17) 93809100258SXin LI.It Cm ppoll 9392b15cb3dSCy Schubertpeer poll exponent (log2 s) (3-17) 94009100258SXin LI.It Cm headway 9412b15cb3dSCy Schubertheadway (see 9422b15cb3dSCy Schubert.Lk rate.html "Rate Management and the Kiss-o'-Death Packet" ) 94309100258SXin LI.It Cm flash 9442b15cb3dSCy Schubert.Lk decode.html#flash "flash status word" 94509100258SXin LI.It Cm keyid 94609100258SXin LIsymmetric key id 94709100258SXin LI.It Cm offset 9482b15cb3dSCy Schubertfilter offset 94909100258SXin LI.It Cm delay 9502b15cb3dSCy Schubertfilter delay 95109100258SXin LI.It Cm dispersion 9522b15cb3dSCy Schubertfilter dispersion 95309100258SXin LI.It Cm jitter 9542b15cb3dSCy Schubertfilter jitter 95509100258SXin LI.It Cm bias 9562b15cb3dSCy Schubertunicast/broadcast bias 95709100258SXin LI.It Cm xleave 9582b15cb3dSCy Schubertinterleave delay (see 9592b15cb3dSCy Schubert.Lk xleave.html "NTP Interleaved Modes" ) 9602b15cb3dSCy Schubert.El 9612b15cb3dSCy SchubertThe 96209100258SXin LI.Cm bias 9632b15cb3dSCy Schubertvariable is calculated when the first broadcast packet is received 9642b15cb3dSCy Schubertafter the calibration volley. 96509100258SXin LIIt represents the offset of the broadcast subgraph relative to the 96609100258SXin LIunicast subgraph. 9672b15cb3dSCy SchubertThe 96809100258SXin LI.Cm xleave 9692b15cb3dSCy Schubertvariable appears only for the interleaved symmetric and interleaved modes. 9702b15cb3dSCy SchubertIt represents the internal queuing, buffering and transmission delays 9712b15cb3dSCy Schubertfor the preceding packet. 9722b15cb3dSCy Schubert.Pp 9732b15cb3dSCy SchubertWhen the NTPv4 daemon is compiled with the OpenSSL software library, 9742b15cb3dSCy Schubertadditional peer variables are displayed, including the following: 9752b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 9762b15cb3dSCy Schubert.It Variable 9772b15cb3dSCy SchubertDescription 97809100258SXin LI.It Cm flags 9792b15cb3dSCy Schubertpeer flags (see Autokey specification) 98009100258SXin LI.It Cm host 9812b15cb3dSCy SchubertAutokey server name 98209100258SXin LI.It Cm flags 9832b15cb3dSCy Schubertpeer flags (see Autokey specification) 98409100258SXin LI.It Cm signature 9852b15cb3dSCy SchubertOpenSSL digest/signature scheme 98609100258SXin LI.It Cm initsequence 98709100258SXin LIinitial key id 98809100258SXin LI.It Cm initkey 9892b15cb3dSCy Schubertinitial key index 99009100258SXin LI.It Cm timestamp 9912b15cb3dSCy SchubertAutokey signature timestamp 99209100258SXin LI.It Cm ident 99309100258SXin LIAutokey group name for this association 9942b15cb3dSCy Schubert.El 9952b15cb3dSCy Schubert 9962b15cb3dSCy Schubert.Ss Clock Variables 9972b15cb3dSCy SchubertThe following clock variables appear in the 99809100258SXin LI.Ic clocklist 9992b15cb3dSCy Schubertbillboard for each association with a reference clock. 10002b15cb3dSCy SchubertNot all variables are displayed in some configurations. 10012b15cb3dSCy Schubert.Bl -tag -width "something" -compact -offset indent 10022b15cb3dSCy Schubert.It Variable 10032b15cb3dSCy SchubertDescription 100409100258SXin LI.It Cm associd 100509100258SXin LIassociation id 100609100258SXin LI.It Cm status 10072b15cb3dSCy Schubert.Lk decode.html#clock "clock status word" 100809100258SXin LI.It Cm device 10092b15cb3dSCy Schubertdevice description 101009100258SXin LI.It Cm timecode 10112b15cb3dSCy SchubertASCII time code string (specific to device) 101209100258SXin LI.It Cm poll 10132b15cb3dSCy Schubertpoll messages sent 101409100258SXin LI.It Cm noreply 10152b15cb3dSCy Schubertno reply 101609100258SXin LI.It Cm badformat 10172b15cb3dSCy Schubertbad format 101809100258SXin LI.It Cm baddata 10192b15cb3dSCy Schubertbad date or time 102009100258SXin LI.It Cm fudgetime1 10212b15cb3dSCy Schubertfudge time 1 102209100258SXin LI.It Cm fudgetime2 10232b15cb3dSCy Schubertfudge time 2 102409100258SXin LI.It Cm stratum 10252b15cb3dSCy Schubertdriver stratum 102609100258SXin LI.It Cm refid 102709100258SXin LIdriver reference id 102809100258SXin LI.It Cm flags 10292b15cb3dSCy Schubertdriver flags 10302b15cb3dSCy Schubert.El 10312b15cb3dSCy Schubert _END_PROG_MDOC_DESCRIP; 10322b15cb3dSCy Schubert}; 1033