ntpdc.1ntpdcman revision 1.1.1.1.6.2.2.2 1 1.1 christos .de1 NOP
2 1.1 christos . it 1 an-trap
3 1.1 christos . if \\n[.$] \,\\$*\/
4 1.1 christos ..
5 1.1 christos .ie t \
6 1.1 christos .ds B-Font [CB]
7 1.1 christos .ds I-Font [CI]
8 1.1 christos .ds R-Font [CR]
9 1.1 christos .el \
10 1.1 christos .ds B-Font B
11 1.1 christos .ds I-Font I
12 1.1 christos .ds R-Font R
13 1.1.1.1.6.2.2.2 martin .TH ntpdc 1ntpdcman "26 Apr 2016" "4.2.8p7" "User Commands"
14 1.1 christos .\"
15 1.1.1.1.6.2.2.2 martin .\" EDIT THIS FILE WITH CAUTION (/tmp/.ag-bTaatH/ag-nTa4rH)
16 1.1 christos .\"
17 1.1.1.1.6.2.2.2 martin .\" It has been AutoGen-ed April 26, 2016 at 08:29:01 PM by AutoGen 5.18.5
18 1.1 christos .\" From the definitions ntpdc-opts.def
19 1.1 christos .\" and the template file agman-cmd.tpl
20 1.1 christos .SH NAME
21 1.1 christos \f\*[B-Font]ntpdc\fP
22 1.1 christos \- vendor-specific NTPD control program
23 1.1 christos .SH SYNOPSIS
24 1.1 christos \f\*[B-Font]ntpdc\fP
25 1.1 christos .\" Mixture of short (flag) options and long options
26 1.1 christos [\f\*[B-Font]\-flags\f[]]
27 1.1 christos [\f\*[B-Font]\-flag\f[] [\f\*[I-Font]value\f[]]]
28 1.1 christos [\f\*[B-Font]\-\-option-name\f[][[=| ]\f\*[I-Font]value\f[]]]
29 1.1 christos [ host ...]
30 1.1 christos .sp \n(Ppu
31 1.1 christos .ne 2
32 1.1 christos
33 1.1 christos .SH DESCRIPTION
34 1.1 christos \f\*[B-Font]ntpdc\fP
35 1.1.1.1.6.1 riz is deprecated.
36 1.1.1.1.6.1 riz Please use
37 1.1.1.1.6.2.2.1 riz \fCntpq\f[]\fR(1ntpqmdoc)\f[] instead \- it can do everything
38 1.1.1.1.6.1 riz \f\*[B-Font]ntpdc\fP
39 1.1.1.1.6.1 riz used to do, and it does so using a much more sane interface.
40 1.1.1.1.6.1 riz .sp \n(Ppu
41 1.1.1.1.6.1 riz .ne 2
42 1.1.1.1.6.1 riz
43 1.1.1.1.6.1 riz \f\*[B-Font]ntpdc\fP
44 1.1 christos is a utility program used to query
45 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[]
46 1.1 christos about its
47 1.1 christos current state and to request changes in that state.
48 1.1 christos It uses NTP mode 7 control message formats described in the source code.
49 1.1 christos The program may
50 1.1 christos be run either in interactive mode or controlled using command line
51 1.1 christos arguments.
52 1.1 christos Extensive state and statistics information is available
53 1.1 christos through the
54 1.1 christos \f\*[B-Font]ntpdc\fP
55 1.1 christos interface.
56 1.1 christos In addition, nearly all the
57 1.1 christos configuration options which can be specified at startup using
58 1.1 christos ntpd's configuration file may also be specified at run time using
59 1.1 christos \f\*[B-Font]ntpdc\fP.
60 1.1 christos .SH "OPTIONS"
61 1.1 christos .TP
62 1.1 christos .NOP \f\*[B-Font]\-4\f[], \f\*[B-Font]\-\-ipv4\f[]
63 1.1 christos Force IPv4 DNS name resolution.
64 1.1 christos This option must not appear in combination with any of the following options:
65 1.1 christos ipv6.
66 1.1 christos .sp
67 1.1 christos Force DNS resolution of following host names on the command line
68 1.1 christos to the IPv4 namespace.
69 1.1 christos .TP
70 1.1 christos .NOP \f\*[B-Font]\-6\f[], \f\*[B-Font]\-\-ipv6\f[]
71 1.1 christos Force IPv6 DNS name resolution.
72 1.1 christos This option must not appear in combination with any of the following options:
73 1.1 christos ipv4.
74 1.1 christos .sp
75 1.1 christos Force DNS resolution of following host names on the command line
76 1.1 christos to the IPv6 namespace.
77 1.1 christos .TP
78 1.1 christos .NOP \f\*[B-Font]\-c\f[] \f\*[I-Font]cmd\f[], \f\*[B-Font]\-\-command\f[]=\f\*[I-Font]cmd\f[]
79 1.1 christos run a command and exit.
80 1.1 christos This option may appear an unlimited number of times.
81 1.1 christos .sp
82 1.1 christos The following argument is interpreted as an interactive format command
83 1.1 christos and is added to the list of commands to be executed on the specified
84 1.1 christos host(s).
85 1.1 christos .TP
86 1.1 christos .NOP \f\*[B-Font]\-d\f[], \f\*[B-Font]\-\-debug\-level\f[]
87 1.1 christos Increase debug verbosity level.
88 1.1 christos This option may appear an unlimited number of times.
89 1.1 christos .sp
90 1.1 christos .TP
91 1.1 christos .NOP \f\*[B-Font]\-D\f[] \f\*[I-Font]number\f[], \f\*[B-Font]\-\-set\-debug\-level\f[]=\f\*[I-Font]number\f[]
92 1.1 christos Set the debug verbosity level.
93 1.1 christos This option may appear an unlimited number of times.
94 1.1 christos This option takes an integer number as its argument.
95 1.1 christos .sp
96 1.1 christos .TP
97 1.1 christos .NOP \f\*[B-Font]\-i\f[], \f\*[B-Font]\-\-interactive\f[]
98 1.1 christos Force ntpq to operate in interactive mode.
99 1.1 christos This option must not appear in combination with any of the following options:
100 1.1 christos command, listpeers, peers, showpeers.
101 1.1 christos .sp
102 1.1 christos Force ntpq to operate in interactive mode. Prompts will be written
103 1.1 christos to the standard output and commands read from the standard input.
104 1.1 christos .TP
105 1.1 christos .NOP \f\*[B-Font]\-l\f[], \f\*[B-Font]\-\-listpeers\f[]
106 1.1 christos Print a list of the peers.
107 1.1 christos This option must not appear in combination with any of the following options:
108 1.1 christos command.
109 1.1 christos .sp
110 1.1 christos Print a list of the peers known to the server as well as a summary of
111 1.1 christos their state. This is equivalent to the 'listpeers' interactive command.
112 1.1 christos .TP
113 1.1 christos .NOP \f\*[B-Font]\-n\f[], \f\*[B-Font]\-\-numeric\f[]
114 1.1 christos numeric host addresses.
115 1.1 christos .sp
116 1.1 christos Output all host addresses in dotted-quad numeric format rather than
117 1.1 christos converting to the canonical host names.
118 1.1 christos .TP
119 1.1 christos .NOP \f\*[B-Font]\-p\f[], \f\*[B-Font]\-\-peers\f[]
120 1.1 christos Print a list of the peers.
121 1.1 christos This option must not appear in combination with any of the following options:
122 1.1 christos command.
123 1.1 christos .sp
124 1.1 christos Print a list of the peers known to the server as well as a summary
125 1.1 christos of their state. This is equivalent to the 'peers' interactive command.
126 1.1 christos .TP
127 1.1 christos .NOP \f\*[B-Font]\-s\f[], \f\*[B-Font]\-\-showpeers\f[]
128 1.1 christos Show a list of the peers.
129 1.1 christos This option must not appear in combination with any of the following options:
130 1.1 christos command.
131 1.1 christos .sp
132 1.1 christos Print a list of the peers known to the server as well as a summary
133 1.1 christos of their state. This is equivalent to the 'dmpeers' interactive command.
134 1.1 christos .TP
135 1.1 christos .NOP \f\*[B-Font]\-\&?\f[], \f\*[B-Font]\-\-help\f[]
136 1.1 christos Display usage information and exit.
137 1.1 christos .TP
138 1.1 christos .NOP \f\*[B-Font]\-\&!\f[], \f\*[B-Font]\-\-more-help\f[]
139 1.1 christos Pass the extended usage information through a pager.
140 1.1 christos .TP
141 1.1 christos .NOP \f\*[B-Font]\->\f[] [\f\*[I-Font]cfgfile\f[]], \f\*[B-Font]\-\-save-opts\f[] [=\f\*[I-Font]cfgfile\f[]]
142 1.1 christos Save the option state to \fIcfgfile\fP. The default is the \fIlast\fP
143 1.1 christos configuration file listed in the \fBOPTION PRESETS\fP section, below.
144 1.1 christos The command will exit after updating the config file.
145 1.1 christos .TP
146 1.1 christos .NOP \f\*[B-Font]\-<\f[] \f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-load-opts\f[]=\f\*[I-Font]cfgfile\f[], \f\*[B-Font]\-\-no-load-opts\f[]
147 1.1 christos Load options from \fIcfgfile\fP.
148 1.1 christos The \fIno-load-opts\fP form will disable the loading
149 1.1 christos of earlier config/rc/ini files. \fI\-\-no-load-opts\fP is handled early,
150 1.1 christos out of order.
151 1.1 christos .TP
152 1.1 christos .NOP \f\*[B-Font]\-\-version\f[] [{\f\*[I-Font]v|c|n\f[]}]
153 1.1 christos Output version of program and exit. The default mode is `v', a simple
154 1.1 christos version. The `c' mode will print copyright information and `n' will
155 1.1 christos print the full copyright notice.
156 1.1 christos .PP
157 1.1 christos .SH "OPTION PRESETS"
158 1.1 christos Any option that is not marked as \fInot presettable\fP may be preset
159 1.1 christos by loading values from configuration ("RC" or ".INI") file(s) and values from
160 1.1 christos environment variables named:
161 1.1 christos .nf
162 1.1 christos \fBNTPDC_<option-name>\fP or \fBNTPDC\fP
163 1.1 christos .fi
164 1.1 christos .ad
165 1.1 christos The environmental presets take precedence (are processed later than)
166 1.1 christos the configuration files.
167 1.1 christos The \fIhomerc\fP files are "\fI$HOME\fP", and "\fI.\fP".
168 1.1 christos If any of these are directories, then the file \fI.ntprc\fP
169 1.1 christos is searched for within those directories.
170 1.1 christos .SH USAGE
171 1.1 christos If one or more request options are included on the command line
172 1.1 christos when
173 1.1 christos \f\*[B-Font]ntpdc\fP
174 1.1 christos is executed, each of the requests will be sent
175 1.1 christos to the NTP servers running on each of the hosts given as command
176 1.1 christos line arguments, or on localhost by default.
177 1.1 christos If no request options
178 1.1 christos are given,
179 1.1 christos \f\*[B-Font]ntpdc\fP
180 1.1 christos will attempt to read commands from the
181 1.1 christos standard input and execute these on the NTP server running on the
182 1.1 christos first host given on the command line, again defaulting to localhost
183 1.1 christos when no other host is specified.
184 1.1 christos The
185 1.1 christos \f\*[B-Font]ntpdc\fP
186 1.1 christos utility will prompt for
187 1.1 christos commands if the standard input is a terminal device.
188 1.1 christos .sp \n(Ppu
189 1.1 christos .ne 2
190 1.1 christos
191 1.1 christos The
192 1.1 christos \f\*[B-Font]ntpdc\fP
193 1.1 christos utility uses NTP mode 7 packets to communicate with the
194 1.1 christos NTP server, and hence can be used to query any compatible server on
195 1.1 christos the network which permits it.
196 1.1 christos Note that since NTP is a UDP protocol
197 1.1 christos this communication will be somewhat unreliable, especially over
198 1.1 christos large distances in terms of network topology.
199 1.1 christos The
200 1.1 christos \f\*[B-Font]ntpdc\fP
201 1.1 christos utility makes
202 1.1 christos no attempt to retransmit requests, and will time requests out if
203 1.1 christos the remote host is not heard from within a suitable timeout
204 1.1 christos time.
205 1.1 christos .sp \n(Ppu
206 1.1 christos .ne 2
207 1.1 christos
208 1.1 christos The operation of
209 1.1 christos \f\*[B-Font]ntpdc\fP
210 1.1 christos are specific to the particular
211 1.1 christos implementation of the
212 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[]
213 1.1 christos daemon and can be expected to
214 1.1 christos work only with this and maybe some previous versions of the daemon.
215 1.1 christos Requests from a remote
216 1.1 christos \f\*[B-Font]ntpdc\fP
217 1.1 christos utility which affect the
218 1.1 christos state of the local server must be authenticated, which requires
219 1.1 christos both the remote program and local server share a common key and key
220 1.1 christos identifier.
221 1.1 christos .sp \n(Ppu
222 1.1 christos .ne 2
223 1.1 christos
224 1.1 christos Note that in contexts where a host name is expected, a
225 1.1 christos \f\*[B-Font]\-4\f[]
226 1.1 christos qualifier preceding the host name forces DNS resolution to the IPv4 namespace,
227 1.1 christos while a
228 1.1 christos \f\*[B-Font]\-6\f[]
229 1.1 christos qualifier forces DNS resolution to the IPv6 namespace.
230 1.1 christos Specifying a command line option other than
231 1.1 christos \f\*[B-Font]\-i\f[]
232 1.1 christos or
233 1.1 christos \f\*[B-Font]\-n\f[]
234 1.1 christos will cause the specified query (queries) to be sent to
235 1.1 christos the indicated host(s) immediately.
236 1.1 christos Otherwise,
237 1.1 christos \f\*[B-Font]ntpdc\fP
238 1.1 christos will
239 1.1 christos attempt to read interactive format commands from the standard
240 1.1 christos input.
241 1.1 christos .SS "Interactive Commands"
242 1.1 christos Interactive format commands consist of a keyword followed by zero
243 1.1 christos to four arguments.
244 1.1 christos Only enough characters of the full keyword to
245 1.1 christos uniquely identify the command need be typed.
246 1.1 christos The output of a
247 1.1 christos command is normally sent to the standard output, but optionally the
248 1.1 christos output of individual commands may be sent to a file by appending a
249 1.1 christos \[oq]\&>\[cq],
250 1.1 christos followed by a file name, to the command line.
251 1.1 christos .sp \n(Ppu
252 1.1 christos .ne 2
253 1.1 christos
254 1.1 christos A number of interactive format commands are executed entirely
255 1.1 christos within the
256 1.1 christos \f\*[B-Font]ntpdc\fP
257 1.1 christos utility itself and do not result in NTP
258 1.1 christos mode 7 requests being sent to a server.
259 1.1 christos These are described
260 1.1 christos following.
261 1.1 christos .TP 7
262 1.1 christos .NOP \f\*[B-Font]\&?\f[] \f\*[I-Font]command_keyword\f[]
263 1.1 christos .TP 7
264 1.1 christos .NOP \f\*[B-Font]help\f[] \f\*[I-Font]command_keyword\f[]
265 1.1 christos A
266 1.1 christos \[oq]\f\*[B-Font]\&?\f[]\[cq]
267 1.1 christos will print a list of all the command
268 1.1 christos keywords known to this incarnation of
269 1.1 christos \f\*[B-Font]ntpdc\fP.
270 1.1 christos A
271 1.1 christos \[oq]\f\*[B-Font]\&?\f[]\[cq]
272 1.1 christos followed by a command keyword will print function and usage
273 1.1 christos information about the command.
274 1.1 christos This command is probably a better
275 1.1 christos source of information about
276 1.1.1.1.6.2.2.1 riz \fCntpq\f[]\fR(1ntpqmdoc)\f[]
277 1.1 christos than this manual
278 1.1 christos page.
279 1.1 christos .TP 7
280 1.1 christos .NOP \f\*[B-Font]delay\f[] \f\*[I-Font]milliseconds\f[]
281 1.1 christos Specify a time interval to be added to timestamps included in
282 1.1 christos requests which require authentication.
283 1.1 christos This is used to enable
284 1.1 christos (unreliable) server reconfiguration over long delay network paths
285 1.1 christos or between machines whose clocks are unsynchronized.
286 1.1 christos Actually the
287 1.1 christos server does not now require timestamps in authenticated requests,
288 1.1 christos so this command may be obsolete.
289 1.1 christos .TP 7
290 1.1 christos .NOP \f\*[B-Font]host\f[] \f\*[I-Font]hostname\f[]
291 1.1 christos Set the host to which future queries will be sent.
292 1.1 christos Hostname may
293 1.1 christos be either a host name or a numeric address.
294 1.1 christos .TP 7
295 1.1 christos .NOP \f\*[B-Font]hostnames\f[] [\f\*[B-Font]yes\f[] | \f\*[B-Font]no\f[]]
296 1.1 christos If
297 1.1 christos \f\*[B-Font]yes\f[]
298 1.1 christos is specified, host names are printed in
299 1.1 christos information displays.
300 1.1 christos If
301 1.1 christos \f\*[B-Font]no\f[]
302 1.1 christos is specified, numeric
303 1.1 christos addresses are printed instead.
304 1.1 christos The default is
305 1.1 christos \f\*[B-Font]yes\f[],
306 1.1 christos unless
307 1.1 christos modified using the command line
308 1.1 christos \f\*[B-Font]\-n\f[]
309 1.1 christos switch.
310 1.1 christos .TP 7
311 1.1 christos .NOP \f\*[B-Font]keyid\f[] \f\*[I-Font]keyid\f[]
312 1.1 christos This command allows the specification of a key number to be
313 1.1 christos used to authenticate configuration requests.
314 1.1 christos This must correspond
315 1.1 christos to a key number the server has been configured to use for this
316 1.1 christos purpose.
317 1.1 christos .TP 7
318 1.1 christos .NOP \f\*[B-Font]quit\f[]
319 1.1 christos Exit
320 1.1 christos \f\*[B-Font]ntpdc\fP.
321 1.1 christos .TP 7
322 1.1 christos .NOP \f\*[B-Font]passwd\f[]
323 1.1 christos This command prompts you to type in a password (which will not
324 1.1 christos be echoed) which will be used to authenticate configuration
325 1.1 christos requests.
326 1.1 christos The password must correspond to the key configured for
327 1.1 christos use by the NTP server for this purpose if such requests are to be
328 1.1 christos successful.
329 1.1 christos .TP 7
330 1.1 christos .NOP \f\*[B-Font]timeout\f[] \f\*[I-Font]milliseconds\f[]
331 1.1 christos Specify a timeout period for responses to server queries.
332 1.1 christos The
333 1.1 christos default is about 8000 milliseconds.
334 1.1 christos Note that since
335 1.1 christos \f\*[B-Font]ntpdc\fP
336 1.1 christos retries each query once after a timeout, the total waiting time for
337 1.1 christos a timeout will be twice the timeout value set.
338 1.1 christos .PP
339 1.1 christos .SS "Control Message Commands"
340 1.1 christos Query commands result in NTP mode 7 packets containing requests for
341 1.1 christos information being sent to the server.
342 1.1 christos These are read-only commands
343 1.1 christos in that they make no modification of the server configuration
344 1.1 christos state.
345 1.1 christos .TP 7
346 1.1 christos .NOP \f\*[B-Font]listpeers\f[]
347 1.1 christos Obtains and prints a brief list of the peers for which the
348 1.1 christos server is maintaining state.
349 1.1 christos These should include all configured
350 1.1 christos peer associations as well as those peers whose stratum is such that
351 1.1 christos they are considered by the server to be possible future
352 1.1 christos synchronization candidates.
353 1.1 christos .TP 7
354 1.1 christos .NOP \f\*[B-Font]peers\f[]
355 1.1 christos Obtains a list of peers for which the server is maintaining
356 1.1 christos state, along with a summary of that state.
357 1.1 christos Summary information
358 1.1 christos includes the address of the remote peer, the local interface
359 1.1 christos address (0.0.0.0 if a local address has yet to be determined), the
360 1.1 christos stratum of the remote peer (a stratum of 16 indicates the remote
361 1.1 christos peer is unsynchronized), the polling interval, in seconds, the
362 1.1 christos reachability register, in octal, and the current estimated delay,
363 1.1 christos offset and dispersion of the peer, all in seconds.
364 1.1 christos .sp \n(Ppu
365 1.1 christos .ne 2
366 1.1 christos
367 1.1 christos The character in the left margin indicates the mode this peer
368 1.1 christos entry is operating in.
369 1.1 christos A
370 1.1 christos \[oq]\&+\[cq]
371 1.1 christos denotes symmetric active, a
372 1.1 christos \[oq]\&-\[cq]
373 1.1 christos indicates symmetric passive, a
374 1.1 christos \[oq]\&=\[cq]
375 1.1 christos means the
376 1.1 christos remote server is being polled in client mode, a
377 1.1 christos \[oq]\&^\[cq]
378 1.1 christos indicates that the server is broadcasting to this address, a
379 1.1 christos \[oq]\&~\[cq]
380 1.1 christos denotes that the remote peer is sending broadcasts and a
381 1.1 christos \[oq]\&~\[cq]
382 1.1 christos denotes that the remote peer is sending broadcasts and a
383 1.1 christos \[oq]\&*\[cq]
384 1.1 christos marks the peer the server is currently synchronizing
385 1.1 christos to.
386 1.1 christos .sp \n(Ppu
387 1.1 christos .ne 2
388 1.1 christos
389 1.1 christos The contents of the host field may be one of four forms.
390 1.1 christos It may
391 1.1 christos be a host name, an IP address, a reference clock implementation
392 1.1 christos name with its parameter or
393 1.1.1.1.6.2.2.1 riz \fBREFCLK\f[]\fR()\f[]
394 1.1 christos On
395 1.1 christos \f\*[B-Font]hostnames\f[]
396 1.1 christos \f\*[B-Font]no\f[]
397 1.1 christos only IP-addresses
398 1.1 christos will be displayed.
399 1.1 christos .TP 7
400 1.1 christos .NOP \f\*[B-Font]dmpeers\f[]
401 1.1 christos A slightly different peer summary list.
402 1.1 christos Identical to the output
403 1.1 christos of the
404 1.1 christos \f\*[B-Font]peers\f[]
405 1.1 christos command, except for the character in the
406 1.1 christos leftmost column.
407 1.1 christos Characters only appear beside peers which were
408 1.1 christos included in the final stage of the clock selection algorithm.
409 1.1 christos A
410 1.1 christos \[oq]\&.\[cq]
411 1.1 christos indicates that this peer was cast off in the falseticker
412 1.1 christos detection, while a
413 1.1 christos \[oq]\&+\[cq]
414 1.1 christos indicates that the peer made it
415 1.1 christos through.
416 1.1 christos A
417 1.1 christos \[oq]\&*\[cq]
418 1.1 christos denotes the peer the server is currently
419 1.1 christos synchronizing with.
420 1.1 christos .TP 7
421 1.1 christos .NOP \f\*[B-Font]showpeer\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]...\f[]]
422 1.1 christos Shows a detailed display of the current peer variables for one
423 1.1 christos or more peers.
424 1.1 christos Most of these values are described in the NTP
425 1.1 christos Version 2 specification.
426 1.1 christos .TP 7
427 1.1 christos .NOP \f\*[B-Font]pstats\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]...\f[]]
428 1.1 christos Show per-peer statistic counters associated with the specified
429 1.1 christos peer(s).
430 1.1 christos .TP 7
431 1.1.1.1.6.1 riz .NOP \f\*[B-Font]clockstat\f[] \f\*[I-Font]clock_peer_address\f[] [\f\*[I-Font]...\f[]]
432 1.1 christos Obtain and print information concerning a peer clock.
433 1.1 christos The
434 1.1 christos values obtained provide information on the setting of fudge factors
435 1.1 christos and other clock performance information.
436 1.1 christos .TP 7
437 1.1 christos .NOP \f\*[B-Font]kerninfo\f[]
438 1.1 christos Obtain and print kernel phase-lock loop operating parameters.
439 1.1 christos This information is available only if the kernel has been specially
440 1.1 christos modified for a precision timekeeping function.
441 1.1 christos .TP 7
442 1.1 christos .NOP \f\*[B-Font]loopinfo\f[] [\f\*[B-Font]oneline\f[] | \f\*[B-Font]multiline\f[]]
443 1.1 christos Print the values of selected loop filter variables.
444 1.1 christos The loop
445 1.1 christos filter is the part of NTP which deals with adjusting the local
446 1.1 christos system clock.
447 1.1 christos The
448 1.1 christos \[oq]offset\[cq]
449 1.1 christos is the last offset given to the
450 1.1 christos loop filter by the packet processing code.
451 1.1 christos The
452 1.1 christos \[oq]frequency\[cq]
453 1.1 christos is the frequency error of the local clock in parts-per-million
454 1.1 christos (ppm).
455 1.1 christos The
456 1.1 christos \[oq]time_const\[cq]
457 1.1 christos controls the stiffness of the
458 1.1 christos phase-lock loop and thus the speed at which it can adapt to
459 1.1 christos oscillator drift.
460 1.1 christos The
461 1.1 christos \[oq]watchdog timer\[cq]
462 1.1 christos value is the number
463 1.1 christos of seconds which have elapsed since the last sample offset was
464 1.1 christos given to the loop filter.
465 1.1 christos The
466 1.1 christos \f\*[B-Font]oneline\f[]
467 1.1 christos and
468 1.1 christos \f\*[B-Font]multiline\f[]
469 1.1 christos options specify the format in which this
470 1.1 christos information is to be printed, with
471 1.1 christos \f\*[B-Font]multiline\f[]
472 1.1 christos as the
473 1.1 christos default.
474 1.1 christos .TP 7
475 1.1 christos .NOP \f\*[B-Font]sysinfo\f[]
476 1.1 christos Print a variety of system state variables, i.e., state related
477 1.1 christos to the local server.
478 1.1 christos All except the last four lines are described
479 1.1 christos in the NTP Version 3 specification, RFC-1305.
480 1.1 christos .sp \n(Ppu
481 1.1 christos .ne 2
482 1.1 christos
483 1.1 christos The
484 1.1 christos \[oq]system flags\[cq]
485 1.1 christos show various system flags, some of
486 1.1 christos which can be set and cleared by the
487 1.1 christos \f\*[B-Font]enable\f[]
488 1.1 christos and
489 1.1 christos \f\*[B-Font]disable\f[]
490 1.1 christos configuration commands, respectively.
491 1.1 christos These are
492 1.1 christos the
493 1.1 christos \f\*[B-Font]auth\f[],
494 1.1 christos \f\*[B-Font]bclient\f[],
495 1.1 christos \f\*[B-Font]monitor\f[],
496 1.1 christos \f\*[B-Font]pll\f[],
497 1.1 christos \f\*[B-Font]pps\f[]
498 1.1 christos and
499 1.1 christos \f\*[B-Font]stats\f[]
500 1.1 christos flags.
501 1.1 christos See the
502 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[]
503 1.1 christos documentation for the meaning of these flags.
504 1.1 christos There
505 1.1 christos are two additional flags which are read only, the
506 1.1 christos \f\*[B-Font]kernel_pll\f[]
507 1.1 christos and
508 1.1 christos \f\*[B-Font]kernel_pps\f[].
509 1.1 christos These flags indicate
510 1.1 christos the synchronization status when the precision time kernel
511 1.1 christos modifications are in use.
512 1.1 christos The
513 1.1 christos \[oq]kernel_pll\[cq]
514 1.1 christos indicates that
515 1.1 christos the local clock is being disciplined by the kernel, while the
516 1.1 christos \[oq]kernel_pps\[cq]
517 1.1 christos indicates the kernel discipline is provided by the PPS
518 1.1 christos signal.
519 1.1 christos .sp \n(Ppu
520 1.1 christos .ne 2
521 1.1 christos
522 1.1 christos The
523 1.1 christos \[oq]stability\[cq]
524 1.1 christos is the residual frequency error remaining
525 1.1 christos after the system frequency correction is applied and is intended for
526 1.1 christos maintenance and debugging.
527 1.1 christos In most architectures, this value will
528 1.1 christos initially decrease from as high as 500 ppm to a nominal value in
529 1.1 christos the range .01 to 0.1 ppm.
530 1.1 christos If it remains high for some time after
531 1.1 christos starting the daemon, something may be wrong with the local clock,
532 1.1 christos or the value of the kernel variable
533 1.1 christos \fIkern.clockrate.tick\f[]
534 1.1 christos may be
535 1.1 christos incorrect.
536 1.1 christos .sp \n(Ppu
537 1.1 christos .ne 2
538 1.1 christos
539 1.1 christos The
540 1.1 christos \[oq]broadcastdelay\[cq]
541 1.1 christos shows the default broadcast delay,
542 1.1 christos as set by the
543 1.1 christos \f\*[B-Font]broadcastdelay\f[]
544 1.1 christos configuration command.
545 1.1 christos .sp \n(Ppu
546 1.1 christos .ne 2
547 1.1 christos
548 1.1 christos The
549 1.1 christos \[oq]authdelay\[cq]
550 1.1 christos shows the default authentication delay,
551 1.1 christos as set by the
552 1.1 christos \f\*[B-Font]authdelay\f[]
553 1.1 christos configuration command.
554 1.1 christos .TP 7
555 1.1 christos .NOP \f\*[B-Font]sysstats\f[]
556 1.1 christos Print statistics counters maintained in the protocol
557 1.1 christos module.
558 1.1 christos .TP 7
559 1.1 christos .NOP \f\*[B-Font]memstats\f[]
560 1.1 christos Print statistics counters related to memory allocation
561 1.1 christos code.
562 1.1 christos .TP 7
563 1.1 christos .NOP \f\*[B-Font]iostats\f[]
564 1.1 christos Print statistics counters maintained in the input-output
565 1.1 christos module.
566 1.1 christos .TP 7
567 1.1 christos .NOP \f\*[B-Font]timerstats\f[]
568 1.1 christos Print statistics counters maintained in the timer/event queue
569 1.1 christos support code.
570 1.1 christos .TP 7
571 1.1 christos .NOP \f\*[B-Font]reslist\f[]
572 1.1 christos Obtain and print the server's restriction list.
573 1.1 christos This list is
574 1.1 christos (usually) printed in sorted order and may help to understand how
575 1.1 christos the restrictions are applied.
576 1.1 christos .TP 7
577 1.1 christos .NOP \f\*[B-Font]monlist\f[] [\f\*[I-Font]version\f[]]
578 1.1 christos Obtain and print traffic counts collected and maintained by the
579 1.1 christos monitor facility.
580 1.1 christos The version number should not normally need to be
581 1.1 christos specified.
582 1.1 christos .TP 7
583 1.1 christos .NOP \f\*[B-Font]clkbug\f[] \f\*[I-Font]clock_peer_address\f[] [\f\*[I-Font]...\f[]]
584 1.1 christos Obtain debugging information for a reference clock driver.
585 1.1 christos This
586 1.1 christos information is provided only by some clock drivers and is mostly
587 1.1 christos undecodable without a copy of the driver source in hand.
588 1.1 christos .PP
589 1.1 christos .SS "Runtime Configuration Requests"
590 1.1 christos All requests which cause state changes in the server are
591 1.1 christos authenticated by the server using a configured NTP key (the
592 1.1 christos facility can also be disabled by the server by not configuring a
593 1.1 christos key).
594 1.1 christos The key number and the corresponding key must also be made
595 1.1 christos known to
596 1.1 christos \f\*[B-Font]ntpdc\fP.
597 1.1 christos This can be done using the
598 1.1 christos \f\*[B-Font]keyid\f[]
599 1.1 christos and
600 1.1 christos \f\*[B-Font]passwd\f[]
601 1.1 christos commands, the latter of which will prompt at the terminal for a
602 1.1 christos password to use as the encryption key.
603 1.1 christos You will also be prompted
604 1.1 christos automatically for both the key number and password the first time a
605 1.1 christos command which would result in an authenticated request to the
606 1.1 christos server is given.
607 1.1 christos Authentication not only provides verification that
608 1.1 christos the requester has permission to make such changes, but also gives
609 1.1 christos an extra degree of protection again transmission errors.
610 1.1 christos .sp \n(Ppu
611 1.1 christos .ne 2
612 1.1 christos
613 1.1 christos Authenticated requests always include a timestamp in the packet
614 1.1 christos data, which is included in the computation of the authentication
615 1.1 christos code.
616 1.1 christos This timestamp is compared by the server to its receive time
617 1.1 christos stamp.
618 1.1 christos If they differ by more than a small amount the request is
619 1.1 christos rejected.
620 1.1 christos This is done for two reasons.
621 1.1 christos First, it makes simple
622 1.1 christos replay attacks on the server, by someone who might be able to
623 1.1 christos overhear traffic on your LAN, much more difficult.
624 1.1 christos Second, it makes
625 1.1 christos it more difficult to request configuration changes to your server
626 1.1 christos from topologically remote hosts.
627 1.1 christos While the reconfiguration facility
628 1.1 christos will work well with a server on the local host, and may work
629 1.1 christos adequately between time-synchronized hosts on the same LAN, it will
630 1.1 christos work very poorly for more distant hosts.
631 1.1 christos As such, if reasonable
632 1.1 christos passwords are chosen, care is taken in the distribution and
633 1.1 christos protection of keys and appropriate source address restrictions are
634 1.1 christos applied, the run time reconfiguration facility should provide an
635 1.1 christos adequate level of security.
636 1.1 christos .sp \n(Ppu
637 1.1 christos .ne 2
638 1.1 christos
639 1.1 christos The following commands all make authenticated requests.
640 1.1 christos .TP 7
641 1.1 christos .NOP \f\*[B-Font]addpeer\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]keyid\f[]] [\f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]]
642 1.1 christos Add a configured peer association at the given address and
643 1.1 christos operating in symmetric active mode.
644 1.1 christos Note that an existing
645 1.1 christos association with the same peer may be deleted when this command is
646 1.1 christos executed, or may simply be converted to conform to the new
647 1.1 christos configuration, as appropriate.
648 1.1 christos If the optional
649 1.1 christos \f\*[I-Font]keyid\f[]
650 1.1 christos is a
651 1.1 christos nonzero integer, all outgoing packets to the remote server will
652 1.1 christos have an authentication field attached encrypted with this key.
653 1.1 christos If
654 1.1 christos the value is 0 (or not given) no authentication will be done.
655 1.1 christos The
656 1.1 christos \f\*[I-Font]version\f[]
657 1.1 christos can be 1, 2 or 3 and defaults to 3.
658 1.1 christos The
659 1.1 christos \f\*[B-Font]prefer\f[]
660 1.1 christos keyword indicates a preferred peer (and thus will
661 1.1 christos be used primarily for clock synchronisation if possible).
662 1.1 christos The
663 1.1 christos preferred peer also determines the validity of the PPS signal \- if
664 1.1 christos the preferred peer is suitable for synchronisation so is the PPS
665 1.1 christos signal.
666 1.1 christos .TP 7
667 1.1 christos .NOP \f\*[B-Font]addserver\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]keyid\f[]] [\f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]]
668 1.1 christos Identical to the addpeer command, except that the operating
669 1.1 christos mode is client.
670 1.1 christos .TP 7
671 1.1 christos .NOP \f\*[B-Font]broadcast\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]keyid\f[]] [\f\*[I-Font]version\f[]] [\f\*[B-Font]prefer\f[]]
672 1.1 christos Identical to the addpeer command, except that the operating
673 1.1 christos mode is broadcast.
674 1.1 christos In this case a valid key identifier and key are
675 1.1 christos required.
676 1.1 christos The
677 1.1 christos \f\*[I-Font]peer_address\f[]
678 1.1 christos parameter can be the broadcast
679 1.1 christos address of the local network or a multicast group address assigned
680 1.1 christos to NTP.
681 1.1 christos If a multicast address, a multicast-capable kernel is
682 1.1 christos required.
683 1.1 christos .TP 7
684 1.1 christos .NOP \f\*[B-Font]unconfig\f[] \f\*[I-Font]peer_address\f[] [\f\*[I-Font]...\f[]]
685 1.1 christos This command causes the configured bit to be removed from the
686 1.1 christos specified peer(s).
687 1.1 christos In many cases this will cause the peer
688 1.1 christos association to be deleted.
689 1.1 christos When appropriate, however, the
690 1.1 christos association may persist in an unconfigured mode if the remote peer
691 1.1 christos is willing to continue on in this fashion.
692 1.1 christos .TP 7
693 1.1 christos .NOP \f\*[B-Font]fudge\f[] \f\*[I-Font]peer_address\f[] [\f\*[B-Font]time1\f[]] [\f\*[B-Font]time2\f[]] [\f\*[I-Font]stratum\f[]] [\f\*[I-Font]refid\f[]]
694 1.1 christos This command provides a way to set certain data for a reference
695 1.1 christos clock.
696 1.1 christos See the source listing for further information.
697 1.1 christos .TP 7
698 1.1 christos .NOP \f\*[B-Font]enable\f[] [\f\*[B-Font]auth\f[] | \f\*[B-Font]bclient\f[] | \f\*[B-Font]calibrate\f[] | \f\*[B-Font]kernel\f[] | \f\*[B-Font]monitor\f[] | \f\*[B-Font]ntp\f[] | \f\*[B-Font]pps\f[] | \f\*[B-Font]stats\f[]]
699 1.1 christos .TP 7
700 1.1 christos .NOP \f\*[B-Font]disable\f[] [\f\*[B-Font]auth\f[] | \f\*[B-Font]bclient\f[] | \f\*[B-Font]calibrate\f[] | \f\*[B-Font]kernel\f[] | \f\*[B-Font]monitor\f[] | \f\*[B-Font]ntp\f[] | \f\*[B-Font]pps\f[] | \f\*[B-Font]stats\f[]]
701 1.1 christos These commands operate in the same way as the
702 1.1 christos \f\*[B-Font]enable\f[]
703 1.1 christos and
704 1.1 christos \f\*[B-Font]disable\f[]
705 1.1 christos configuration file commands of
706 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[].
707 1.1 christos .RS
708 1.1 christos .TP 7
709 1.1 christos .NOP \f\*[B-Font]auth\f[]
710 1.1 christos Enables the server to synchronize with unconfigured peers only
711 1.1 christos if the peer has been correctly authenticated using either public key
712 1.1 christos or private key cryptography.
713 1.1 christos The default for this flag is enable.
714 1.1 christos .TP 7
715 1.1 christos .NOP \f\*[B-Font]bclient\f[]
716 1.1 christos Enables the server to listen for a message from a broadcast or
717 1.1 christos multicast server, as in the multicastclient command with
718 1.1 christos default address.
719 1.1 christos The default for this flag is disable.
720 1.1 christos .TP 7
721 1.1 christos .NOP \f\*[B-Font]calibrate\f[]
722 1.1 christos Enables the calibrate feature for reference clocks.
723 1.1 christos The default for this flag is disable.
724 1.1 christos .TP 7
725 1.1 christos .NOP \f\*[B-Font]kernel\f[]
726 1.1 christos Enables the kernel time discipline, if available.
727 1.1 christos The default for this flag is enable if support is available, otherwise disable.
728 1.1 christos .TP 7
729 1.1 christos .NOP \f\*[B-Font]monitor\f[]
730 1.1 christos Enables the monitoring facility.
731 1.1 christos See the documentation here about the
732 1.1 christos \f\*[B-Font]monlist\f[]
733 1.1 christos command or further information.
734 1.1 christos The default for this flag is enable.
735 1.1 christos .TP 7
736 1.1 christos .NOP \f\*[B-Font]ntp\f[]
737 1.1 christos Enables time and frequency discipline.
738 1.1 christos In effect, this switch opens and closes the feedback loop,
739 1.1 christos which is useful for testing.
740 1.1 christos The default for this flag is enable.
741 1.1 christos .TP 7
742 1.1 christos .NOP \f\*[B-Font]pps\f[]
743 1.1 christos Enables the pulse-per-second (PPS) signal when frequency
744 1.1 christos and time is disciplined by the precision time kernel modifications.
745 1.1 christos See the
746 1.1 christos "A Kernel Model for Precision Timekeeping"
747 1.1 christos (available as part of the HTML documentation
748 1.1 christos provided in
749 1.1 christos \fI/usr/share/doc/ntp\f[])
750 1.1 christos page for further information.
751 1.1 christos The default for this flag is disable.
752 1.1 christos .TP 7
753 1.1 christos .NOP \f\*[B-Font]stats\f[]
754 1.1 christos Enables the statistics facility.
755 1.1 christos See the
756 1.1 christos \fIMonitoring\f[] \fIOptions\f[]
757 1.1 christos section of
758 1.1.1.1.6.2.2.1 riz \fCntp.conf\f[]\fR(5)\f[]
759 1.1 christos for further information.
760 1.1 christos The default for this flag is disable.
761 1.1 christos .RE
762 1.1 christos .TP 7
763 1.1 christos .NOP \f\*[B-Font]restrict\f[] \f\*[I-Font]address\f[] \f\*[I-Font]mask\f[] \f\*[I-Font]flag\f[] [\f\*[I-Font]...\f[]]
764 1.1 christos This command operates in the same way as the
765 1.1 christos \f\*[B-Font]restrict\f[]
766 1.1 christos configuration file commands of
767 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[].
768 1.1 christos .TP 7
769 1.1 christos .NOP \f\*[B-Font]unrestrict\f[] \f\*[I-Font]address\f[] \f\*[I-Font]mask\f[] \f\*[I-Font]flag\f[] [\f\*[I-Font]...\f[]]
770 1.1 christos Unrestrict the matching entry from the restrict list.
771 1.1 christos .TP 7
772 1.1 christos .NOP \f\*[B-Font]delrestrict\f[] \f\*[I-Font]address\f[] \f\*[I-Font]mask\f[] [\f\*[B-Font]ntpport\f[]]
773 1.1 christos Delete the matching entry from the restrict list.
774 1.1 christos .TP 7
775 1.1 christos .NOP \f\*[B-Font]readkeys\f[]
776 1.1 christos Causes the current set of authentication keys to be purged and
777 1.1 christos a new set to be obtained by rereading the keys file (which must
778 1.1 christos have been specified in the
779 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[]
780 1.1 christos configuration file).
781 1.1 christos This
782 1.1 christos allows encryption keys to be changed without restarting the
783 1.1 christos server.
784 1.1 christos .TP 7
785 1.1 christos .NOP \f\*[B-Font]trustedkey\f[] \f\*[I-Font]keyid\f[] [\f\*[I-Font]...\f[]]
786 1.1 christos .TP 7
787 1.1 christos .NOP \f\*[B-Font]untrustedkey\f[] \f\*[I-Font]keyid\f[] [\f\*[I-Font]...\f[]]
788 1.1 christos These commands operate in the same way as the
789 1.1 christos \f\*[B-Font]trustedkey\f[]
790 1.1 christos and
791 1.1 christos \f\*[B-Font]untrustedkey\f[]
792 1.1 christos configuration file
793 1.1 christos commands of
794 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[].
795 1.1 christos .TP 7
796 1.1 christos .NOP \f\*[B-Font]authinfo\f[]
797 1.1 christos Returns information concerning the authentication module,
798 1.1 christos including known keys and counts of encryptions and decryptions
799 1.1 christos which have been done.
800 1.1 christos .TP 7
801 1.1 christos .NOP \f\*[B-Font]traps\f[]
802 1.1 christos Display the traps set in the server.
803 1.1 christos See the source listing for
804 1.1 christos further information.
805 1.1 christos .TP 7
806 1.1 christos .NOP \f\*[B-Font]addtrap\f[] \f\*[I-Font]address\f[] [\f\*[I-Font]port\f[]] [\f\*[I-Font]interface\f[]]
807 1.1 christos Set a trap for asynchronous messages.
808 1.1 christos See the source listing
809 1.1 christos for further information.
810 1.1 christos .TP 7
811 1.1 christos .NOP \f\*[B-Font]clrtrap\f[] \f\*[I-Font]address\f[] [\f\*[I-Font]port\f[]] [\f\*[I-Font]interface\f[]]
812 1.1 christos Clear a trap for asynchronous messages.
813 1.1 christos See the source listing
814 1.1 christos for further information.
815 1.1 christos .TP 7
816 1.1 christos .NOP \f\*[B-Font]reset\f[]
817 1.1 christos Clear the statistics counters in various modules of the server.
818 1.1 christos See the source listing for further information.
819 1.1 christos .PP
820 1.1 christos .SH "ENVIRONMENT"
821 1.1 christos See \fBOPTION PRESETS\fP for configuration environment variables.
822 1.1 christos .SH "FILES"
823 1.1 christos See \fBOPTION PRESETS\fP for configuration files.
824 1.1 christos .SH "EXIT STATUS"
825 1.1 christos One of the following exit values will be returned:
826 1.1 christos .TP
827 1.1 christos .NOP 0 " (EXIT_SUCCESS)"
828 1.1 christos Successful program execution.
829 1.1 christos .TP
830 1.1 christos .NOP 1 " (EXIT_FAILURE)"
831 1.1 christos The operation failed or the command syntax was not valid.
832 1.1 christos .TP
833 1.1 christos .NOP 66 " (EX_NOINPUT)"
834 1.1 christos A specified configuration file could not be loaded.
835 1.1 christos .TP
836 1.1 christos .NOP 70 " (EX_SOFTWARE)"
837 1.1 christos libopts had an internal operational error. Please report
838 1.1 christos it to autogen-users (a] lists.sourceforge.net. Thank you.
839 1.1 christos .PP
840 1.1 christos .SH "SEE ALSO"
841 1.1.1.1.6.2.2.1 riz \fCntp.conf\f[]\fR(5)\f[],
842 1.1.1.1.6.2.2.1 riz \fCntpd\f[]\fR(1ntpdmdoc)\f[]
843 1.1 christos David L. Mills,
844 1.1 christos \fINetwork Time Protocol (Version 3)\fR,
845 1.1 christos RFC1305
846 1.1 christos .PP
847 1.1 christos
848 1.1 christos .SH AUTHORS
849 1.1 christos The formatting directives in this document came from FreeBSD.
850 1.1 christos .SH "COPYRIGHT"
851 1.1.1.1.6.2.2.2 martin Copyright (C) 1992-2016 The University of Delaware and Network Time Foundation all rights reserved.
852 1.1 christos This program is released under the terms of the NTP license, <http://ntp.org/license>.
853 1.1 christos .SH BUGS
854 1.1 christos The
855 1.1 christos \f\*[B-Font]ntpdc\fP
856 1.1 christos utility is a crude hack.
857 1.1 christos Much of the information it shows is
858 1.1 christos deadly boring and could only be loved by its implementer.
859 1.1 christos The
860 1.1 christos program was designed so that new (and temporary) features were easy
861 1.1 christos to hack in, at great expense to the program's ease of use.
862 1.1 christos Despite
863 1.1 christos this, the program is occasionally useful.
864 1.1 christos .sp \n(Ppu
865 1.1 christos .ne 2
866 1.1 christos
867 1.1 christos Please report bugs to http://bugs.ntp.org .
868 1.1 christos .sp \n(Ppu
869 1.1 christos .ne 2
870 1.1 christos
871 1.1 christos Please send bug reports to: http://bugs.ntp.org, bugs (a] ntp.org
872 1.1 christos .SH "NOTES"
873 1.1 christos This manual page was \fIAutoGen\fP-erated from the \fBntpdc\fP
874 1.1 christos option definitions.
875