1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <!DOCTYPE refentry PUBLIC "-//Samba-Team//DTD DocBook V4.2-Based Variant V1.0//EN" "http://www.samba.org/samba/DTD/samba-doc">
3 <refentry id="tdbtool.8">
6 <refentrytitle>tdbtool</refentrytitle>
7 <manvolnum>8</manvolnum>
8 <refmiscinfo class="source">Samba</refmiscinfo>
9 <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10 <refmiscinfo class="version">3.2</refmiscinfo>
15 <refname>tdbtool</refname>
16 <refpurpose>manipulate the contents TDB files</refpurpose>
22 <command>tdbtool</command>
26 <command>tdbtool</command>
28 <replaceable>TDBFILE</replaceable>
30 <arg rep="repeat" choice="opt">
31 <replaceable>COMMANDS</replaceable>
38 <title>DESCRIPTION</title>
40 <para>This tool is part of the
41 <citerefentry><refentrytitle>samba</refentrytitle>
42 <manvolnum>1</manvolnum></citerefentry> suite.</para>
44 <para><command>tdbtool</command> a tool for displaying and
45 altering the contents of Samba TDB (Trivial DataBase) files. Each
46 of the commands listed below can be entered interactively or
47 provided on the command line.</para>
53 <title>COMMANDS</title>
58 <term><option>create</option>
59 <replaceable>TDBFILE</replaceable></term>
60 <listitem><para>Create a new database named
61 <replaceable>TDBFILE</replaceable>.
66 <term><option>open</option>
67 <replaceable>TDBFILE</replaceable></term>
68 <listitem><para>Open an existing database named
69 <replaceable>TDBFILE</replaceable>.
74 <term><option>erase</option></term>
75 <listitem><para>Erase the current database.
80 <term><option>dump</option></term>
81 <listitem><para>Dump the current database as strings.
86 <term><option>cdump</option></term>
87 <listitem><para>Dump the current database as connection records.
92 <term><option>keys</option></term>
93 <listitem><para>Dump the current database keys as strings.
98 <term><option>hexkeys</option></term>
99 <listitem><para>Dump the current database keys as hex values.
104 <term><option>info</option></term>
105 <listitem><para>Print summary information about the
111 <term><option>insert</option>
112 <replaceable>KEY</replaceable>
113 <replaceable>DATA</replaceable>
115 <listitem><para>Insert a record into the
121 <term><option>move</option>
122 <replaceable>KEY</replaceable>
123 <replaceable>TDBFILE</replaceable>
125 <listitem><para>Move a record from the
126 current database into <replaceable>TDBFILE</replaceable>.
131 <term><option>store</option>
132 <replaceable>KEY</replaceable>
133 <replaceable>DATA</replaceable>
135 <listitem><para>Store (replace) a record in the
141 <term><option>show</option>
142 <replaceable>KEY</replaceable>
144 <listitem><para>Show a record by key.
149 <term><option>delete</option>
150 <replaceable>KEY</replaceable>
152 <listitem><para>Delete a record by key.
157 <term><option>list</option>
159 <listitem><para>Print the current database hash table and free list.
164 <term><option>free</option>
166 <listitem><para>Print the current database and free list.
171 <term><option>!</option>
172 <replaceable>COMMAND</replaceable>
174 <listitem><para>Execute the given system command.
180 <option>first</option>
182 <listitem><para>Print the first record in the current database.
188 <option>next</option>
190 <listitem><para>Print the next record in the current database.
196 <option>quit</option>
198 <listitem><para>Exit <command>tdbtool</command>.
206 <title>CAVEATS</title>
207 <para>The contents of the Samba TDB files are private
208 to the implementation and should not be altered with
209 <command>tdbtool</command>.
214 <title>VERSION</title>
215 <para>This man page is correct for version 3.0.25 of the Samba suite.</para>
219 <title>AUTHOR</title>
221 <para> The original Samba software and related utilities were
222 created by Andrew Tridgell. Samba is now developed by the
223 Samba Team as an Open Source project similar to the way the
224 Linux kernel is developed.</para>