]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/ntp/ntpd/ntpdsim-opts.texi
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / ntp / ntpd / ntpdsim-opts.texi
1 @node ntpdsim Invocation
2 @section Invoking ntpdsim
3 @pindex ntpdsim
4 @cindex NTP daemon simulation program
5 @ignore
6
7 # EDIT THIS FILE WITH CAUTION  (ntpdsim-opts.texi)
8
9 # It has been AutoGen-ed  Tuesday December  8, 2009 at 08:13:15 AM EST
10 # From the definitions    ntpdsim-opts.def
11 # and the template file   aginfo.tpl
12 @end ignore
13 This program has no explanation.
14
15
16
17 This section was generated by @strong{AutoGen},
18 the aginfo template and the option descriptions for the @command{ntpdsim} program.  It documents the ntpdsim usage text and option meanings.
19
20 This software is released under a specialized copyright license.
21
22 @menu
23 * ntpdsim usage::                  ntpdsim usage help (-?)
24 * ntpdsim authnoreq::              authnoreq option (-A)
25 * ntpdsim authreq::                authreq option (-a)
26 * ntpdsim bcastsync::              bcastsync option (-b)
27 * ntpdsim configfile::             configfile option (-c)
28 * ntpdsim debug-level::            debug-level option (-d)
29 * ntpdsim driftfile::              driftfile option (-f)
30 * ntpdsim dvar::                   dvar option (-V)
31 * ntpdsim endsimtime::             endsimtime option (-S)
32 * ntpdsim freqerr::                freqerr option (-T)
33 * ntpdsim interface::              interface option (-I)
34 * ntpdsim ipv4::                   ipv4 option (-4)
35 * ntpdsim ipv6::                   ipv6 option (-6)
36 * ntpdsim jaildir::                jaildir option (-i)
37 * ntpdsim keyfile::                keyfile option (-k)
38 * ntpdsim logfile::                logfile option (-l)
39 * ntpdsim modifymmtimer::          modifymmtimer option (-M)
40 * ntpdsim ndelay::                 ndelay option (-Y)
41 * ntpdsim nice::                   nice option (-N)
42 * ntpdsim nofork::                 nofork option (-n)
43 * ntpdsim novirtualips::           novirtualips option (-L)
44 * ntpdsim panicgate::              panicgate option (-g)
45 * ntpdsim pdelay::                 pdelay option (-Z)
46 * ntpdsim phasenoise::             phasenoise option (-C)
47 * ntpdsim pidfile::                pidfile option (-p)
48 * ntpdsim priority::               priority option (-P)
49 * ntpdsim propagationdelay::       propagationdelay option (-r)
50 * ntpdsim quit::                   quit option (-q)
51 * ntpdsim servertime::             servertime option (-O)
52 * ntpdsim set-debug-level::        set-debug-level option (-D)
53 * ntpdsim simbroadcastdelay::      simbroadcastdelay option (-B)
54 * ntpdsim simslew::                simslew option (-H)
55 * ntpdsim slew::                   slew option (-x)
56 * ntpdsim statsdir::               statsdir option (-s)
57 * ntpdsim trustedkey::             trustedkey option (-t)
58 * ntpdsim updateinterval::         updateinterval option (-U)
59 * ntpdsim user::                   user option (-u)
60 * ntpdsim var::                    var option (-v)
61 * ntpdsim walknoise::              walknoise option (-W)
62 @end menu
63
64 @node ntpdsim usage
65 @subsection ntpdsim usage help (-?)
66 @cindex ntpdsim usage
67
68 This is the automatically generated usage text for ntpdsim:
69
70 @exampleindent 0
71 @example
72 ntpd - NTP daemon program - Ver. 4.2.5p247-RC
73 USAGE:  ntpdsim [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
74   Flg Arg Option-Name    Description
75    -4 no  ipv4           Force IPv4 DNS name resolution
76                                 - prohibits these options:
77                                 ipv6
78    -6 no  ipv6           Force IPv6 DNS name resolution
79                                 - prohibits these options:
80                                 ipv4
81    -a no  authreq        Require crypto authentication
82                                 - prohibits these options:
83                                 authnoreq
84    -A no  authnoreq      Do not require crypto authentication
85                                 - prohibits these options:
86                                 authreq
87    -b no  bcastsync      Allow us to sync to broadcast servers
88    -c Str configfile     configuration file name
89    -d no  debug-level    Increase output debug message level
90                                 - may appear multiple times
91    -D Str set-debug-level Set the output debug message level
92                                 - may appear multiple times
93    -f Str driftfile      frequency drift file name
94    -g no  panicgate      Allow the first adjustment to be Big
95                                 - may appear multiple times
96    -i --- jaildir        built without --enable-clockctl or --enable-linuxcaps
97    -I Str interface      Listen on an interface name or address
98                                 - may appear multiple times
99    -k Str keyfile        path to symmetric keys
100    -l Str logfile        path to the log file
101    -L no  novirtualips   Do not listen to virtual interfaces
102    -n no  nofork         Do not fork
103    -N no  nice           Run at high priority
104    -p Str pidfile        path to the PID file
105    -P Num priority       Process priority
106    -q no  quit           Set the time and quit
107    -r Str propagationdelay Broadcast/propagation delay
108       Str saveconfigquit Save parsed configuration and quit
109    -s Str statsdir       Statistics file location
110    -t Str trustedkey     Trusted key number
111                                 - may appear multiple times
112    -u --- user           built without --enable-clockctl or --enable-linuxcaps
113    -U Num updateinterval interval in seconds between scans for new or dropped interfaces
114       Str var            make ARG an ntp variable (RW)
115                                 - may appear multiple times
116       Str dvar           make ARG an ntp variable (RW|DEF)
117                                 - may appear multiple times
118    -x no  slew           Slew up to 600 seconds
119       opt version        Output version information and exit
120    -? no  help           Display extended usage information and exit
121    -! no  more-help      Extended usage information passed thru pager
122
123 Options are specified by doubled hyphens and their name
124 or by a single hyphen and the flag character.
125
126 The following option preset mechanisms are supported:
127  - examining environment variables named NTPD_*
128
129
130
131 please send bug reports to:  http://bugs.ntp.org, bugs@@ntp.org
132 @end example
133 @exampleindent 4
134
135 @node ntpdsim ipv4
136 @subsection ipv4 option (-4)
137 @cindex ntpdsim-ipv4
138
139 This is the ``force ipv4 dns name resolution'' option.
140
141 This option has some usage constraints.  It:
142 @itemize @bullet
143 @item
144 is a member of the ipv4 class of options.
145 @end itemize
146
147 Force DNS resolution of following host names on the command line
148 to the IPv4 namespace.
149
150 @node ntpdsim ipv6
151 @subsection ipv6 option (-6)
152 @cindex ntpdsim-ipv6
153
154 This is the ``force ipv6 dns name resolution'' option.
155
156 This option has some usage constraints.  It:
157 @itemize @bullet
158 @item
159 is a member of the ipv4 class of options.
160 @end itemize
161
162 Force DNS resolution of following host names on the command line
163 to the IPv6 namespace.
164
165 @node ntpdsim authreq
166 @subsection authreq option (-a)
167 @cindex ntpdsim-authreq
168
169 This is the ``require crypto authentication'' option.
170
171 This option has some usage constraints.  It:
172 @itemize @bullet
173 @item
174 must not appear in combination with any of the following options:
175 authnoreq.
176 @end itemize
177
178 Require cryptographic authentication for broadcast client,
179 multicast client and symmetric passive associations.
180 This is the default.
181
182 @node ntpdsim authnoreq
183 @subsection authnoreq option (-A)
184 @cindex ntpdsim-authnoreq
185
186 This is the ``do not require crypto authentication'' option.
187
188 This option has some usage constraints.  It:
189 @itemize @bullet
190 @item
191 must not appear in combination with any of the following options:
192 authreq.
193 @end itemize
194
195 Do not require cryptographic authentication for broadcast client,
196 multicast client and symmetric passive associations.
197 This is almost never a good idea.
198
199 @node ntpdsim bcastsync
200 @subsection bcastsync option (-b)
201 @cindex ntpdsim-bcastsync
202
203 This is the ``allow us to sync to broadcast servers'' option.
204
205
206 @node ntpdsim simbroadcastdelay
207 @subsection simbroadcastdelay option (-B)
208 @cindex ntpdsim-simbroadcastdelay
209
210 This is the ``simulator broadcast delay'' option.
211
212
213 @node ntpdsim configfile
214 @subsection configfile option (-c)
215 @cindex ntpdsim-configfile
216
217 This is the ``configuration file name'' option.
218 The name and path of the configuration file,
219 /etc/ntp.conf
220 by default.
221
222 @node ntpdsim phasenoise
223 @subsection phasenoise option (-C)
224 @cindex ntpdsim-phasenoise
225
226 This is the ``phase noise level'' option.
227
228
229 @node ntpdsim debug-level
230 @subsection debug-level option (-d)
231 @cindex ntpdsim-debug-level
232
233 This is the ``increase output debug message level'' option.
234
235 This option has some usage constraints.  It:
236 @itemize @bullet
237 @item
238 may appear an unlimited number of times.
239 @item
240 must be compiled in by defining @code{DEBUG} during the compilation.
241 @end itemize
242
243 Increase the debugging message output level.
244
245 @node ntpdsim set-debug-level
246 @subsection set-debug-level option (-D)
247 @cindex ntpdsim-set-debug-level
248
249 This is the ``set the output debug message level'' option.
250
251 This option has some usage constraints.  It:
252 @itemize @bullet
253 @item
254 may appear an unlimited number of times.
255 @item
256 must be compiled in by defining @code{DEBUG} during the compilation.
257 @end itemize
258
259 Set the output debugging level.  Can be supplied multiple times,
260 but each overrides the previous value(s).
261
262 @node ntpdsim driftfile
263 @subsection driftfile option (-f)
264 @cindex ntpdsim-driftfile
265
266 This is the ``frequency drift file name'' option.
267 The name and path of the frequency file,
268 /etc/ntp.drift
269 by default.
270 This is the same operation as the
271 driftfile driftfile
272 configuration specification in the 
273 /etc/ntp.conf
274 file.
275
276 @node ntpdsim panicgate
277 @subsection panicgate option (-g)
278 @cindex ntpdsim-panicgate
279
280 This is the ``allow the first adjustment to be big'' option.
281 Normally,
282 ntpd
283 exits with a message to the system log if the offset exceeds the panic threshold, which is 1000 s by default. This option allows the time to be set to any value without restriction; however, this can happen only once. If the threshold is exceeded after that,
284 ntpd
285 will exit with a message to the system log. This option can be used with the
286 -q
287 and
288 -x
289 options.
290 See the
291 tinker
292 configuration file directive for other options.
293
294 @node ntpdsim simslew
295 @subsection simslew option (-H)
296 @cindex ntpdsim-simslew
297
298 This is the ``simuator slew'' option.
299
300
301 @node ntpdsim jaildir
302 @subsection jaildir option (-i)
303 @cindex ntpdsim-jaildir
304
305 This is the ``jail directory'' option.
306 Chroot the server to the directory
307 jaildir
308 .
309 This option also implies that the server attempts to drop root privileges at startup (otherwise, chroot gives very little additional security), and it is only available if the OS supports to run the server without full root privileges.
310 You may need to also specify a
311 -u
312 option.
313
314 @node ntpdsim interface
315 @subsection interface option (-I)
316 @cindex ntpdsim-interface
317
318 This is the ``listen on interface'' option.
319
320 This option has some usage constraints.  It:
321 @itemize @bullet
322 @item
323 may appear an unlimited number of times.
324 @end itemize
325
326
327
328 @node ntpdsim keyfile
329 @subsection keyfile option (-k)
330 @cindex ntpdsim-keyfile
331
332 This is the ``path to symmetric keys'' option.
333 Specify the name and path of the symmetric key file.
334 /etc/ntp.keys
335 is the default.
336 This is the same operation as the
337 keys keyfile
338 configuration file directive.
339
340 @node ntpdsim logfile
341 @subsection logfile option (-l)
342 @cindex ntpdsim-logfile
343
344 This is the ``path to the log file'' option.
345 Specify the name and path of the log file.
346 The default is the system log file.
347 This is the same operation as the
348 logfile logfile
349 configuration file directive.
350
351 @node ntpdsim novirtualips
352 @subsection novirtualips option (-L)
353 @cindex ntpdsim-novirtualips
354
355 This is the ``do not listen to virtual ips'' option.
356 Do not listen to virtual IPs. The default is to listen.
357
358 @node ntpdsim modifymmtimer
359 @subsection modifymmtimer option (-M)
360 @cindex ntpdsim-modifymmtimer
361
362 This is the ``modify multimedia timer (windows only)'' option.
363
364 This option has some usage constraints.  It:
365 @itemize @bullet
366 @item
367 must be compiled in by defining @code{SYS_WINNT} during the compilation.
368 @end itemize
369
370 Set the Windows Multimedia Timer to highest resolution.
371
372 @node ntpdsim nofork
373 @subsection nofork option (-n)
374 @cindex ntpdsim-nofork
375
376 This is the ``do not fork'' option.
377
378
379 @node ntpdsim nice
380 @subsection nice option (-N)
381 @cindex ntpdsim-nice
382
383 This is the ``run at high priority'' option.
384 To the extent permitted by the operating system, run
385 ntpd
386 at the highest priority.
387
388 @node ntpdsim servertime
389 @subsection servertime option (-O)
390 @cindex ntpdsim-servertime
391
392 This is the ``server time'' option.
393
394
395 @node ntpdsim pidfile
396 @subsection pidfile option (-p)
397 @cindex ntpdsim-pidfile
398
399 This is the ``path to the pid file'' option.
400 Specify the name and path of the file used to record
401 ntpd's
402 process ID.
403 This is the same operation as the
404 pidfile pidfile
405 configuration file directive.
406
407 @node ntpdsim priority
408 @subsection priority option (-P)
409 @cindex ntpdsim-priority
410
411 This is the ``process priority'' option.
412 To the extent permitted by the operating system, run
413 ntpd
414 at the specified
415 sched_setscheduler(SCHED_FIFO)
416 priority.
417
418 @node ntpdsim quit
419 @subsection quit option (-q)
420 @cindex ntpdsim-quit
421
422 This is the ``set the time and quit'' option.
423 ntpd
424 will exit just after the first time the clock is set. This behavior mimics that of the
425 ntpdate
426 program, which is to be retired.
427 The
428 -g
429 and
430 -x
431 options can be used with this option.
432 Note: The kernel time discipline is disabled with this option.
433
434 @node ntpdsim propagationdelay
435 @subsection propagationdelay option (-r)
436 @cindex ntpdsim-propagationdelay
437
438 This is the ``broadcast/propagation delay'' option.
439 Specify the default propagation delay from the broadcast/multicast server to this client. This is necessary only if the delay cannot be computed automatically by the protocol.
440
441 @node ntpdsim updateinterval
442 @subsection updateinterval option (-U)
443 @cindex ntpdsim-updateinterval
444
445 This is the ``interval in seconds between scans for new or dropped interfaces'' option.
446 Give the time in seconds between two scans for new or dropped interfaces.
447 For systems with routing socket support the scans will be performed shortly after the interface change
448 has been detected by the system.
449 Use 0 to disable scanning.
450
451 @node ntpdsim statsdir
452 @subsection statsdir option (-s)
453 @cindex ntpdsim-statsdir
454
455 This is the ``statistics file location'' option.
456 Specify the directory path for files created by the statistics facility.
457 This is the same operation as the
458 statsdir statsdir
459 configuration file directive.
460
461 @node ntpdsim endsimtime
462 @subsection endsimtime option (-S)
463 @cindex ntpdsim-endsimtime
464
465 This is the ``simulation end time'' option.
466
467
468 @node ntpdsim trustedkey
469 @subsection trustedkey option (-t)
470 @cindex ntpdsim-trustedkey
471
472 This is the ``trusted key number'' option.
473
474 This option has some usage constraints.  It:
475 @itemize @bullet
476 @item
477 may appear an unlimited number of times.
478 @end itemize
479
480 Add a key number to the trusted key list.
481
482 @node ntpdsim freqerr
483 @subsection freqerr option (-T)
484 @cindex ntpdsim-freqerr
485
486 This is the ``simulation frequency error'' option.
487
488
489 @node ntpdsim walknoise
490 @subsection walknoise option (-W)
491 @cindex ntpdsim-walknoise
492
493 This is the ``simulation random walk noise'' option.
494
495
496 @node ntpdsim user
497 @subsection user option (-u)
498 @cindex ntpdsim-user
499
500 This is the ``run as userid (or userid:groupid)'' option.
501 Specify a user, and optionally a group, to switch to.
502 This option is only available if the OS supports to run the server without full root privileges.
503 Currently, this option is supported under NetBSD (configure with
504 --enable-clockctl
505 ) and Linux (configure with
506 --enable-linuxcaps
507 ).
508
509 @node ntpdsim var
510 @subsection var option (-v)
511 @cindex ntpdsim-var
512
513 This is the ``make arg an ntp variable (rw)'' option.
514
515 This option has some usage constraints.  It:
516 @itemize @bullet
517 @item
518 may appear an unlimited number of times.
519 @end itemize
520
521
522
523 @node ntpdsim dvar
524 @subsection dvar option (-V)
525 @cindex ntpdsim-dvar
526
527 This is the ``make arg an ntp variable (rw|def)'' option.
528
529 This option has some usage constraints.  It:
530 @itemize @bullet
531 @item
532 may appear an unlimited number of times.
533 @end itemize
534
535
536
537 @node ntpdsim slew
538 @subsection slew option (-x)
539 @cindex ntpdsim-slew
540
541 This is the ``slew up to 600 seconds'' option.
542 Normally, the time is slewed if the offset is less than the step threshold, which is 128 ms by default, and stepped if above the threshold.
543 This option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually.
544 Note: Since the slew rate of typical Unix kernels is limited to 0.5 ms/s, each second of adjustment requires an amortization interval of 2000 s.
545 Thus, an adjustment as much as 600 s will take almost 14 days to complete.
546 This option can be used with the
547 -g
548 and
549 -q
550 options.
551 See the
552 tinker
553 configuration file directive for other options.
554 Note: The kernel time discipline is disabled with this option.
555
556 @node ntpdsim ndelay
557 @subsection ndelay option (-Y)
558 @cindex ntpdsim-ndelay
559
560 This is the ``simulation network delay'' option.
561
562
563 @node ntpdsim pdelay
564 @subsection pdelay option (-Z)
565 @cindex ntpdsim-pdelay
566
567 This is the ``simulation processing delay'' option.
568