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">
|
---|
4 |
|
---|
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">3.6</refmiscinfo>
|
---|
11 | </refmeta>
|
---|
12 |
|
---|
13 |
|
---|
14 | <refnamediv>
|
---|
15 | <refname>dbwrap_tool</refname>
|
---|
16 | <refpurpose>low level TDB/CTDB manipulation tool using the dbwrap interface</refpurpose>
|
---|
17 | </refnamediv>
|
---|
18 |
|
---|
19 | <refsynopsisdiv>
|
---|
20 | <cmdsynopsis>
|
---|
21 | <command>dbwrap_tool</command>
|
---|
22 | <arg choice="req"><database></arg>
|
---|
23 | <arg choice="req"><operation></arg>
|
---|
24 | <arg choice="opt"><key>
|
---|
25 | <arg choice="opt"><type>
|
---|
26 | <arg choice="opt"><value></arg>
|
---|
27 | </arg>
|
---|
28 | </arg>
|
---|
29 | </cmdsynopsis>
|
---|
30 | </refsynopsisdiv>
|
---|
31 |
|
---|
32 | <refsect1>
|
---|
33 | <title>DESCRIPTION</title>
|
---|
34 |
|
---|
35 | <para>This tool is part of the <citerefentry><refentrytitle>samba</refentrytitle>
|
---|
36 | <manvolnum>7</manvolnum></citerefentry> suite.</para>
|
---|
37 |
|
---|
38 | <para>The dbwrap_tool program is used to read and manipulate
|
---|
39 | TDB/CTDB databases using the dbwrap interface.</para>
|
---|
40 |
|
---|
41 | <para>The following database operations are available:
|
---|
42 | <itemizedlist>
|
---|
43 | <listitem><para>fetch: fetch a record</para></listitem>
|
---|
44 | <listitem><para>store: create or modify a record</para></listitem>
|
---|
45 | <listitem><para>delete: remove a record</para></listitem>
|
---|
46 | <listitem><para>erase: remove all records</para></listitem>
|
---|
47 | <listitem><para>listkeys: list all available records</para></listitem>
|
---|
48 | </itemizedlist>
|
---|
49 | </para>
|
---|
50 | <para>The following types are available:
|
---|
51 | <itemizedlist>
|
---|
52 | <listitem><para>int32: signed 32bit integer</para></listitem>
|
---|
53 | <listitem><para>uint32: unsigned 32bit integer</para></listitem>
|
---|
54 | <listitem><para>string: "hello world"</para></listitem>
|
---|
55 | </itemizedlist>
|
---|
56 | </para>
|
---|
57 | </refsect1>
|
---|
58 |
|
---|
59 | <refsect1>
|
---|
60 | <title>OPTIONS</title>
|
---|
61 |
|
---|
62 | <para>None.</para>
|
---|
63 | </refsect1>
|
---|
64 |
|
---|
65 | <refsect1>
|
---|
66 | <title>COMMANDS</title>
|
---|
67 | <refsect2>
|
---|
68 | <title>fetch</title>
|
---|
69 | <cmdsynopsis>
|
---|
70 | <command>dbwrap_tool</command> <database> fetch <key> <type>
|
---|
71 | </cmdsynopsis>
|
---|
72 | </refsect2>
|
---|
73 | <refsect2>
|
---|
74 | <title>store</title>
|
---|
75 | <cmdsynopsis>
|
---|
76 | <command>dbwrap_tool</command> <database> store <key> <type> <value>
|
---|
77 | </cmdsynopsis>
|
---|
78 | </refsect2>
|
---|
79 | <refsect2>
|
---|
80 | <title>delete</title>
|
---|
81 | <cmdsynopsis>
|
---|
82 | <command>dbwrap_tool</command> <database> delete <key>
|
---|
83 | </cmdsynopsis>
|
---|
84 | </refsect2>
|
---|
85 | <refsect2>
|
---|
86 | <title>erase</title>
|
---|
87 | <cmdsynopsis>
|
---|
88 | <command>dbwrap_tool</command> <database> erase
|
---|
89 | </cmdsynopsis>
|
---|
90 | </refsect2>
|
---|
91 | <refsect2>
|
---|
92 | <title>listkeys</title>
|
---|
93 | <cmdsynopsis>
|
---|
94 | <command>dbwrap_tool</command> <database> listkeys
|
---|
95 | </cmdsynopsis>
|
---|
96 | </refsect2>
|
---|
97 | </refsect1>
|
---|
98 |
|
---|
99 | <refsect1>
|
---|
100 | <title>EXAMPLES</title>
|
---|
101 | <variablelist>
|
---|
102 | <varlistentry><term>List all keys from winbindd_idmap.tdb</term>
|
---|
103 | <listitem><para><command>dbwrap_tool</command> winbindd_idmap.tdb listkeys</para></listitem>
|
---|
104 | </varlistentry>
|
---|
105 | <varlistentry><term>Fetch record with key "USER HWM" as uint32</term>
|
---|
106 | <listitem><para><command>dbwrap_tool</command> winbindd_idmap.tdb fetch "USER HWM" uint32</para></listitem>
|
---|
107 | </varlistentry>
|
---|
108 | <varlistentry><term>Remove record with key "USER HWM"</term>
|
---|
109 | <listitem><para><command>dbwrap_tool</command> winbindd_idmap.tdb remove "USER HWM"</para></listitem>
|
---|
110 | </varlistentry>
|
---|
111 | <varlistentry><term>Store and overwrite record "USER HWM" with value 214</term>
|
---|
112 | <listitem><para><command>dbwrap_tool</command> winbindd_idmap.tdb store "USER HWM" uint32 214</para></listitem>
|
---|
113 | </varlistentry>
|
---|
114 | </variablelist>
|
---|
115 | </refsect1>
|
---|
116 |
|
---|
117 | <refsect1>
|
---|
118 | <title>NOTES</title>
|
---|
119 |
|
---|
120 | <para>Use with caution!</para>
|
---|
121 | </refsect1>
|
---|
122 |
|
---|
123 |
|
---|
124 | <refsect1>
|
---|
125 | <title>VERSION</title>
|
---|
126 |
|
---|
127 | <para>This man page is correct for version 3 of the Samba suite.</para>
|
---|
128 | </refsect1>
|
---|
129 |
|
---|
130 | <refsect1>
|
---|
131 | <title>SEE ALSO</title>
|
---|
132 | <para><citerefentry><refentrytitle>smbd</refentrytitle>
|
---|
133 | <manvolnum>8</manvolnum></citerefentry>, <citerefentry><refentrytitle>samba</refentrytitle>
|
---|
134 | <manvolnum>7</manvolnum></citerefentry></para>
|
---|
135 | </refsect1>
|
---|
136 |
|
---|
137 | <refsect1>
|
---|
138 | <title>AUTHOR</title>
|
---|
139 |
|
---|
140 | <para>The original Samba software and related utilities
|
---|
141 | were created by Andrew Tridgell. Samba is now developed
|
---|
142 | by the Samba Team as an Open Source project similar
|
---|
143 | to the way the Linux kernel is developed.</para>
|
---|
144 |
|
---|
145 | <para>The dbwrap_tool manpage was written by Bjoern Baumbach.</para>
|
---|
146 | </refsect1>
|
---|
147 |
|
---|
148 | </refentry>
|
---|