]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3803] Updated kea guide and kea-admin man pages for lease-dump
authorThomas Markwalder <tmark@isc.org>
Wed, 27 May 2015 11:22:16 +0000 (07:22 -0400)
committerThomas Markwalder <tmark@isc.org>
Wed, 27 May 2015 11:22:16 +0000 (07:22 -0400)
doc/guide/admin.xml
src/bin/admin/kea-admin.xml

index 704f76e34f24fe1fd740809afaafdd31dc617edc..30753d3d82c5a3541354ceca694c3712dd4979f1 100644 (file)
             upgrading Kea.
           </simpara>
         </listitem>
+
+        <listitem>
+          <simpara>
+            <command>lease-dump</command> &mdash;
+            Dumps the contents of the lease database (for MySQL or PostgreSQL
+            backends) to CSV text file. The first line of the file contains
+            the column names.
+          </simpara>
+        </listitem>
       </itemizedlist>
 
       <command>backend</command> specifies the backend type. Currently
index e08c190954e2e52470241a2cd702f6ffd68ccad4..24a4ba18cbb8214567529de5bbede1ea07222109 100644 (file)
@@ -49,6 +49,8 @@
       <arg><option>-p <replaceable class="parameter">database password</replaceable></option></arg>
       <arg><option>-n <replaceable class="parameter">database name</replaceable></option></arg>
       <arg><option>-d <replaceable class="parameter">scripts directory</replaceable></option></arg>
+      <arg><option>-4 | -6</option></arg>
+      <arg><option>-o <replaceable class="parameter">output file</replaceable></option></arg>
     </cmdsynopsis>
   </refsynopsisdiv>
 
@@ -56,7 +58,7 @@
     <title>DESCRIPTION</title>
     <para>
       kea-admin is a shell script which offers database maintenance. In particular,
-      it features database initialization, database version checking and 
+      it features database initialization, database version checking and
       database schema upgrade.
     </para>
   </refsect1>
             </varlistentry>
           </variablelist>
 
+            <varlistentry>
+              <term>lease-dump</term>
+              <listitem>
+                <para>Dumps the contents of the lease database (MySQL and PostgreSQL
+                backends) to text file. The content of the file consists of comma-separated-values
+                (CSV) where each line in the file contains all of the values for a single lease.
+                The first line of file is a header line containing the column names.</para>
+              </listitem>
+            </varlistentry>
+
         </listitem>
       </varlistentry>
 
         </listitem>
       </varlistentry>
 
+      <varlistentry>
+        <term><option>-o|--output <replaceable class="parameter">output_file</replaceable></option></term>
+        <listitem>
+          <para>
+            Required for lease-dump, Specifies the file to which the lease data will be dumped.
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>-4</option></term>
+        <listitem>
+          <para>
+            Directs kea-admin to lease-dump the DHCPv4 leases. Incompatible with the -6 option.
+          </para>
+        </listitem>
+      </varlistentry>
+
+      <varlistentry>
+        <term><option>-6</option></term>
+        <listitem>
+          <para>
+            Directs kea-admin to lease-dump the DHCPv6 leases. Incompatible with the -4 option.
+          </para>
+        </listitem>
+      </varlistentry>
+
     </variablelist>
 
   </refsect1>