source: vendor/3.6.23/docs/manpages/dbwrap_tool.1

Last change on this file was 860, checked in by Silvan Scherrer, 11 years ago

Samba 3.6: updated vendor to latest version

File size: 3.8 KB
Line 
1'\" t
2.\" Title: dbwrap_tool
3.\" Author: [see the "AUTHOR" section]
4.\" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
5.\" Date: 09/18/2013
6.\" Manual: System Administration tools
7.\" Source: Samba 3.6
8.\" Language: English
9.\"
10.TH "DBWRAP_TOOL" "1" "09/18/2013" "Samba 3\&.6" "System Administration tools"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
30.SH "NAME"
31dbwrap_tool \- low level TDB/CTDB manipulation tool using the dbwrap interface
32.SH "SYNOPSIS"
33.HP \w'\ 'u
34dbwrap_tool {<database>} {<operation>} [<key>\ [<type>\ [<value>]\ ]]
35.SH "DESCRIPTION"
36.PP
37This tool is part of the
38\fBsamba\fR(7)
39suite\&.
40.PP
41The dbwrap_tool program is used to read and manipulate TDB/CTDB databases using the dbwrap interface\&.
42.PP
43The following database operations are available:
44.sp
45.RS 4
46.ie n \{\
47\h'-04'\(bu\h'+03'\c
48.\}
49.el \{\
50.sp -1
51.IP \(bu 2.3
52.\}
53fetch: fetch a record
54.RE
55.sp
56.RS 4
57.ie n \{\
58\h'-04'\(bu\h'+03'\c
59.\}
60.el \{\
61.sp -1
62.IP \(bu 2.3
63.\}
64store: create or modify a record
65.RE
66.sp
67.RS 4
68.ie n \{\
69\h'-04'\(bu\h'+03'\c
70.\}
71.el \{\
72.sp -1
73.IP \(bu 2.3
74.\}
75delete: remove a record
76.RE
77.sp
78.RS 4
79.ie n \{\
80\h'-04'\(bu\h'+03'\c
81.\}
82.el \{\
83.sp -1
84.IP \(bu 2.3
85.\}
86erase: remove all records
87.RE
88.sp
89.RS 4
90.ie n \{\
91\h'-04'\(bu\h'+03'\c
92.\}
93.el \{\
94.sp -1
95.IP \(bu 2.3
96.\}
97listkeys: list all available records
98.RE
99.sp
100.RE
101.PP
102The following types are available:
103.sp
104.RS 4
105.ie n \{\
106\h'-04'\(bu\h'+03'\c
107.\}
108.el \{\
109.sp -1
110.IP \(bu 2.3
111.\}
112int32: signed 32bit integer
113.RE
114.sp
115.RS 4
116.ie n \{\
117\h'-04'\(bu\h'+03'\c
118.\}
119.el \{\
120.sp -1
121.IP \(bu 2.3
122.\}
123uint32: unsigned 32bit integer
124.RE
125.sp
126.RS 4
127.ie n \{\
128\h'-04'\(bu\h'+03'\c
129.\}
130.el \{\
131.sp -1
132.IP \(bu 2.3
133.\}
134string: "hello world"
135.RE
136.sp
137.RE
138.SH "OPTIONS"
139.PP
140None\&.
141.SH "COMMANDS"
142.SS "fetch"
143.HP \w'\ 'u
144dbwrap_tool <database> fetch <key> <type>
145
146.SS "store"
147.HP \w'\ 'u
148dbwrap_tool <database> store <key> <type> <value>
149
150.SS "delete"
151.HP \w'\ 'u
152dbwrap_tool <database> delete <key>
153
154.SS "erase"
155.HP \w'\ 'u
156dbwrap_tool <database> erase
157
158.SS "listkeys"
159.HP \w'\ 'u
160dbwrap_tool <database> listkeys
161
162.SH "EXAMPLES"
163.PP
164List all keys from winbindd_idmap\&.tdb
165.RS 4
166dbwrap_tool
167winbindd_idmap\&.tdb listkeys
168.RE
169.PP
170Fetch record with key "USER HWM" as uint32
171.RS 4
172dbwrap_tool
173winbindd_idmap\&.tdb fetch "USER HWM" uint32
174.RE
175.PP
176Remove record with key "USER HWM"
177.RS 4
178dbwrap_tool
179winbindd_idmap\&.tdb remove "USER HWM"
180.RE
181.PP
182Store and overwrite record "USER HWM" with value 214
183.RS 4
184dbwrap_tool
185winbindd_idmap\&.tdb store "USER HWM" uint32 214
186.RE
187.SH "NOTES"
188.PP
189Use with caution!
190.SH "VERSION"
191.PP
192This man page is correct for version 3 of the Samba suite\&.
193.SH "SEE ALSO"
194.PP
195\fBsmbd\fR(8),
196\fBsamba\fR(7)
197.SH "AUTHOR"
198.PP
199The original Samba software and related utilities were created by Andrew Tridgell\&. Samba is now developed by the Samba Team as an Open Source project similar to the way the Linux kernel is developed\&.
200.PP
201The dbwrap_tool manpage was written by Bjoern Baumbach\&.
Note: See TracBrowser for help on using the repository browser.