kea-admin.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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) 2014 Internet Systems Consortium, Inc. ("ISC")
  6. -
  7. - Permission to use, copy, modify, and/or distribute this software for any
  8. - purpose with or without fee is hereby granted, provided that the above
  9. - copyright notice and this permission notice appear in all copies.
  10. -
  11. - THE SOFTWARE IS PROVIDED "AS IS" AND ISC DISCLAIMS ALL WARRANTIES WITH
  12. - REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
  13. - AND FITNESS. IN NO EVENT SHALL ISC BE LIABLE FOR ANY SPECIAL, DIRECT,
  14. - INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
  15. - LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE
  16. - OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  17. - PERFORMANCE OF THIS SOFTWARE.
  18. -->
  19. <refentry>
  20. <refentryinfo>
  21. <date>Nov 5, 2014</date>
  22. </refentryinfo>
  23. <refmeta>
  24. <refentrytitle>kea-admin</refentrytitle>
  25. <manvolnum>8</manvolnum>
  26. <refmiscinfo>Kea</refmiscinfo>
  27. </refmeta>
  28. <refnamediv>
  29. <refname>kea-admin</refname>
  30. <refpurpose>Shell script for managing Kea databases</refpurpose>
  31. </refnamediv>
  32. <docinfo>
  33. <copyright>
  34. <year>2014</year>
  35. <holder>Internet Systems Consortium, Inc. ("ISC")</holder>
  36. </copyright>
  37. </docinfo>
  38. <refsynopsisdiv>
  39. <cmdsynopsis>
  40. <command>kea-admin</command>
  41. <arg>command</arg>
  42. <arg>backend</arg>
  43. <arg><option>-u <replaceable class="parameter">database username</replaceable></option></arg>
  44. <arg><option>-p <replaceable class="parameter">database password</replaceable></option></arg>
  45. <arg><option>-n <replaceable class="parameter">database name</replaceable></option></arg>
  46. <arg><option>-d <replaceable class="parameter">scripts directory</replaceable></option></arg>
  47. </cmdsynopsis>
  48. </refsynopsisdiv>
  49. <refsect1>
  50. <title>DESCRIPTION</title>
  51. <para>
  52. kea-admin is a shell script which offers database maintenance. In particular,
  53. it features database initialization, database version checking and
  54. database schema upgrade.
  55. </para>
  56. </refsect1>
  57. <refsect1>
  58. <title>OPTIONS</title>
  59. <variablelist>
  60. <varlistentry>
  61. <term><option><replaceable class="parameter">command</replaceable></option></term>
  62. <listitem>
  63. <para>
  64. Command to be issued to the servers. It can be one of the following:
  65. </para>
  66. <variablelist>
  67. <varlistentry>
  68. <term>lease-init</term>
  69. <listitem>
  70. <para>Initializes a new lease database. Useful during first Kea
  71. installation. The database is initialized to the latest version
  72. supported by the version of the software.</para>
  73. </listitem>
  74. </varlistentry>
  75. <varlistentry>
  76. <term>lease-version</term>
  77. <listitem>
  78. <para>Reports lease database version. This is not necessarily
  79. equal to Kea version as each backend has its own versioning
  80. scheme.</para>
  81. </listitem>
  82. </varlistentry>
  83. <varlistentry>
  84. <term>lease-upgrade</term>
  85. <listitem>
  86. <para>Conducts lease database upgrade. This is useful when
  87. migrating between old and new Kea versions.</para>
  88. </listitem>
  89. </varlistentry>
  90. </variablelist>
  91. </listitem>
  92. </varlistentry>
  93. <varlistentry>
  94. <term><option><replaceable class="parameter">backend</replaceable></option></term>
  95. <listitem>
  96. <para>
  97. Specifies backend type. Currently allowed backends are: memfile, mysql and
  98. pgsql.
  99. </para>
  100. </listitem>
  101. </varlistentry>
  102. <varlistentry>
  103. <term><option>-u|--user <replaceable class="parameter">username</replaceable></option></term>
  104. <listitem>
  105. <para>
  106. Specify the username when connecting to a database. If not specified,
  107. the default value of keatest is used.
  108. </para>
  109. </listitem>
  110. </varlistentry>
  111. <varlistentry>
  112. <term><option>-p|--password <replaceable class="parameter">password</replaceable></option></term>
  113. <listitem>
  114. <para>
  115. Specifies the password when connecting to a database. If not specified,
  116. the default value of keatest is used.
  117. </para>
  118. </listitem>
  119. </varlistentry>
  120. <varlistentry>
  121. <term><option>-n|--name <replaceable class="parameter">database-name</replaceable></option></term>
  122. <listitem>
  123. <para>
  124. Specifies the database name to connect to. If not specified,
  125. the default value of keatest is used.
  126. </para>
  127. </listitem>
  128. </varlistentry>
  129. <varlistentry>
  130. <term><option>-d|--directory <replaceable class="parameter">script-directory</replaceable></option></term>
  131. <listitem>
  132. <para>
  133. Used for override scripts directory. That script is used during upgrades,
  134. database initialization and possibly other operations. If not specified,
  135. the default value of (prefix)/share/kea/scripts/ is used.
  136. </para>
  137. </listitem>
  138. </varlistentry>
  139. </variablelist>
  140. </refsect1>
  141. <refsect1>
  142. <title>SEE ALSO</title>
  143. <para>
  144. <citerefentry>
  145. <refentrytitle>keactrl</refentrytitle>
  146. <manvolnum>8</manvolnum>
  147. </citerefentry>
  148. <citerefentry>
  149. <refentrytitle>kea-dhcp4</refentrytitle>
  150. <manvolnum>8</manvolnum>
  151. </citerefentry>
  152. <citerefentry>
  153. <refentrytitle>kea-dhcp6</refentrytitle>
  154. <manvolnum>8</manvolnum>
  155. </citerefentry>
  156. <citerefentry>
  157. <refentrytitle>kea-dhcp-ddns</refentrytitle>
  158. <manvolnum>8</manvolnum>
  159. </citerefentry>
  160. </para>
  161. </refsect1>
  162. </refentry>