kea-lfc.xml 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285
  1. <!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  2. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd"
  3. [<!ENTITY mdash "&#8212;">]>
  4. <!--
  5. - Copyright (C) 2015 Internet Systems Consortium, Inc. ("ISC")
  6. -
  7. - This Source Code Form is subject to the terms of the Mozilla Public
  8. - License, v. 2.0. If a copy of the MPL was not distributed with this
  9. - file, You can obtain one at http://mozilla.org/MPL/2.0/.
  10. -->
  11. <refentry>
  12. <refentryinfo>
  13. <productname>ISC Kea</productname>
  14. <date>Sep. 28, 2016</date>
  15. <edition>1.1.0</edition>
  16. <author>
  17. <contrib>The Kea software has been written by a number of
  18. engineers working for ISC: Tomek Mrugalski, Stephen Morris, Marcin
  19. Siodelski, Thomas Markwalder, Francis Dupont, Jeremy C. Reed,
  20. Wlodek Wencel and Shawn Routhier. That list is roughly in the
  21. chronological order in which the authors made their first
  22. contribution. For a complete list of authors and
  23. contributors, see AUTHORS file.</contrib>
  24. <orgname>Internet Systems Consortium, Inc.</orgname>
  25. </author>
  26. </refentryinfo>
  27. <refmeta>
  28. <refentrytitle>kea-lfc</refentrytitle>
  29. <manvolnum>8</manvolnum>
  30. <refmiscinfo class="manual">Kea</refmiscinfo>
  31. </refmeta>
  32. <refnamediv>
  33. <refname>kea-lfc</refname>
  34. <refpurpose>Lease File Cleanup process in Kea</refpurpose>
  35. </refnamediv>
  36. <docinfo>
  37. <copyright>
  38. <year>2015</year>
  39. <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
  40. </copyright>
  41. </docinfo>
  42. <refsynopsisdiv>
  43. <cmdsynopsis>
  44. <command>kea-lfc</command>
  45. <arg><option>-4|-6</option></arg>
  46. <arg><option>-c <replaceable class="parameter">config-file</replaceable></option></arg>
  47. <arg><option>-p <replaceable class="parameter">pid-file</replaceable></option></arg>
  48. <arg><option>-x <replaceable class="parameter">previous-file</replaceable></option></arg>
  49. <arg><option>-i <replaceable class="parameter">copy-file</replaceable></option></arg>
  50. <arg><option>-o <replaceable class="parameter">output-file</replaceable></option></arg>
  51. <arg><option>-f <replaceable class="parameter">finish-file</replaceable></option></arg>
  52. <arg><option>-v</option></arg>
  53. <arg><option>-V</option></arg>
  54. <arg><option>-W</option></arg>
  55. <arg><option>-d</option></arg>
  56. <arg><option>-h</option></arg>
  57. </cmdsynopsis>
  58. </refsynopsisdiv>
  59. <refsect1>
  60. <title>DESCRIPTION</title>
  61. <para>
  62. The <command>kea-lfc</command> service process removes redundant
  63. information from the files used to provide persistent storage for
  64. the memfile data base backend. The service is written to run as
  65. a stand alone process. While it can be started externally, there
  66. is usually no need to do this. It will be run on a periodic basis
  67. by the Kea DHCP servers.
  68. </para>
  69. </refsect1>
  70. <refsect1>
  71. <title>ARGUMENTS</title>
  72. <para>The arguments are as follows:</para>
  73. <variablelist>
  74. <varlistentry>
  75. <term><option>-d</option></term>
  76. <listitem><para>
  77. Verbose mode sets the logging level to debug. This is primarily
  78. for development purposes in stand-alone mode.
  79. </para></listitem>
  80. </varlistentry>
  81. <varlistentry>
  82. <term><option>-v</option></term>
  83. <listitem><para>
  84. version causes the version stamp to be printed.
  85. </para></listitem>
  86. </varlistentry>
  87. <varlistentry>
  88. <term><option>-V</option></term>
  89. <listitem><para>
  90. Version causes a longer form of the version stamp to be printed.
  91. </para></listitem>
  92. </varlistentry>
  93. <varlistentry>
  94. <term><option>-W</option></term>
  95. <listitem><para>
  96. Display the configuration report.
  97. </para></listitem>
  98. </varlistentry>
  99. <varlistentry>
  100. <term><option>-h</option></term>
  101. <listitem><para>
  102. Help causes the usage string to be printed.
  103. </para></listitem>
  104. </varlistentry>
  105. <varlistentry>
  106. <term><option>-4 | -6</option></term>
  107. <listitem><para>
  108. The protocol version of the lease files, must be one of 4 or 6.
  109. </para></listitem>
  110. </varlistentry>
  111. <varlistentry>
  112. <term><option>-c</option></term>
  113. <listitem><para>
  114. Configuration file including the configuration for
  115. <command>kea-lfc</command> process. It may also
  116. contain configuration entries for other Kea services.
  117. Currently <command>kea-lfc</command> gets all of its arguments from
  118. the command line, in the future it will be extended to get some arguments
  119. from the config file.
  120. </para></listitem>
  121. </varlistentry>
  122. <varlistentry>
  123. <term><option>-p</option></term>
  124. <listitem><para>
  125. PID file - When the <command>kea-lfc</command> process starts
  126. it attempts to determine if another instance of the process is
  127. already running by examining the pid file. If one is already
  128. running the new process is terminated. If one isn't running it
  129. writes its pid into the pid file.
  130. </para></listitem>
  131. </varlistentry>
  132. <varlistentry>
  133. <term><option>-x</option></term>
  134. <listitem><para>
  135. Previous or ex lease file - When <command>kea-lfc</command> starts this
  136. is the result of any previous run of <command>kea-lfc</command>.
  137. When <command>kea-lfc</command> finishes it is the result of this run.
  138. If <command>kea-lfc</command> is interrupted before completing,
  139. this file may not exist.
  140. </para></listitem>
  141. </varlistentry>
  142. <varlistentry>
  143. <term><option>-i</option></term>
  144. <listitem><para>
  145. Input or copy of lease file - Before the DHCP server invokes
  146. <command>kea-lfc</command> it will move the current lease file
  147. here and then call <command>kea-lfc</command> with this file.
  148. </para></listitem>
  149. </varlistentry>
  150. <varlistentry>
  151. <term><option>-o</option></term>
  152. <listitem><para>
  153. Output lease file - The temporary file <command>kea-lfc</command>
  154. should use to write the leases. Upon completion of writing this
  155. this file it will be moved to the finish file (see below).
  156. </para></listitem>
  157. </varlistentry>
  158. <varlistentry>
  159. <term><option>-f</option></term>
  160. <listitem><para>
  161. Finish or completion file - Another temporary file
  162. <command>kea-lfc</command> uses for bookkeeping. When
  163. <command>kea-lfc</command> completes writing the output
  164. file it moves it to this file name. After
  165. <command>kea-lfc</command> finishes deleting the other
  166. files (previous and input) it moves this file to previous
  167. lease file. By moving the files in this fashion the
  168. <command>kea-lfc</command> and the DHCP server processes
  169. can determine the correct file to use even if one of the
  170. processes was interrupted before completing its task.
  171. </para></listitem>
  172. </varlistentry>
  173. </variablelist>
  174. </refsect1>
  175. <refsect1>
  176. <title>DOCUMENTATION</title>
  177. <para>Kea comes with an extensive Kea User's Guide documentation
  178. that covers all aspects of running the Kea software -
  179. compilation, installation, configuration, configuration examples
  180. and many more. Kea also features a Kea Messages Manual, which
  181. lists all possible messages Kea can print with a brief
  182. description for each of them. Both documents are typically
  183. available in various formats (txt, html, pdf) with your Kea
  184. distribution. The on-line version is available at
  185. http://kea.isc.org/docs/.</para>
  186. <para>
  187. Kea source code is documented in the Kea Developer's Guide. It's
  188. on-line version is available at http://kea.isc.org. Please
  189. follow Developer's Guide link.
  190. </para>
  191. <para>
  192. Kea project website is available at: http://kea.isc.org.
  193. </para>
  194. </refsect1>
  195. <refsect1>
  196. <title>MAILING LISTS AND SUPPORT</title>
  197. <para>
  198. There are two mailing lists available for Kea project. kea-users
  199. (kea-users at lists.isc.org) is intended for Kea users, while kea-dev
  200. (kea-dev at lists.isc.org) is intended for Kea developers, prospective
  201. contributors and other advanced users. Both lists are available at
  202. http://lists.isc.org. The community provides best effort type of support
  203. on both of those lists.
  204. </para>
  205. <para>
  206. ISC provides professional support for Kea services. See
  207. https://www.isc.org/kea/ for details.
  208. </para>
  209. </refsect1>
  210. <refsect1>
  211. <title>HISTORY</title>
  212. <para>
  213. The <command>kea-lfc</command> process was first coded in January
  214. 2015 by the ISC Kea/DHCP team.
  215. </para>
  216. </refsect1>
  217. <refsect1>
  218. <title>SEE ALSO</title>
  219. <para>
  220. <citerefentry>
  221. <refentrytitle>kea-dhcp4</refentrytitle>
  222. <manvolnum>8</manvolnum>
  223. </citerefentry>,
  224. <citerefentry>
  225. <refentrytitle>kea-dhcp6</refentrytitle>
  226. <manvolnum>8</manvolnum>
  227. </citerefentry>,
  228. <citerefentry>
  229. <refentrytitle>kea-dhcp-ddns</refentrytitle>
  230. <manvolnum>8</manvolnum>
  231. </citerefentry>,
  232. <citerefentry>
  233. <refentrytitle>kea-admin</refentrytitle>
  234. <manvolnum>8</manvolnum>
  235. </citerefentry>,
  236. <citerefentry>
  237. <refentrytitle>keactrl</refentrytitle>
  238. <manvolnum>8</manvolnum>
  239. </citerefentry>,
  240. <citerefentry>
  241. <refentrytitle>perfdhcp</refentrytitle>
  242. <manvolnum>8</manvolnum>
  243. </citerefentry>,
  244. <citetitle>Kea Administrator's Guide</citetitle>.
  245. </para>
  246. </refsect1>
  247. </refentry><!--
  248. - Local variables:
  249. - mode: sgml
  250. - End:
  251. -->