1*897be3a4Schristos.Dd May 25 2024 28585484eSchristos.Dt NTPDC 1ntpdcmdoc User Commands 3b8ecfcfeSchristos.Os 48585484eSchristos.\" EDIT THIS FILE WITH CAUTION (ntpdc-opts.mdoc) 58585484eSchristos.\" 6*897be3a4Schristos.\" It has been AutoGen-ed May 25, 2024 at 12:04:15 AM by AutoGen 5.18.16 78585484eSchristos.\" From the definitions ntpdc-opts.def 88585484eSchristos.\" and the template file agmdoc-cmd.tpl 98585484eSchristos.Sh NAME 108585484eSchristos.Nm ntpdc 118585484eSchristos.Nd vendor-specific NTPD control program 128585484eSchristos.Sh SYNOPSIS 138585484eSchristos.Nm 148585484eSchristos.\" Mixture of short (flag) options and long options 158585484eSchristos.Op Fl flags 168585484eSchristos.Op Fl flag Op Ar value 178585484eSchristos.Op Fl \-option\-name Ns Oo Oo Ns "=| " Oc Ns Ar value Oc 188585484eSchristos[ host ...] 198585484eSchristos.Pp 208585484eSchristos.Sh DESCRIPTION 218585484eSchristos.Nm 22b8ecfcfeSchristosis deprecated. 23b8ecfcfeSchristosPlease use 24b8ecfcfeSchristos.Xr ntpq 1ntpqmdoc instead \- it can do everything 25b8ecfcfeSchristos.Nm 26b8ecfcfeSchristosused to do, and it does so using a much more sane interface. 27b8ecfcfeSchristos.Pp 28b8ecfcfeSchristos.Nm 298585484eSchristosis a utility program used to query 308585484eSchristos.Xr ntpd 1ntpdmdoc 318585484eSchristosabout its 328585484eSchristoscurrent state and to request changes in that state. 338585484eSchristosIt uses NTP mode 7 control message formats described in the source code. 348585484eSchristosThe program may 358585484eSchristosbe run either in interactive mode or controlled using command line 368585484eSchristosarguments. 378585484eSchristosExtensive state and statistics information is available 388585484eSchristosthrough the 398585484eSchristos.Nm 408585484eSchristosinterface. 418585484eSchristosIn addition, nearly all the 428585484eSchristosconfiguration options which can be specified at startup using 438585484eSchristosntpd's configuration file may also be specified at run time using 448585484eSchristos.Nm . 458585484eSchristos.Sh "OPTIONS" 468585484eSchristos.Bl -tag 478585484eSchristos.It Fl 4 , Fl \-ipv4 488585484eSchristosForce IPv4 DNS name resolution. 498585484eSchristosThis option must not appear in combination with any of the following options: 508585484eSchristosipv6. 518585484eSchristos.sp 528585484eSchristosForce DNS resolution of following host names on the command line 538585484eSchristosto the IPv4 namespace. 548585484eSchristos.It Fl 6 , Fl \-ipv6 558585484eSchristosForce IPv6 DNS name resolution. 568585484eSchristosThis option must not appear in combination with any of the following options: 578585484eSchristosipv4. 588585484eSchristos.sp 598585484eSchristosForce DNS resolution of following host names on the command line 608585484eSchristosto the IPv6 namespace. 618585484eSchristos.It Fl c Ar cmd , Fl \-command Ns = Ns Ar cmd 628585484eSchristosrun a command and exit. 638585484eSchristosThis option may appear an unlimited number of times. 648585484eSchristos.sp 658585484eSchristosThe following argument is interpreted as an interactive format command 668585484eSchristosand is added to the list of commands to be executed on the specified 678585484eSchristoshost(s). 688585484eSchristos.It Fl d , Fl \-debug\-level 698585484eSchristosIncrease debug verbosity level. 708585484eSchristosThis option may appear an unlimited number of times. 718585484eSchristos.sp 728585484eSchristos.It Fl D Ar number , Fl \-set\-debug\-level Ns = Ns Ar number 738585484eSchristosSet the debug verbosity level. 748585484eSchristosThis option may appear an unlimited number of times. 758585484eSchristosThis option takes an integer number as its argument. 768585484eSchristos.sp 778585484eSchristos.It Fl i , Fl \-interactive 788585484eSchristosForce ntpq to operate in interactive mode. 798585484eSchristosThis option must not appear in combination with any of the following options: 808585484eSchristoscommand, listpeers, peers, showpeers. 818585484eSchristos.sp 828585484eSchristosForce ntpq to operate in interactive mode. Prompts will be written 838585484eSchristosto the standard output and commands read from the standard input. 848585484eSchristos.It Fl l , Fl \-listpeers 858585484eSchristosPrint a list of the peers. 868585484eSchristosThis option must not appear in combination with any of the following options: 878585484eSchristoscommand. 888585484eSchristos.sp 898585484eSchristosPrint a list of the peers known to the server as well as a summary of 908585484eSchristostheir state. This is equivalent to the 'listpeers' interactive command. 918585484eSchristos.It Fl n , Fl \-numeric 928585484eSchristosnumeric host addresses. 938585484eSchristos.sp 948585484eSchristosOutput all host addresses in dotted\-quad numeric format rather than 958585484eSchristosconverting to the canonical host names. 968585484eSchristos.It Fl p , Fl \-peers 978585484eSchristosPrint a list of the peers. 988585484eSchristosThis option must not appear in combination with any of the following options: 998585484eSchristoscommand. 1008585484eSchristos.sp 1018585484eSchristosPrint a list of the peers known to the server as well as a summary 1028585484eSchristosof their state. This is equivalent to the 'peers' interactive command. 1038585484eSchristos.It Fl s , Fl \-showpeers 1048585484eSchristosShow a list of the peers. 1058585484eSchristosThis option must not appear in combination with any of the following options: 1068585484eSchristoscommand. 1078585484eSchristos.sp 1088585484eSchristosPrint a list of the peers known to the server as well as a summary 1098585484eSchristosof their state. This is equivalent to the 'dmpeers' interactive command. 110*897be3a4Schristos.It Fl u , Fl \-unconnected 111*897be3a4SchristosUse unconnected UDP to communicate with ntpd (default on Windows). 112*897be3a4Schristos.sp 113*897be3a4SchristosOpen an unconnected UDP association to ntpd (the default 114*897be3a4Schristoson Windows). 1158585484eSchristos.It Fl \&? , Fl \-help 1168585484eSchristosDisplay usage information and exit. 1178585484eSchristos.It Fl \&! , Fl \-more\-help 1188585484eSchristosPass the extended usage information through a pager. 1198585484eSchristos.It Fl > Oo Ar cfgfile Oc , Fl \-save\-opts Oo Ns = Ns Ar cfgfile Oc 1208585484eSchristosSave the option state to \fIcfgfile\fP. The default is the \fIlast\fP 1218585484eSchristosconfiguration file listed in the \fBOPTION PRESETS\fP section, below. 1228585484eSchristosThe command will exit after updating the config file. 1238585484eSchristos.It Fl < Ar cfgfile , Fl \-load\-opts Ns = Ns Ar cfgfile , Fl \-no\-load\-opts 1248585484eSchristosLoad options from \fIcfgfile\fP. 1258585484eSchristosThe \fIno\-load\-opts\fP form will disable the loading 1268585484eSchristosof earlier config/rc/ini files. \fI\-\-no\-load\-opts\fP is handled early, 1278585484eSchristosout of order. 1288585484eSchristos.It Fl \-version Op Brq Ar v|c|n 1298585484eSchristosOutput version of program and exit. The default mode is `v', a simple 1308585484eSchristosversion. The `c' mode will print copyright information and `n' will 1318585484eSchristosprint the full copyright notice. 1328585484eSchristos.El 1338585484eSchristos.Sh "OPTION PRESETS" 1348585484eSchristosAny option that is not marked as \fInot presettable\fP may be preset 1358585484eSchristosby loading values from configuration ("RC" or ".INI") file(s) and values from 1368585484eSchristosenvironment variables named: 1378585484eSchristos.nf 1388585484eSchristos \fBNTPDC_<option\-name>\fP or \fBNTPDC\fP 1398585484eSchristos.fi 1408585484eSchristos.ad 1418585484eSchristosThe environmental presets take precedence (are processed later than) 1428585484eSchristosthe configuration files. 1438585484eSchristosThe \fIhomerc\fP files are "\fI$HOME\fP", and "\fI.\fP". 1448585484eSchristosIf any of these are directories, then the file \fI.ntprc\fP 1458585484eSchristosis searched for within those directories. 1468585484eSchristos.Sh USAGE 1478585484eSchristosIf one or more request options are included on the command line 1488585484eSchristoswhen 1498585484eSchristos.Nm 1508585484eSchristosis executed, each of the requests will be sent 1518585484eSchristosto the NTP servers running on each of the hosts given as command 1528585484eSchristosline arguments, or on localhost by default. 1538585484eSchristosIf no request options 1548585484eSchristosare given, 1558585484eSchristos.Nm 1568585484eSchristoswill attempt to read commands from the 1578585484eSchristosstandard input and execute these on the NTP server running on the 1588585484eSchristosfirst host given on the command line, again defaulting to localhost 1598585484eSchristoswhen no other host is specified. 1608585484eSchristosThe 1618585484eSchristos.Nm 1628585484eSchristosutility will prompt for 1638585484eSchristoscommands if the standard input is a terminal device. 1648585484eSchristos.Pp 1658585484eSchristosThe 1668585484eSchristos.Nm 1678585484eSchristosutility uses NTP mode 7 packets to communicate with the 1688585484eSchristosNTP server, and hence can be used to query any compatible server on 1698585484eSchristosthe network which permits it. 1708585484eSchristosNote that since NTP is a UDP protocol 1718585484eSchristosthis communication will be somewhat unreliable, especially over 1728585484eSchristoslarge distances in terms of network topology. 1738585484eSchristosThe 1748585484eSchristos.Nm 1758585484eSchristosutility makes 1768585484eSchristosno attempt to retransmit requests, and will time requests out if 1778585484eSchristosthe remote host is not heard from within a suitable timeout 1788585484eSchristostime. 1798585484eSchristos.Pp 1808585484eSchristosThe operation of 1818585484eSchristos.Nm 1828585484eSchristosare specific to the particular 1838585484eSchristosimplementation of the 1848585484eSchristos.Xr ntpd 1ntpdmdoc 1858585484eSchristosdaemon and can be expected to 1868585484eSchristoswork only with this and maybe some previous versions of the daemon. 1878585484eSchristosRequests from a remote 1888585484eSchristos.Nm 1898585484eSchristosutility which affect the 1908585484eSchristosstate of the local server must be authenticated, which requires 1918585484eSchristosboth the remote program and local server share a common key and key 1928585484eSchristosidentifier. 1938585484eSchristos.Pp 1948585484eSchristosNote that in contexts where a host name is expected, a 1958585484eSchristos.Fl 4 1968585484eSchristosqualifier preceding the host name forces DNS resolution to the IPv4 namespace, 1978585484eSchristoswhile a 1988585484eSchristos.Fl 6 1998585484eSchristosqualifier forces DNS resolution to the IPv6 namespace. 2008585484eSchristosSpecifying a command line option other than 2018585484eSchristos.Fl i 2028585484eSchristosor 2038585484eSchristos.Fl n 2048585484eSchristoswill cause the specified query (queries) to be sent to 2058585484eSchristosthe indicated host(s) immediately. 2068585484eSchristosOtherwise, 2078585484eSchristos.Nm 2088585484eSchristoswill 2098585484eSchristosattempt to read interactive format commands from the standard 2108585484eSchristosinput. 2118585484eSchristos.Ss "Interactive Commands" 2128585484eSchristosInteractive format commands consist of a keyword followed by zero 2138585484eSchristosto four arguments. 2148585484eSchristosOnly enough characters of the full keyword to 2158585484eSchristosuniquely identify the command need be typed. 2168585484eSchristosThe output of a 2178585484eSchristoscommand is normally sent to the standard output, but optionally the 2188585484eSchristosoutput of individual commands may be sent to a file by appending a 2198585484eSchristos.Ql \&> , 2208585484eSchristosfollowed by a file name, to the command line. 2218585484eSchristos.Pp 2228585484eSchristosA number of interactive format commands are executed entirely 2238585484eSchristoswithin the 2248585484eSchristos.Nm 2258585484eSchristosutility itself and do not result in NTP 2268585484eSchristosmode 7 requests being sent to a server. 2278585484eSchristosThese are described 2288585484eSchristosfollowing. 2298585484eSchristos.Bl -tag -width indent 2308585484eSchristos.It Ic \&? Ar command_keyword 2318585484eSchristos.It Ic help Ar command_keyword 2328585484eSchristosA 2338585484eSchristos.Sq Ic \&? 2348585484eSchristoswill print a list of all the command 2358585484eSchristoskeywords known to this incarnation of 2368585484eSchristos.Nm . 2378585484eSchristosA 2388585484eSchristos.Sq Ic \&? 2398585484eSchristosfollowed by a command keyword will print function and usage 2408585484eSchristosinformation about the command. 2418585484eSchristosThis command is probably a better 2428585484eSchristossource of information about 2438585484eSchristos.Xr ntpq 1ntpqmdoc 2448585484eSchristosthan this manual 2458585484eSchristospage. 2468585484eSchristos.It Ic delay Ar milliseconds 2478585484eSchristosSpecify a time interval to be added to timestamps included in 2488585484eSchristosrequests which require authentication. 2498585484eSchristosThis is used to enable 2508585484eSchristos(unreliable) server reconfiguration over long delay network paths 2518585484eSchristosor between machines whose clocks are unsynchronized. 2528585484eSchristosActually the 2538585484eSchristosserver does not now require timestamps in authenticated requests, 2548585484eSchristosso this command may be obsolete. 2558585484eSchristos.It Ic host Ar hostname 2568585484eSchristosSet the host to which future queries will be sent. 2578585484eSchristosHostname may 2588585484eSchristosbe either a host name or a numeric address. 2598585484eSchristos.It Ic hostnames Op Cm yes | Cm no 2608585484eSchristosIf 2618585484eSchristos.Cm yes 2628585484eSchristosis specified, host names are printed in 2638585484eSchristosinformation displays. 2648585484eSchristosIf 2658585484eSchristos.Cm no 2668585484eSchristosis specified, numeric 2678585484eSchristosaddresses are printed instead. 2688585484eSchristosThe default is 2698585484eSchristos.Cm yes , 2708585484eSchristosunless 2718585484eSchristosmodified using the command line 2728585484eSchristos.Fl n 2738585484eSchristosswitch. 2748585484eSchristos.It Ic keyid Ar keyid 2758585484eSchristosThis command allows the specification of a key number to be 2768585484eSchristosused to authenticate configuration requests. 2778585484eSchristosThis must correspond 2788585484eSchristosto a key number the server has been configured to use for this 2798585484eSchristospurpose. 2808585484eSchristos.It Ic quit 2818585484eSchristosExit 2828585484eSchristos.Nm . 2838585484eSchristos.It Ic passwd 2848585484eSchristosThis command prompts you to type in a password (which will not 2858585484eSchristosbe echoed) which will be used to authenticate configuration 2868585484eSchristosrequests. 2878585484eSchristosThe password must correspond to the key configured for 2888585484eSchristosuse by the NTP server for this purpose if such requests are to be 2898585484eSchristossuccessful. 2908585484eSchristos.It Ic timeout Ar milliseconds 2918585484eSchristosSpecify a timeout period for responses to server queries. 2928585484eSchristosThe 2938585484eSchristosdefault is about 8000 milliseconds. 2948585484eSchristosNote that since 2958585484eSchristos.Nm 2968585484eSchristosretries each query once after a timeout, the total waiting time for 2978585484eSchristosa timeout will be twice the timeout value set. 2988585484eSchristos.El 2998585484eSchristos.Ss "Control Message Commands" 3008585484eSchristosQuery commands result in NTP mode 7 packets containing requests for 3018585484eSchristosinformation being sent to the server. 3028585484eSchristosThese are read\-only commands 3038585484eSchristosin that they make no modification of the server configuration 3048585484eSchristosstate. 3058585484eSchristos.Bl -tag -width indent 3068585484eSchristos.It Ic listpeers 3078585484eSchristosObtains and prints a brief list of the peers for which the 3088585484eSchristosserver is maintaining state. 3098585484eSchristosThese should include all configured 3108585484eSchristospeer associations as well as those peers whose stratum is such that 3118585484eSchristosthey are considered by the server to be possible future 3128585484eSchristossynchronization candidates. 3138585484eSchristos.It Ic peers 3148585484eSchristosObtains a list of peers for which the server is maintaining 3158585484eSchristosstate, along with a summary of that state. 3168585484eSchristosSummary information 3178585484eSchristosincludes the address of the remote peer, the local interface 3188585484eSchristosaddress (0.0.0.0 if a local address has yet to be determined), the 3198585484eSchristosstratum of the remote peer (a stratum of 16 indicates the remote 3208585484eSchristospeer is unsynchronized), the polling interval, in seconds, the 3218585484eSchristosreachability register, in octal, and the current estimated delay, 3228585484eSchristosoffset and dispersion of the peer, all in seconds. 3238585484eSchristos.Pp 3248585484eSchristosThe character in the left margin indicates the mode this peer 3258585484eSchristosentry is operating in. 3268585484eSchristosA 3278585484eSchristos.Ql \&+ 3288585484eSchristosdenotes symmetric active, a 3298585484eSchristos.Ql \&\- 3308585484eSchristosindicates symmetric passive, a 3318585484eSchristos.Ql \&= 3328585484eSchristosmeans the 3338585484eSchristosremote server is being polled in client mode, a 3348585484eSchristos.Ql \&^ 3358585484eSchristosindicates that the server is broadcasting to this address, a 3368585484eSchristos.Ql \&~ 3378585484eSchristosdenotes that the remote peer is sending broadcasts and a 3388585484eSchristos.Ql \&~ 3398585484eSchristosdenotes that the remote peer is sending broadcasts and a 3408585484eSchristos.Ql \&* 3418585484eSchristosmarks the peer the server is currently synchronizing 3428585484eSchristosto. 3438585484eSchristos.Pp 3448585484eSchristosThe contents of the host field may be one of four forms. 3458585484eSchristosIt may 3468585484eSchristosbe a host name, an IP address, a reference clock implementation 3478585484eSchristosname with its parameter or 3488585484eSchristos.Fn REFCLK "implementation_number" "parameter" . 3498585484eSchristosOn 3508585484eSchristos.Ic hostnames 3518585484eSchristos.Cm no 3528585484eSchristosonly IP\-addresses 3538585484eSchristoswill be displayed. 3548585484eSchristos.It Ic dmpeers 3558585484eSchristosA slightly different peer summary list. 3568585484eSchristosIdentical to the output 3578585484eSchristosof the 3588585484eSchristos.Ic peers 3598585484eSchristoscommand, except for the character in the 3608585484eSchristosleftmost column. 3618585484eSchristosCharacters only appear beside peers which were 3628585484eSchristosincluded in the final stage of the clock selection algorithm. 3638585484eSchristosA 3648585484eSchristos.Ql \&. 3658585484eSchristosindicates that this peer was cast off in the falseticker 3668585484eSchristosdetection, while a 3678585484eSchristos.Ql \&+ 3688585484eSchristosindicates that the peer made it 3698585484eSchristosthrough. 3708585484eSchristosA 3718585484eSchristos.Ql \&* 3728585484eSchristosdenotes the peer the server is currently 3738585484eSchristossynchronizing with. 3748585484eSchristos.It Ic showpeer Ar peer_address Oo Ar ... Oc 3758585484eSchristosShows a detailed display of the current peer variables for one 3768585484eSchristosor more peers. 3778585484eSchristosMost of these values are described in the NTP 3788585484eSchristosVersion 2 specification. 3798585484eSchristos.It Ic pstats Ar peer_address Oo Ar ... Oc 3808585484eSchristosShow per\-peer statistic counters associated with the specified 3818585484eSchristospeer(s). 382b8ecfcfeSchristos.It Ic clockstat Ar clock_peer_address Oo Ar ... Oc 3838585484eSchristosObtain and print information concerning a peer clock. 3848585484eSchristosThe 3858585484eSchristosvalues obtained provide information on the setting of fudge factors 3868585484eSchristosand other clock performance information. 3878585484eSchristos.It Ic kerninfo 3888585484eSchristosObtain and print kernel phase\-lock loop operating parameters. 3898585484eSchristosThis information is available only if the kernel has been specially 3908585484eSchristosmodified for a precision timekeeping function. 3918585484eSchristos.It Ic loopinfo Op Cm oneline | Cm multiline 3928585484eSchristosPrint the values of selected loop filter variables. 3938585484eSchristosThe loop 3948585484eSchristosfilter is the part of NTP which deals with adjusting the local 3958585484eSchristossystem clock. 3968585484eSchristosThe 3978585484eSchristos.Sq offset 3988585484eSchristosis the last offset given to the 3998585484eSchristosloop filter by the packet processing code. 4008585484eSchristosThe 4018585484eSchristos.Sq frequency 4028585484eSchristosis the frequency error of the local clock in parts\-per\-million 4038585484eSchristos(ppm). 4048585484eSchristosThe 4058585484eSchristos.Sq time_const 4068585484eSchristoscontrols the stiffness of the 4078585484eSchristosphase\-lock loop and thus the speed at which it can adapt to 4088585484eSchristososcillator drift. 4098585484eSchristosThe 4108585484eSchristos.Sq watchdog timer 4118585484eSchristosvalue is the number 4128585484eSchristosof seconds which have elapsed since the last sample offset was 4138585484eSchristosgiven to the loop filter. 4148585484eSchristosThe 4158585484eSchristos.Cm oneline 4168585484eSchristosand 4178585484eSchristos.Cm multiline 4188585484eSchristosoptions specify the format in which this 4198585484eSchristosinformation is to be printed, with 4208585484eSchristos.Cm multiline 4218585484eSchristosas the 4228585484eSchristosdefault. 4238585484eSchristos.It Ic sysinfo 4248585484eSchristosPrint a variety of system state variables, i.e., state related 4258585484eSchristosto the local server. 4268585484eSchristosAll except the last four lines are described 4278585484eSchristosin the NTP Version 3 specification, RFC\-1305. 4288585484eSchristos.Pp 4298585484eSchristosThe 4308585484eSchristos.Sq system flags 4318585484eSchristosshow various system flags, some of 4328585484eSchristoswhich can be set and cleared by the 4338585484eSchristos.Ic enable 4348585484eSchristosand 4358585484eSchristos.Ic disable 4368585484eSchristosconfiguration commands, respectively. 4378585484eSchristosThese are 4388585484eSchristosthe 4398585484eSchristos.Cm auth , 4408585484eSchristos.Cm bclient , 4418585484eSchristos.Cm monitor , 4428585484eSchristos.Cm pll , 4438585484eSchristos.Cm pps 4448585484eSchristosand 4458585484eSchristos.Cm stats 4468585484eSchristosflags. 4478585484eSchristosSee the 4488585484eSchristos.Xr ntpd 1ntpdmdoc 4498585484eSchristosdocumentation for the meaning of these flags. 4508585484eSchristosThere 4518585484eSchristosare two additional flags which are read only, the 4528585484eSchristos.Cm kernel_pll 4538585484eSchristosand 4548585484eSchristos.Cm kernel_pps . 4558585484eSchristosThese flags indicate 4568585484eSchristosthe synchronization status when the precision time kernel 4578585484eSchristosmodifications are in use. 4588585484eSchristosThe 4598585484eSchristos.Sq kernel_pll 4608585484eSchristosindicates that 4618585484eSchristosthe local clock is being disciplined by the kernel, while the 4628585484eSchristos.Sq kernel_pps 4638585484eSchristosindicates the kernel discipline is provided by the PPS 4648585484eSchristossignal. 4658585484eSchristos.Pp 4668585484eSchristosThe 4678585484eSchristos.Sq stability 4688585484eSchristosis the residual frequency error remaining 4698585484eSchristosafter the system frequency correction is applied and is intended for 4708585484eSchristosmaintenance and debugging. 4718585484eSchristosIn most architectures, this value will 4728585484eSchristosinitially decrease from as high as 500 ppm to a nominal value in 4738585484eSchristosthe range .01 to 0.1 ppm. 4748585484eSchristosIf it remains high for some time after 4758585484eSchristosstarting the daemon, something may be wrong with the local clock, 4768585484eSchristosor the value of the kernel variable 4778585484eSchristos.Va kern.clockrate.tick 4788585484eSchristosmay be 4798585484eSchristosincorrect. 4808585484eSchristos.Pp 4818585484eSchristosThe 4828585484eSchristos.Sq broadcastdelay 4838585484eSchristosshows the default broadcast delay, 4848585484eSchristosas set by the 4858585484eSchristos.Ic broadcastdelay 4868585484eSchristosconfiguration command. 4878585484eSchristos.Pp 4888585484eSchristosThe 4898585484eSchristos.Sq authdelay 4908585484eSchristosshows the default authentication delay, 4918585484eSchristosas set by the 4928585484eSchristos.Ic authdelay 4938585484eSchristosconfiguration command. 4948585484eSchristos.It Ic sysstats 4958585484eSchristosPrint statistics counters maintained in the protocol 4968585484eSchristosmodule. 4978585484eSchristos.It Ic memstats 4988585484eSchristosPrint statistics counters related to memory allocation 4998585484eSchristoscode. 5008585484eSchristos.It Ic iostats 5018585484eSchristosPrint statistics counters maintained in the input\-output 5028585484eSchristosmodule. 5038585484eSchristos.It Ic timerstats 5048585484eSchristosPrint statistics counters maintained in the timer/event queue 5058585484eSchristossupport code. 5068585484eSchristos.It Ic reslist 5078585484eSchristosObtain and print the server's restriction list. 5088585484eSchristosThis list is 5098585484eSchristos(usually) printed in sorted order and may help to understand how 5108585484eSchristosthe restrictions are applied. 5118585484eSchristos.It Ic monlist Op Ar version 5128585484eSchristosObtain and print traffic counts collected and maintained by the 5138585484eSchristosmonitor facility. 5148585484eSchristosThe version number should not normally need to be 5158585484eSchristosspecified. 5168585484eSchristos.It Ic clkbug Ar clock_peer_address Oo Ar ... Oc 5178585484eSchristosObtain debugging information for a reference clock driver. 5188585484eSchristosThis 5198585484eSchristosinformation is provided only by some clock drivers and is mostly 5208585484eSchristosundecodable without a copy of the driver source in hand. 5218585484eSchristos.El 5228585484eSchristos.Ss "Runtime Configuration Requests" 5238585484eSchristosAll requests which cause state changes in the server are 5248585484eSchristosauthenticated by the server using a configured NTP key (the 5258585484eSchristosfacility can also be disabled by the server by not configuring a 5268585484eSchristoskey). 5278585484eSchristosThe key number and the corresponding key must also be made 5288585484eSchristosknown to 5298585484eSchristos.Nm . 5308585484eSchristosThis can be done using the 5318585484eSchristos.Ic keyid 5328585484eSchristosand 5338585484eSchristos.Ic passwd 5348585484eSchristoscommands, the latter of which will prompt at the terminal for a 5358585484eSchristospassword to use as the encryption key. 5368585484eSchristosYou will also be prompted 5378585484eSchristosautomatically for both the key number and password the first time a 5388585484eSchristoscommand which would result in an authenticated request to the 5398585484eSchristosserver is given. 5408585484eSchristosAuthentication not only provides verification that 5418585484eSchristosthe requester has permission to make such changes, but also gives 5428585484eSchristosan extra degree of protection again transmission errors. 5438585484eSchristos.Pp 5448585484eSchristosAuthenticated requests always include a timestamp in the packet 5458585484eSchristosdata, which is included in the computation of the authentication 5468585484eSchristoscode. 5478585484eSchristosThis timestamp is compared by the server to its receive time 5488585484eSchristosstamp. 5498585484eSchristosIf they differ by more than a small amount the request is 5508585484eSchristosrejected. 5518585484eSchristosThis is done for two reasons. 5528585484eSchristosFirst, it makes simple 5538585484eSchristosreplay attacks on the server, by someone who might be able to 5548585484eSchristosoverhear traffic on your LAN, much more difficult. 5558585484eSchristosSecond, it makes 5568585484eSchristosit more difficult to request configuration changes to your server 5578585484eSchristosfrom topologically remote hosts. 5588585484eSchristosWhile the reconfiguration facility 5598585484eSchristoswill work well with a server on the local host, and may work 5608585484eSchristosadequately between time\-synchronized hosts on the same LAN, it will 5618585484eSchristoswork very poorly for more distant hosts. 5628585484eSchristosAs such, if reasonable 5638585484eSchristospasswords are chosen, care is taken in the distribution and 5648585484eSchristosprotection of keys and appropriate source address restrictions are 5658585484eSchristosapplied, the run time reconfiguration facility should provide an 5668585484eSchristosadequate level of security. 5678585484eSchristos.Pp 5688585484eSchristosThe following commands all make authenticated requests. 5698585484eSchristos.Bl -tag -width indent 5708585484eSchristos.It Xo Ic addpeer Ar peer_address 5718585484eSchristos.Op Ar keyid 5728585484eSchristos.Op Ar version 5738585484eSchristos.Op Cm prefer 5748585484eSchristos.Xc 5758585484eSchristosAdd a configured peer association at the given address and 5768585484eSchristosoperating in symmetric active mode. 5778585484eSchristosNote that an existing 5788585484eSchristosassociation with the same peer may be deleted when this command is 5798585484eSchristosexecuted, or may simply be converted to conform to the new 5808585484eSchristosconfiguration, as appropriate. 5818585484eSchristosIf the optional 5828585484eSchristos.Ar keyid 5838585484eSchristosis a 5848585484eSchristosnonzero integer, all outgoing packets to the remote server will 5858585484eSchristoshave an authentication field attached encrypted with this key. 5868585484eSchristosIf 5878585484eSchristosthe value is 0 (or not given) no authentication will be done. 5888585484eSchristosThe 5898585484eSchristos.Ar version 5908585484eSchristoscan be 1, 2 or 3 and defaults to 3. 5918585484eSchristosThe 5928585484eSchristos.Cm prefer 5938585484eSchristoskeyword indicates a preferred peer (and thus will 5948585484eSchristosbe used primarily for clock synchronisation if possible). 5958585484eSchristosThe 5968585484eSchristospreferred peer also determines the validity of the PPS signal \- if 5978585484eSchristosthe preferred peer is suitable for synchronisation so is the PPS 5988585484eSchristossignal. 5998585484eSchristos.It Xo Ic addserver Ar peer_address 6008585484eSchristos.Op Ar keyid 6018585484eSchristos.Op Ar version 6028585484eSchristos.Op Cm prefer 6038585484eSchristos.Xc 6048585484eSchristosIdentical to the addpeer command, except that the operating 6058585484eSchristosmode is client. 6068585484eSchristos.It Xo Ic broadcast Ar peer_address 6078585484eSchristos.Op Ar keyid 6088585484eSchristos.Op Ar version 6098585484eSchristos.Op Cm prefer 6108585484eSchristos.Xc 6118585484eSchristosIdentical to the addpeer command, except that the operating 6128585484eSchristosmode is broadcast. 6138585484eSchristosIn this case a valid key identifier and key are 6148585484eSchristosrequired. 6158585484eSchristosThe 6168585484eSchristos.Ar peer_address 6178585484eSchristosparameter can be the broadcast 6188585484eSchristosaddress of the local network or a multicast group address assigned 6198585484eSchristosto NTP. 6208585484eSchristosIf a multicast address, a multicast\-capable kernel is 6218585484eSchristosrequired. 6228585484eSchristos.It Ic unconfig Ar peer_address Oo Ar ... Oc 6238585484eSchristosThis command causes the configured bit to be removed from the 6248585484eSchristosspecified peer(s). 6258585484eSchristosIn many cases this will cause the peer 6268585484eSchristosassociation to be deleted. 6278585484eSchristosWhen appropriate, however, the 6288585484eSchristosassociation may persist in an unconfigured mode if the remote peer 6298585484eSchristosis willing to continue on in this fashion. 6308585484eSchristos.It Xo Ic fudge Ar peer_address 6318585484eSchristos.Op Cm time1 6328585484eSchristos.Op Cm time2 6338585484eSchristos.Op Ar stratum 6348585484eSchristos.Op Ar refid 6358585484eSchristos.Xc 6368585484eSchristosThis command provides a way to set certain data for a reference 6378585484eSchristosclock. 6388585484eSchristosSee the source listing for further information. 6398585484eSchristos.It Xo Ic enable 6408585484eSchristos.Oo 6418585484eSchristos.Cm auth | Cm bclient | 6428585484eSchristos.Cm calibrate | Cm kernel | 6438585484eSchristos.Cm monitor | Cm ntp | 6448585484eSchristos.Cm pps | Cm stats 6458585484eSchristos.Oc 6468585484eSchristos.Xc 6478585484eSchristos.It Xo Ic disable 6488585484eSchristos.Oo 6498585484eSchristos.Cm auth | Cm bclient | 6508585484eSchristos.Cm calibrate | Cm kernel | 6518585484eSchristos.Cm monitor | Cm ntp | 6528585484eSchristos.Cm pps | Cm stats 6538585484eSchristos.Oc 6548585484eSchristos.Xc 6558585484eSchristosThese commands operate in the same way as the 6568585484eSchristos.Ic enable 6578585484eSchristosand 6588585484eSchristos.Ic disable 6598585484eSchristosconfiguration file commands of 6608585484eSchristos.Xr ntpd 1ntpdmdoc . 6618585484eSchristos.Bl -tag -width indent 6628585484eSchristos.It Cm auth 6638585484eSchristosEnables the server to synchronize with unconfigured peers only 6648585484eSchristosif the peer has been correctly authenticated using either public key 6658585484eSchristosor private key cryptography. 6668585484eSchristosThe default for this flag is enable. 6678585484eSchristos.It Cm bclient 6688585484eSchristosEnables the server to listen for a message from a broadcast or 6698585484eSchristosmulticast server, as in the multicastclient command with 6708585484eSchristosdefault address. 6718585484eSchristosThe default for this flag is disable. 6728585484eSchristos.It Cm calibrate 6738585484eSchristosEnables the calibrate feature for reference clocks. 6748585484eSchristosThe default for this flag is disable. 6758585484eSchristos.It Cm kernel 6768585484eSchristosEnables the kernel time discipline, if available. 6778585484eSchristosThe default for this flag is enable if support is available, otherwise disable. 6788585484eSchristos.It Cm monitor 6798585484eSchristosEnables the monitoring facility. 6808585484eSchristosSee the documentation here about the 6818585484eSchristos.Cm monlist 6828585484eSchristoscommand or further information. 6838585484eSchristosThe default for this flag is enable. 6848585484eSchristos.It Cm ntp 6858585484eSchristosEnables time and frequency discipline. 6868585484eSchristosIn effect, this switch opens and closes the feedback loop, 6878585484eSchristoswhich is useful for testing. 6888585484eSchristosThe default for this flag is enable. 6898585484eSchristos.It Cm pps 6908585484eSchristosEnables the pulse\-per\-second (PPS) signal when frequency 6918585484eSchristosand time is disciplined by the precision time kernel modifications. 6928585484eSchristosSee the 6938585484eSchristos.Qq A Kernel Model for Precision Timekeeping 6948585484eSchristos(available as part of the HTML documentation 6958585484eSchristosprovided in 6968585484eSchristos.Pa /usr/share/doc/ntp ) 6978585484eSchristospage for further information. 6988585484eSchristosThe default for this flag is disable. 6998585484eSchristos.It Cm stats 7008585484eSchristosEnables the statistics facility. 7018585484eSchristosSee the 7028585484eSchristos.Sx Monitoring Options 7038585484eSchristossection of 7048585484eSchristos.Xr ntp.conf 5 7058585484eSchristosfor further information. 7068585484eSchristosThe default for this flag is disable. 7078585484eSchristos.El 7088585484eSchristos.It Xo Ic restrict Ar address Ar mask 7098585484eSchristos.Ar flag Oo Ar ... Oc 7108585484eSchristos.Xc 7118585484eSchristosThis command operates in the same way as the 7128585484eSchristos.Ic restrict 7138585484eSchristosconfiguration file commands of 7148585484eSchristos.Xr ntpd 1ntpdmdoc . 7158585484eSchristos.It Xo Ic unrestrict Ar address Ar mask 7168585484eSchristos.Ar flag Oo Ar ... Oc 7178585484eSchristos.Xc 7188585484eSchristosUnrestrict the matching entry from the restrict list. 7198585484eSchristos.It Xo Ic delrestrict Ar address Ar mask 7208585484eSchristos.Op Cm ntpport 7218585484eSchristos.Xc 7228585484eSchristosDelete the matching entry from the restrict list. 7238585484eSchristos.It Ic readkeys 7248585484eSchristosCauses the current set of authentication keys to be purged and 7258585484eSchristosa new set to be obtained by rereading the keys file (which must 7268585484eSchristoshave been specified in the 7278585484eSchristos.Xr ntpd 1ntpdmdoc 7288585484eSchristosconfiguration file). 7298585484eSchristosThis 7308585484eSchristosallows encryption keys to be changed without restarting the 7318585484eSchristosserver. 7328585484eSchristos.It Ic trustedkey Ar keyid Oo Ar ... Oc 7338585484eSchristos.It Ic untrustedkey Ar keyid Oo Ar ... Oc 7348585484eSchristosThese commands operate in the same way as the 7358585484eSchristos.Ic trustedkey 7368585484eSchristosand 7378585484eSchristos.Ic untrustedkey 7388585484eSchristosconfiguration file 7398585484eSchristoscommands of 7408585484eSchristos.Xr ntpd 1ntpdmdoc . 7418585484eSchristos.It Ic authinfo 7428585484eSchristosReturns information concerning the authentication module, 7438585484eSchristosincluding known keys and counts of encryptions and decryptions 7448585484eSchristoswhich have been done. 7458585484eSchristos.It Ic traps 7468585484eSchristosDisplay the traps set in the server. 7478585484eSchristosSee the source listing for 7488585484eSchristosfurther information. 7498585484eSchristos.It Xo Ic addtrap Ar address 7508585484eSchristos.Op Ar port 7518585484eSchristos.Op Ar interface 7528585484eSchristos.Xc 7538585484eSchristosSet a trap for asynchronous messages. 7548585484eSchristosSee the source listing 7558585484eSchristosfor further information. 7568585484eSchristos.It Xo Ic clrtrap Ar address 7578585484eSchristos.Op Ar port 7588585484eSchristos.Op Ar interface 7598585484eSchristos.Xc 7608585484eSchristosClear a trap for asynchronous messages. 7618585484eSchristosSee the source listing 7628585484eSchristosfor further information. 7638585484eSchristos.It Ic reset 7648585484eSchristosClear the statistics counters in various modules of the server. 7658585484eSchristosSee the source listing for further information. 7668585484eSchristos.El 7678585484eSchristos.Sh "ENVIRONMENT" 7688585484eSchristosSee \fBOPTION PRESETS\fP for configuration environment variables. 7698585484eSchristos.Sh "FILES" 7708585484eSchristosSee \fBOPTION PRESETS\fP for configuration files. 7718585484eSchristos.Sh "EXIT STATUS" 7728585484eSchristosOne of the following exit values will be returned: 7738585484eSchristos.Bl -tag 7748585484eSchristos.It 0 " (EXIT_SUCCESS)" 7758585484eSchristosSuccessful program execution. 7768585484eSchristos.It 1 " (EXIT_FAILURE)" 7778585484eSchristosThe operation failed or the command syntax was not valid. 7788585484eSchristos.It 66 " (EX_NOINPUT)" 7798585484eSchristosA specified configuration file could not be loaded. 7808585484eSchristos.It 70 " (EX_SOFTWARE)" 7818585484eSchristoslibopts had an internal operational error. Please report 7828585484eSchristosit to autogen\-users@lists.sourceforge.net. Thank you. 7838585484eSchristos.El 7848585484eSchristos.Sh "SEE ALSO" 7858585484eSchristos.Xr ntp.conf 5 , 7868585484eSchristos.Xr ntpd 1ntpdmdoc 7878585484eSchristos.Rs 7888585484eSchristos.%A David L. Mills 7898585484eSchristos.%T Network Time Protocol (Version 3) 7908585484eSchristos.%O RFC1305 7918585484eSchristos.Re 7928585484eSchristos.Sh AUTHORS 7938585484eSchristosThe formatting directives in this document came from FreeBSD. 7948585484eSchristos.Sh "COPYRIGHT" 795*897be3a4SchristosCopyright (C) 1992\-2024 The University of Delaware and Network Time Foundation all rights reserved. 7968585484eSchristosThis program is released under the terms of the NTP license, <http://ntp.org/license>. 7978585484eSchristos.Sh BUGS 7988585484eSchristosThe 7998585484eSchristos.Nm 8008585484eSchristosutility is a crude hack. 8018585484eSchristosMuch of the information it shows is 8028585484eSchristosdeadly boring and could only be loved by its implementer. 8038585484eSchristosThe 8048585484eSchristosprogram was designed so that new (and temporary) features were easy 8058585484eSchristosto hack in, at great expense to the program's ease of use. 8068585484eSchristosDespite 8078585484eSchristosthis, the program is occasionally useful. 8088585484eSchristos.Pp 8098585484eSchristosPlease report bugs to http://bugs.ntp.org . 8108585484eSchristos.Pp 811*897be3a4SchristosPlease send bug reports to: https://bugs.ntp.org, bugs@ntp.org 8128585484eSchristos.Sh "NOTES" 8138585484eSchristosThis manual page was \fIAutoGen\fP\-erated from the \fBntpdc\fP 8148585484eSchristosoption definitions. 815