1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
3 <refentry id="ntdbtool.8">
6 <refentrytitle>ntdbtool</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">4.1</refmiscinfo>
15 <refname>ntdbtool</refname>
16 <refpurpose>manipulate the contents NTDB files</refpurpose>
22 <command>ntdbtool</command>
24 <replaceable>NTDBFILE</replaceable>
26 <arg rep="repeat" choice="opt">
27 <replaceable>COMMANDS</replaceable>
34 <title>DESCRIPTION</title>
36 <para>This tool is part of the
37 <citerefentry><refentrytitle>samba</refentrytitle>
38 <manvolnum>1</manvolnum></citerefentry> suite.</para>
40 <para><command>ntdbtool</command> a tool for displaying and
41 altering the contents of Samba NTDB (New Trivial DataBase) files. Each
42 of the commands listed below can be entered interactively or
43 provided on the command line.</para>
49 <title>COMMANDS</title>
54 <term><option>create</option>
55 <replaceable>NTDBFILE</replaceable></term>
56 <listitem><para>Create a new database named
57 <replaceable>NTDBFILE</replaceable>.
62 <term><option>open</option>
63 <replaceable>NTDBFILE</replaceable></term>
64 <listitem><para>Open an existing database named
65 <replaceable>NTDBFILE</replaceable>.
70 <term><option>erase</option></term>
71 <listitem><para>Erase the current database.
76 <term><option>dump</option></term>
77 <listitem><para>Dump the current database as strings.
82 <term><option>cdump</option></term>
83 <listitem><para>Dump the current database as connection records.
88 <term><option>keys</option></term>
89 <listitem><para>Dump the current database keys as strings.
94 <term><option>hexkeys</option></term>
95 <listitem><para>Dump the current database keys as hex values.
100 <term><option>info</option></term>
101 <listitem><para>Print summary information about the
107 <term><option>insert</option>
108 <replaceable>KEY</replaceable>
109 <replaceable>DATA</replaceable>
111 <listitem><para>Insert a record into the
117 <term><option>move</option>
118 <replaceable>KEY</replaceable>
119 <replaceable>NTDBFILE</replaceable>
121 <listitem><para>Move a record from the
122 current database into <replaceable>NTDBFILE</replaceable>.
127 <term><option>store</option>
128 <replaceable>KEY</replaceable>
129 <replaceable>DATA</replaceable>
131 <listitem><para>Store (replace) a record in the
137 <term><option>show</option>
138 <replaceable>KEY</replaceable>
140 <listitem><para>Show a record by key.
145 <term><option>delete</option>
146 <replaceable>KEY</replaceable>
148 <listitem><para>Delete a record by key.
153 <term><option>list</option>
155 <listitem><para>Print the current database hash table and free list.
160 <term><option>free</option>
162 <listitem><para>Print the current database and free list.
167 <term><option>!</option>
168 <replaceable>COMMAND</replaceable>
170 <listitem><para>Execute the given system command.
176 <option>first</option>
178 <listitem><para>Print the first record in the current database.
184 <option>next</option>
186 <listitem><para>Print the next record in the current database.
192 <option>check</option>
194 <listitem><para>Check the integrity of the current database.
200 <option>repack</option>
202 <listitem><para>Repack a database using a temporary file to remove fragmentation.
208 <option>quit</option>
210 <listitem><para>Exit <command>ntdbtool</command>.
218 <title>SEE ALSO</title>
226 <title>CAVEATS</title>
227 <para>The contents of the Samba NTDB files are private
228 to the implementation and should not be altered with
229 <command>ntdbtool</command>.
234 <title>VERSION</title>
235 <para>This man page is correct for version 4.0 of the Samba suite.</para>
239 <title>AUTHOR</title>
241 <para> The original Samba software and related utilities were
242 created by Andrew Tridgell. Samba is now developed by the
243 Samba Team as an Open Source project similar to the way the
244 Linux kernel is developed.</para>