docs: document the command line options in dbwrap_tool(1)
[Samba/gebeck_regimport.git] / docs-xml / manpages / dbwrap_tool.1.xml
blobf4a638881c09b71c40c2fbbac761e09e2c719731
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="dbwrap_tool.1">
5 <refmeta>
6         <refentrytitle>dbwrap_tool</refentrytitle>
7         <manvolnum>1</manvolnum>
8         <refmiscinfo class="source">Samba</refmiscinfo>
9         <refmiscinfo class="manual">System Administration tools</refmiscinfo>
10         <refmiscinfo class="version">4.0</refmiscinfo>
11 </refmeta>
14 <refnamediv>
15         <refname>dbwrap_tool</refname>
16         <refpurpose>low level TDB/CTDB manipulation tool using the dbwrap interface</refpurpose>
17 </refnamediv>
19 <refsynopsisdiv>
20         <cmdsynopsis>
21                 <command>dbwrap_tool</command>
22                 <arg choice="opt">-d &lt;debug level&gt;</arg>
23                 <arg choice="opt">-s &lt;config file&gt;</arg>
24                 <arg choice="opt">-l &lt;log file base&gt;</arg>
25                 <arg choice="opt">-V</arg>
26                 <arg choice="opt">--option=&lt;name&gt;=&lt;value&gt;</arg>
27                 <arg choice="req">&lt;database&gt;</arg>
28                 <arg choice="req">&lt;operation&gt;</arg>
29                 <arg choice="opt">&lt;key&gt;
30                         <arg choice="opt">&lt;type&gt;
31                                 <arg choice="opt">&lt;value&gt;</arg>
32                         </arg>
33                 </arg>
34         </cmdsynopsis>
35 </refsynopsisdiv>
37 <refsect1>
38         <title>DESCRIPTION</title>
40         <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
41         <manvolnum>7</manvolnum></citerefentry> suite.</para>
43         <para>The dbwrap_tool program is used to read and manipulate
44         TDB/CTDB databases using the dbwrap interface.</para>
46         <para>The following database operations are available:
47         <itemizedlist>
48                 <listitem><para>fetch: fetch a record</para></listitem>
49                 <listitem><para>store: create or modify a record</para></listitem>
50                 <listitem><para>delete: remove a record</para></listitem>
51                 <listitem><para>erase: remove all records</para></listitem>
52                 <listitem><para>listkeys: list all available records</para></listitem>
53                 <listitem><para>listwatchers: list processes, which are waiting for changes in a record</para></listitem>
54         </itemizedlist>
55         </para>
56         <para>The following types are available:
57         <itemizedlist>
58                 <listitem><para>int32: signed 32bit integer</para></listitem>
59                 <listitem><para>uint32: unsigned 32bit integer</para></listitem>
60                 <listitem><para>string: "hello world"</para></listitem>
61                 <listitem><para>hex: hex strings like "68656C6C6F20776F726C6400" ("hello world")</para></listitem>
62         </itemizedlist>
63         </para>
64 </refsect1>
66 <refsect1>
67         <title>OPTIONS</title>
69         <variablelist>
70                 &popt.common.samba.client;
71                 &stdarg.help;
72         </variablelist>
73 </refsect1>
75 <refsect1>
76         <title>COMMANDS</title>
77         <refsect2>
78                 <title>fetch</title>
79                 <cmdsynopsis>
80                         <command>dbwrap_tool</command> &lt;database&gt; fetch &lt;key&gt; &lt;type&gt;
81                 </cmdsynopsis>
82         </refsect2>
83         <refsect2>
84                 <title>store</title>
85                 <cmdsynopsis>
86                         <command>dbwrap_tool</command> &lt;database&gt; store &lt;key&gt; &lt;type&gt; &lt;value&gt;
87                 </cmdsynopsis>
88         </refsect2>
89         <refsect2>
90                 <title>delete</title>
91                 <cmdsynopsis>
92                         <command>dbwrap_tool</command> &lt;database&gt; delete &lt;key&gt;
93                 </cmdsynopsis>
94         </refsect2>
95         <refsect2>
96                 <title>erase</title>
97                 <cmdsynopsis>
98                         <command>dbwrap_tool</command> &lt;database&gt; erase </cmdsynopsis>
99         </refsect2>
100         <refsect2>
101                 <title>listkeys</title>
102                 <cmdsynopsis>
103                         <command>dbwrap_tool</command> &lt;database&gt; listkeys
104                 </cmdsynopsis>
105         </refsect2>
106         <refsect2>
107                 <title>listwatchers</title>
108                 <cmdsynopsis>
109                         <command>dbwrap_tool</command> &lt;database&gt; listwatchers
110                 </cmdsynopsis>
111         </refsect2>
112 </refsect1>
114 <refsect1>
115         <title>EXAMPLES</title>
116         <variablelist>
117                 <varlistentry><term>List all keys from winbindd_idmap.tdb</term>
118                         <listitem><para><command>dbwrap_tool</command> winbindd_idmap.tdb listkeys</para></listitem>
119                 </varlistentry>
120                 <varlistentry><term>Fetch record with key "USER HWM" as uint32</term>
121                         <listitem><para><command>dbwrap_tool</command> winbindd_idmap.tdb fetch "USER HWM" uint32</para></listitem>
122                 </varlistentry>
123                 <varlistentry><term>Remove record with key "USER HWM"</term>
124                         <listitem><para><command>dbwrap_tool</command> winbindd_idmap.tdb remove "USER HWM"</para></listitem>
125                 </varlistentry>
126                 <varlistentry><term>Store and overwrite record "USER HWM" with value 214</term>
127                         <listitem><para>uint32: <command>dbwrap_tool</command> winbindd_idmap.tdb store "USER HWM" uint32 214</para></listitem>
128                         <listitem><para>hex: <command>dbwrap_tool</command> winbindd_idmap.tdb store "USER HWM" hex D6000000</para></listitem>
129                 </varlistentry>
130         </variablelist>
131 </refsect1>
133 <refsect1>
134         <title>NOTES</title>
136         <para>Use with caution!</para>
137 </refsect1>
140 <refsect1>
141         <title>VERSION</title>
143         <para>This man page is correct for version 3 of the Samba suite.</para>
144 </refsect1>
146 <refsect1>
147         <title>SEE ALSO</title>
148         <para><citerefentry><refentrytitle>smbd</refentrytitle>
149         <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>samba</refentrytitle>
150         <manvolnum>7</manvolnum></citerefentry></para>
151 </refsect1>
153 <refsect1>
154         <title>AUTHOR</title>
156         <para>The original Samba software and related utilities
157         were created by Andrew Tridgell. Samba is now developed
158         by the Samba Team as an Open Source project similar
159         to the way the Linux kernel is developed.</para>
161         <para>The dbwrap_tool manpage was written by Bjoern Baumbach.</para>
162 </refsect1>
164 </refentry>