/contrib/ntp/ntpd/ntpdsim-opts.texi

https://bitbucket.org/freebsd/freebsd-head/ · Unknown · 568 lines · 443 code · 125 blank · 0 comment · 0 complexity · d6a5d668c15a44dea2262b269162de5a MD5 · raw file

  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. This section was generated by @strong{AutoGen},
  15. the aginfo template and the option descriptions for the @command{ntpdsim} program. It documents the ntpdsim usage text and option meanings.
  16. This software is released under a specialized copyright license.
  17. @menu
  18. * ntpdsim usage:: ntpdsim usage help (-?)
  19. * ntpdsim authnoreq:: authnoreq option (-A)
  20. * ntpdsim authreq:: authreq option (-a)
  21. * ntpdsim bcastsync:: bcastsync option (-b)
  22. * ntpdsim configfile:: configfile option (-c)
  23. * ntpdsim debug-level:: debug-level option (-d)
  24. * ntpdsim driftfile:: driftfile option (-f)
  25. * ntpdsim dvar:: dvar option (-V)
  26. * ntpdsim endsimtime:: endsimtime option (-S)
  27. * ntpdsim freqerr:: freqerr option (-T)
  28. * ntpdsim interface:: interface option (-I)
  29. * ntpdsim ipv4:: ipv4 option (-4)
  30. * ntpdsim ipv6:: ipv6 option (-6)
  31. * ntpdsim jaildir:: jaildir option (-i)
  32. * ntpdsim keyfile:: keyfile option (-k)
  33. * ntpdsim logfile:: logfile option (-l)
  34. * ntpdsim modifymmtimer:: modifymmtimer option (-M)
  35. * ntpdsim ndelay:: ndelay option (-Y)
  36. * ntpdsim nice:: nice option (-N)
  37. * ntpdsim nofork:: nofork option (-n)
  38. * ntpdsim novirtualips:: novirtualips option (-L)
  39. * ntpdsim panicgate:: panicgate option (-g)
  40. * ntpdsim pdelay:: pdelay option (-Z)
  41. * ntpdsim phasenoise:: phasenoise option (-C)
  42. * ntpdsim pidfile:: pidfile option (-p)
  43. * ntpdsim priority:: priority option (-P)
  44. * ntpdsim propagationdelay:: propagationdelay option (-r)
  45. * ntpdsim quit:: quit option (-q)
  46. * ntpdsim servertime:: servertime option (-O)
  47. * ntpdsim set-debug-level:: set-debug-level option (-D)
  48. * ntpdsim simbroadcastdelay:: simbroadcastdelay option (-B)
  49. * ntpdsim simslew:: simslew option (-H)
  50. * ntpdsim slew:: slew option (-x)
  51. * ntpdsim statsdir:: statsdir option (-s)
  52. * ntpdsim trustedkey:: trustedkey option (-t)
  53. * ntpdsim updateinterval:: updateinterval option (-U)
  54. * ntpdsim user:: user option (-u)
  55. * ntpdsim var:: var option (-v)
  56. * ntpdsim walknoise:: walknoise option (-W)
  57. @end menu
  58. @node ntpdsim usage
  59. @subsection ntpdsim usage help (-?)
  60. @cindex ntpdsim usage
  61. This is the automatically generated usage text for ntpdsim:
  62. @exampleindent 0
  63. @example
  64. ntpd - NTP daemon program - Ver. 4.2.5p247-RC
  65. USAGE: ntpdsim [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
  66. Flg Arg Option-Name Description
  67. -4 no ipv4 Force IPv4 DNS name resolution
  68. - prohibits these options:
  69. ipv6
  70. -6 no ipv6 Force IPv6 DNS name resolution
  71. - prohibits these options:
  72. ipv4
  73. -a no authreq Require crypto authentication
  74. - prohibits these options:
  75. authnoreq
  76. -A no authnoreq Do not require crypto authentication
  77. - prohibits these options:
  78. authreq
  79. -b no bcastsync Allow us to sync to broadcast servers
  80. -c Str configfile configuration file name
  81. -d no debug-level Increase output debug message level
  82. - may appear multiple times
  83. -D Str set-debug-level Set the output debug message level
  84. - may appear multiple times
  85. -f Str driftfile frequency drift file name
  86. -g no panicgate Allow the first adjustment to be Big
  87. - may appear multiple times
  88. -i --- jaildir built without --enable-clockctl or --enable-linuxcaps
  89. -I Str interface Listen on an interface name or address
  90. - may appear multiple times
  91. -k Str keyfile path to symmetric keys
  92. -l Str logfile path to the log file
  93. -L no novirtualips Do not listen to virtual interfaces
  94. -n no nofork Do not fork
  95. -N no nice Run at high priority
  96. -p Str pidfile path to the PID file
  97. -P Num priority Process priority
  98. -q no quit Set the time and quit
  99. -r Str propagationdelay Broadcast/propagation delay
  100. Str saveconfigquit Save parsed configuration and quit
  101. -s Str statsdir Statistics file location
  102. -t Str trustedkey Trusted key number
  103. - may appear multiple times
  104. -u --- user built without --enable-clockctl or --enable-linuxcaps
  105. -U Num updateinterval interval in seconds between scans for new or dropped interfaces
  106. Str var make ARG an ntp variable (RW)
  107. - may appear multiple times
  108. Str dvar make ARG an ntp variable (RW|DEF)
  109. - may appear multiple times
  110. -x no slew Slew up to 600 seconds
  111. opt version Output version information and exit
  112. -? no help Display extended usage information and exit
  113. -! no more-help Extended usage information passed thru pager
  114. Options are specified by doubled hyphens and their name
  115. or by a single hyphen and the flag character.
  116. The following option preset mechanisms are supported:
  117. - examining environment variables named NTPD_*
  118. please send bug reports to: http://bugs.ntp.org, bugs@@ntp.org
  119. @end example
  120. @exampleindent 4
  121. @node ntpdsim ipv4
  122. @subsection ipv4 option (-4)
  123. @cindex ntpdsim-ipv4
  124. This is the ``force ipv4 dns name resolution'' option.
  125. This option has some usage constraints. It:
  126. @itemize @bullet
  127. @item
  128. is a member of the ipv4 class of options.
  129. @end itemize
  130. Force DNS resolution of following host names on the command line
  131. to the IPv4 namespace.
  132. @node ntpdsim ipv6
  133. @subsection ipv6 option (-6)
  134. @cindex ntpdsim-ipv6
  135. This is the ``force ipv6 dns name resolution'' option.
  136. This option has some usage constraints. It:
  137. @itemize @bullet
  138. @item
  139. is a member of the ipv4 class of options.
  140. @end itemize
  141. Force DNS resolution of following host names on the command line
  142. to the IPv6 namespace.
  143. @node ntpdsim authreq
  144. @subsection authreq option (-a)
  145. @cindex ntpdsim-authreq
  146. This is the ``require crypto authentication'' option.
  147. This option has some usage constraints. It:
  148. @itemize @bullet
  149. @item
  150. must not appear in combination with any of the following options:
  151. authnoreq.
  152. @end itemize
  153. Require cryptographic authentication for broadcast client,
  154. multicast client and symmetric passive associations.
  155. This is the default.
  156. @node ntpdsim authnoreq
  157. @subsection authnoreq option (-A)
  158. @cindex ntpdsim-authnoreq
  159. This is the ``do not require crypto authentication'' option.
  160. This option has some usage constraints. It:
  161. @itemize @bullet
  162. @item
  163. must not appear in combination with any of the following options:
  164. authreq.
  165. @end itemize
  166. Do not require cryptographic authentication for broadcast client,
  167. multicast client and symmetric passive associations.
  168. This is almost never a good idea.
  169. @node ntpdsim bcastsync
  170. @subsection bcastsync option (-b)
  171. @cindex ntpdsim-bcastsync
  172. This is the ``allow us to sync to broadcast servers'' option.
  173. @node ntpdsim simbroadcastdelay
  174. @subsection simbroadcastdelay option (-B)
  175. @cindex ntpdsim-simbroadcastdelay
  176. This is the ``simulator broadcast delay'' option.
  177. @node ntpdsim configfile
  178. @subsection configfile option (-c)
  179. @cindex ntpdsim-configfile
  180. This is the ``configuration file name'' option.
  181. The name and path of the configuration file,
  182. /etc/ntp.conf
  183. by default.
  184. @node ntpdsim phasenoise
  185. @subsection phasenoise option (-C)
  186. @cindex ntpdsim-phasenoise
  187. This is the ``phase noise level'' option.
  188. @node ntpdsim debug-level
  189. @subsection debug-level option (-d)
  190. @cindex ntpdsim-debug-level
  191. This is the ``increase output debug message level'' option.
  192. This option has some usage constraints. It:
  193. @itemize @bullet
  194. @item
  195. may appear an unlimited number of times.
  196. @item
  197. must be compiled in by defining @code{DEBUG} during the compilation.
  198. @end itemize
  199. Increase the debugging message output level.
  200. @node ntpdsim set-debug-level
  201. @subsection set-debug-level option (-D)
  202. @cindex ntpdsim-set-debug-level
  203. This is the ``set the output debug message level'' option.
  204. This option has some usage constraints. It:
  205. @itemize @bullet
  206. @item
  207. may appear an unlimited number of times.
  208. @item
  209. must be compiled in by defining @code{DEBUG} during the compilation.
  210. @end itemize
  211. Set the output debugging level. Can be supplied multiple times,
  212. but each overrides the previous value(s).
  213. @node ntpdsim driftfile
  214. @subsection driftfile option (-f)
  215. @cindex ntpdsim-driftfile
  216. This is the ``frequency drift file name'' option.
  217. The name and path of the frequency file,
  218. /etc/ntp.drift
  219. by default.
  220. This is the same operation as the
  221. driftfile driftfile
  222. configuration specification in the
  223. /etc/ntp.conf
  224. file.
  225. @node ntpdsim panicgate
  226. @subsection panicgate option (-g)
  227. @cindex ntpdsim-panicgate
  228. This is the ``allow the first adjustment to be big'' option.
  229. Normally,
  230. ntpd
  231. 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,
  232. ntpd
  233. will exit with a message to the system log. This option can be used with the
  234. -q
  235. and
  236. -x
  237. options.
  238. See the
  239. tinker
  240. configuration file directive for other options.
  241. @node ntpdsim simslew
  242. @subsection simslew option (-H)
  243. @cindex ntpdsim-simslew
  244. This is the ``simuator slew'' option.
  245. @node ntpdsim jaildir
  246. @subsection jaildir option (-i)
  247. @cindex ntpdsim-jaildir
  248. This is the ``jail directory'' option.
  249. Chroot the server to the directory
  250. jaildir
  251. .
  252. 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.
  253. You may need to also specify a
  254. -u
  255. option.
  256. @node ntpdsim interface
  257. @subsection interface option (-I)
  258. @cindex ntpdsim-interface
  259. This is the ``listen on interface'' option.
  260. This option has some usage constraints. It:
  261. @itemize @bullet
  262. @item
  263. may appear an unlimited number of times.
  264. @end itemize
  265. @node ntpdsim keyfile
  266. @subsection keyfile option (-k)
  267. @cindex ntpdsim-keyfile
  268. This is the ``path to symmetric keys'' option.
  269. Specify the name and path of the symmetric key file.
  270. /etc/ntp.keys
  271. is the default.
  272. This is the same operation as the
  273. keys keyfile
  274. configuration file directive.
  275. @node ntpdsim logfile
  276. @subsection logfile option (-l)
  277. @cindex ntpdsim-logfile
  278. This is the ``path to the log file'' option.
  279. Specify the name and path of the log file.
  280. The default is the system log file.
  281. This is the same operation as the
  282. logfile logfile
  283. configuration file directive.
  284. @node ntpdsim novirtualips
  285. @subsection novirtualips option (-L)
  286. @cindex ntpdsim-novirtualips
  287. This is the ``do not listen to virtual ips'' option.
  288. Do not listen to virtual IPs. The default is to listen.
  289. @node ntpdsim modifymmtimer
  290. @subsection modifymmtimer option (-M)
  291. @cindex ntpdsim-modifymmtimer
  292. This is the ``modify multimedia timer (windows only)'' option.
  293. This option has some usage constraints. It:
  294. @itemize @bullet
  295. @item
  296. must be compiled in by defining @code{SYS_WINNT} during the compilation.
  297. @end itemize
  298. Set the Windows Multimedia Timer to highest resolution.
  299. @node ntpdsim nofork
  300. @subsection nofork option (-n)
  301. @cindex ntpdsim-nofork
  302. This is the ``do not fork'' option.
  303. @node ntpdsim nice
  304. @subsection nice option (-N)
  305. @cindex ntpdsim-nice
  306. This is the ``run at high priority'' option.
  307. To the extent permitted by the operating system, run
  308. ntpd
  309. at the highest priority.
  310. @node ntpdsim servertime
  311. @subsection servertime option (-O)
  312. @cindex ntpdsim-servertime
  313. This is the ``server time'' option.
  314. @node ntpdsim pidfile
  315. @subsection pidfile option (-p)
  316. @cindex ntpdsim-pidfile
  317. This is the ``path to the pid file'' option.
  318. Specify the name and path of the file used to record
  319. ntpd's
  320. process ID.
  321. This is the same operation as the
  322. pidfile pidfile
  323. configuration file directive.
  324. @node ntpdsim priority
  325. @subsection priority option (-P)
  326. @cindex ntpdsim-priority
  327. This is the ``process priority'' option.
  328. To the extent permitted by the operating system, run
  329. ntpd
  330. at the specified
  331. sched_setscheduler(SCHED_FIFO)
  332. priority.
  333. @node ntpdsim quit
  334. @subsection quit option (-q)
  335. @cindex ntpdsim-quit
  336. This is the ``set the time and quit'' option.
  337. ntpd
  338. will exit just after the first time the clock is set. This behavior mimics that of the
  339. ntpdate
  340. program, which is to be retired.
  341. The
  342. -g
  343. and
  344. -x
  345. options can be used with this option.
  346. Note: The kernel time discipline is disabled with this option.
  347. @node ntpdsim propagationdelay
  348. @subsection propagationdelay option (-r)
  349. @cindex ntpdsim-propagationdelay
  350. This is the ``broadcast/propagation delay'' option.
  351. 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.
  352. @node ntpdsim updateinterval
  353. @subsection updateinterval option (-U)
  354. @cindex ntpdsim-updateinterval
  355. This is the ``interval in seconds between scans for new or dropped interfaces'' option.
  356. Give the time in seconds between two scans for new or dropped interfaces.
  357. For systems with routing socket support the scans will be performed shortly after the interface change
  358. has been detected by the system.
  359. Use 0 to disable scanning.
  360. @node ntpdsim statsdir
  361. @subsection statsdir option (-s)
  362. @cindex ntpdsim-statsdir
  363. This is the ``statistics file location'' option.
  364. Specify the directory path for files created by the statistics facility.
  365. This is the same operation as the
  366. statsdir statsdir
  367. configuration file directive.
  368. @node ntpdsim endsimtime
  369. @subsection endsimtime option (-S)
  370. @cindex ntpdsim-endsimtime
  371. This is the ``simulation end time'' option.
  372. @node ntpdsim trustedkey
  373. @subsection trustedkey option (-t)
  374. @cindex ntpdsim-trustedkey
  375. This is the ``trusted key number'' option.
  376. This option has some usage constraints. It:
  377. @itemize @bullet
  378. @item
  379. may appear an unlimited number of times.
  380. @end itemize
  381. Add a key number to the trusted key list.
  382. @node ntpdsim freqerr
  383. @subsection freqerr option (-T)
  384. @cindex ntpdsim-freqerr
  385. This is the ``simulation frequency error'' option.
  386. @node ntpdsim walknoise
  387. @subsection walknoise option (-W)
  388. @cindex ntpdsim-walknoise
  389. This is the ``simulation random walk noise'' option.
  390. @node ntpdsim user
  391. @subsection user option (-u)
  392. @cindex ntpdsim-user
  393. This is the ``run as userid (or userid:groupid)'' option.
  394. Specify a user, and optionally a group, to switch to.
  395. This option is only available if the OS supports to run the server without full root privileges.
  396. Currently, this option is supported under NetBSD (configure with
  397. --enable-clockctl
  398. ) and Linux (configure with
  399. --enable-linuxcaps
  400. ).
  401. @node ntpdsim var
  402. @subsection var option (-v)
  403. @cindex ntpdsim-var
  404. This is the ``make arg an ntp variable (rw)'' option.
  405. This option has some usage constraints. It:
  406. @itemize @bullet
  407. @item
  408. may appear an unlimited number of times.
  409. @end itemize
  410. @node ntpdsim dvar
  411. @subsection dvar option (-V)
  412. @cindex ntpdsim-dvar
  413. This is the ``make arg an ntp variable (rw|def)'' option.
  414. This option has some usage constraints. It:
  415. @itemize @bullet
  416. @item
  417. may appear an unlimited number of times.
  418. @end itemize
  419. @node ntpdsim slew
  420. @subsection slew option (-x)
  421. @cindex ntpdsim-slew
  422. This is the ``slew up to 600 seconds'' option.
  423. 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.
  424. This option sets the threshold to 600 s, which is well within the accuracy window to set the clock manually.
  425. 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.
  426. Thus, an adjustment as much as 600 s will take almost 14 days to complete.
  427. This option can be used with the
  428. -g
  429. and
  430. -q
  431. options.
  432. See the
  433. tinker
  434. configuration file directive for other options.
  435. Note: The kernel time discipline is disabled with this option.
  436. @node ntpdsim ndelay
  437. @subsection ndelay option (-Y)
  438. @cindex ntpdsim-ndelay
  439. This is the ``simulation network delay'' option.
  440. @node ntpdsim pdelay
  441. @subsection pdelay option (-Z)
  442. @cindex ntpdsim-pdelay
  443. This is the ``simulation processing delay'' option.