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>
12 <refname>tdbtool</refname>
13 <refpurpose>manipulate the contents TDB files</refpurpose>
19 <command>tdbtool</command>
23 <command>tdbtool</command>
25 <replaceable>TDBFILE</replaceable>
27 <arg rep="repeat" choice="opt">
28 <replaceable>COMMANDS</replaceable>
35 <title>DESCRIPTION</title>
37 <para>This tool is part of the
38 <citerefentry><refentrytitle>samba</refentrytitle>
39 <manvolnum>1</manvolnum></citerefentry> suite.</para>
41 <para><command>tdbtool</command> a tool for displaying and
42 altering the contents of Samba TDB (Trivial DataBase) files. Each
43 of the commands listed below can be entered interactively or
44 provided on the command line.</para>
50 <title>COMMANDS</title>
55 <term><option>create</option>
56 <replaceable>TDBFILE</replaceable></term>
57 <listitem><para>Create a new database named
58 <replaceable>TDBFILE</replaceable>.
63 <term><option>open</option>
64 <replaceable>TDBFILE</replaceable></term>
65 <listitem><para>Open an existing database named
66 <replaceable>TDBFILE</replaceable>.
71 <term><option>erase</option></term>
72 <listitem><para>Erase the current database.
77 <term><option>dump</option></term>
78 <listitem><para>Dump the current database as strings.
83 <term><option>cdump</option></term>
84 <listitem><para>Dump the current database as connection records.
89 <term><option>keys</option></term>
90 <listitem><para>Dump the current database keys as strings.
95 <term><option>hexkeys</option></term>
96 <listitem><para>Dump the current database keys as hex values.
101 <term><option>info</option></term>
102 <listitem><para>Print summary information about the
108 <term><option>insert</option>
109 <replaceable>KEY</replaceable>
110 <replaceable>DATA</replaceable>
112 <listitem><para>Insert a record into the
118 <term><option>move</option>
119 <replaceable>KEY</replaceable>
120 <replaceable>TDBFILE</replaceable>
122 <listitem><para>Move a record from the
123 current database into <replaceable>TDBFILE</replaceable>.
128 <term><option>store</option>
129 <replaceable>KEY</replaceable>
130 <replaceable>DATA</replaceable>
132 <listitem><para>Store (replace) a record in the
138 <term><option>show</option>
139 <replaceable>KEY</replaceable>
141 <listitem><para>Show a record by key.
146 <term><option>delete</option>
147 <replaceable>KEY</replaceable>
149 <listitem><para>Delete a record by key.
154 <term><option>list</option>
156 <listitem><para>Print the current database hash table and free list.
161 <term><option>free</option>
163 <listitem><para>Print the current database and free list.
168 <term><option>!</option>
169 <replaceable>COMMAND</replaceable>
171 <listitem><para>Execute the given system command.
177 <option>first</option>
179 <listitem><para>Print the first record in the current database.
185 <option>next</option>
187 <listitem><para>Print the next record in the current database.
193 <option>quit</option>
195 <listitem><para>Exit <command>tdbtool</command>.
203 <title>CAVEATS</title>
204 <para>The contents of the Samba TDB files are private
205 to the implementation and should not be altered with
206 <command>tdbtool</command>.
211 <title>VERSION</title>
212 <para>This man page is correct for version 3.0.25 of the Samba suite.</para>
216 <title>AUTHOR</title>
218 <para> The original Samba software and related utilities were
219 created by Andrew Tridgell. Samba is now developed by the
220 Samba Team as an Open Source project similar to the way the
221 Linux kernel is developed.</para>