s3:smbd: s/EVENT_FD/TEVENT_FD
[Samba/gebeck_regimport.git] / docs-xml / manpages / dbwrap_tool.1.xml
blob59ef968b978d4fb3df20fc13073d2af9e8d3c1ab
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">--persistent</arg>
23                 <arg choice="opt">-d &lt;debug level&gt;</arg>
24                 <arg choice="opt">-s &lt;config file&gt;</arg>
25                 <arg choice="opt">-l &lt;log file base&gt;</arg>
26                 <arg choice="opt">-V</arg>
27                 <arg choice="opt">--option=&lt;name&gt;=&lt;value&gt;</arg>
28                 <arg choice="req">&lt;database&gt;</arg>
29                 <arg choice="req">&lt;operation&gt;</arg>
30                 <arg choice="opt">&lt;key&gt;
31                         <arg choice="opt">&lt;type&gt;
32                                 <arg choice="opt">&lt;value&gt;</arg>
33                         </arg>
34                 </arg>
35         </cmdsynopsis>
36 </refsynopsisdiv>
38 <refsect1>
39         <title>DESCRIPTION</title>
41         <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
42         <manvolnum>7</manvolnum></citerefentry> suite.</para>
44         <para>The dbwrap_tool program is used to read and manipulate
45         TDB/CTDB databases using the dbwrap interface.</para>
47         <para>The following database operations are available:
48         <itemizedlist>
49                 <listitem><para>fetch: fetch a record</para></listitem>
50                 <listitem><para>store: create or modify a record</para></listitem>
51                 <listitem><para>delete: remove a record</para></listitem>
52                 <listitem><para>erase: remove all records</para></listitem>
53                 <listitem><para>listkeys: list all available records</para></listitem>
54                 <listitem><para>listwatchers: list processes, which are waiting for changes in a record</para></listitem>
55         </itemizedlist>
56         </para>
57         <para>The following types are available:
58         <itemizedlist>
59                 <listitem><para>int32: signed 32bit integer</para></listitem>
60                 <listitem><para>uint32: unsigned 32bit integer</para></listitem>
61                 <listitem><para>string: "hello world"</para></listitem>
62                 <listitem><para>hex: hex strings like "68656C6C6F20776F726C6400" ("hello world")</para></listitem>
63         </itemizedlist>
64         </para>
65 </refsect1>
67 <refsect1>
68         <title>OPTIONS</title>
70         <variablelist>
71                 <varlistentry>
72                         <term>--persistent</term>
73                         <listitem><para>Open the database as a persistent database.
74                         If this option is not specified, the database is opened as
75                         non-persistent.
76                         </para></listitem>
77                 </varlistentry>
78                 &popt.common.samba.client;
79                 &stdarg.help;
80         </variablelist>
81 </refsect1>
83 <refsect1>
84         <title>COMMANDS</title>
85         <refsect2>
86                 <title>fetch</title>
87                 <cmdsynopsis>
88                         <command>dbwrap_tool</command> &lt;database&gt; fetch &lt;key&gt; &lt;type&gt;
89                 </cmdsynopsis>
90         </refsect2>
91         <refsect2>
92                 <title>store</title>
93                 <cmdsynopsis>
94                         <command>dbwrap_tool</command> &lt;database&gt; store &lt;key&gt; &lt;type&gt; &lt;value&gt;
95                 </cmdsynopsis>
96         </refsect2>
97         <refsect2>
98                 <title>delete</title>
99                 <cmdsynopsis>
100                         <command>dbwrap_tool</command> &lt;database&gt; delete &lt;key&gt;
101                 </cmdsynopsis>
102         </refsect2>
103         <refsect2>
104                 <title>erase</title>
105                 <cmdsynopsis>
106                         <command>dbwrap_tool</command> &lt;database&gt; erase </cmdsynopsis>
107         </refsect2>
108         <refsect2>
109                 <title>listkeys</title>
110                 <cmdsynopsis>
111                         <command>dbwrap_tool</command> &lt;database&gt; listkeys
112                 </cmdsynopsis>
113         </refsect2>
114         <refsect2>
115                 <title>listwatchers</title>
116                 <cmdsynopsis>
117                         <command>dbwrap_tool</command> &lt;database&gt; listwatchers
118                 </cmdsynopsis>
119         </refsect2>
120 </refsect1>
122 <refsect1>
123         <title>EXAMPLES</title>
124         <variablelist>
125                 <varlistentry><term>List all keys from winbindd_idmap.tdb</term>
126                         <listitem><para><command>dbwrap_tool</command> --persistent winbindd_idmap.tdb listkeys</para></listitem>
127                 </varlistentry>
128                 <varlistentry><term>Fetch record with key "USER HWM" as uint32</term>
129                         <listitem><para><command>dbwrap_tool</command> --persistent winbindd_idmap.tdb fetch "USER HWM" uint32</para></listitem>
130                 </varlistentry>
131                 <varlistentry><term>Remove record with key "USER HWM"</term>
132                         <listitem><para><command>dbwrap_tool</command> --persistent winbindd_idmap.tdb remove "USER HWM"</para></listitem>
133                 </varlistentry>
134                 <varlistentry><term>Store and overwrite record "USER HWM" with value 214</term>
135                         <listitem><para>uint32: <command>dbwrap_tool</command> --persistent winbindd_idmap.tdb store "USER HWM" uint32 214</para></listitem>
136                         <listitem><para>hex: <command>dbwrap_tool</command> --persistent winbindd_idmap.tdb store "USER HWM" hex D6000000</para></listitem>
137                 </varlistentry>
138         </variablelist>
139 </refsect1>
141 <refsect1>
142         <title>NOTES</title>
144         <para>Use with caution!</para>
145 </refsect1>
148 <refsect1>
149         <title>VERSION</title>
151         <para>This man page is correct for version 3 of the Samba suite.</para>
152 </refsect1>
154 <refsect1>
155         <title>SEE ALSO</title>
156         <para><citerefentry><refentrytitle>smbd</refentrytitle>
157         <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>samba</refentrytitle>
158         <manvolnum>7</manvolnum></citerefentry></para>
159 </refsect1>
161 <refsect1>
162         <title>AUTHOR</title>
164         <para>The original Samba software and related utilities
165         were created by Andrew Tridgell. Samba is now developed
166         by the Samba Team as an Open Source project similar
167         to the way the Linux kernel is developed.</para>
169         <para>The dbwrap_tool manpage was written by Bjoern Baumbach.</para>
170 </refsect1>
172 </refentry>