1DBWRAP_TOOL(1)            System Administration tools           DBWRAP_TOOL(1)
2
3
4

NAME

6       dbwrap_tool - low level TDB/CTDB manipulation tool using the dbwrap
7       interface
8

SYNOPSIS

10       dbwrap_tool {<database>} {<operation>} [<key> [<type> [<value>] ]]
11

DESCRIPTION

13       This tool is part of the samba(7) suite.
14
15       The dbwrap_tool program is used to read and manipulate TDB/CTDB
16       databases using the dbwrap interface.
17
18       The following database operations are available:
19
20       ·   fetch: fetch a record
21
22       ·   store: create or modify a record
23
24       ·   delete: remove a record
25
26       ·   erase: remove all records
27
28       ·   listkeys: list all available records
29
30
31       The following types are available:
32
33       ·   int32: signed 32bit integer
34
35       ·   uint32: unsigned 32bit integer
36
37       ·   string: "hello world"
38
39

OPTIONS

41       None.
42

COMMANDS

44   fetch
45       dbwrap_tool <database> fetch <key> <type>
46
47   store
48       dbwrap_tool <database> store <key> <type> <value>
49
50   delete
51       dbwrap_tool <database> delete <key>
52
53   erase
54       dbwrap_tool <database> erase
55
56   listkeys
57       dbwrap_tool <database> listkeys
58

EXAMPLES

60       List all keys from winbindd_idmap.tdb
61           dbwrap_tool winbindd_idmap.tdb listkeys
62
63       Fetch record with key "USER HWM" as uint32
64           dbwrap_tool winbindd_idmap.tdb fetch "USER HWM" uint32
65
66       Remove record with key "USER HWM"
67           dbwrap_tool winbindd_idmap.tdb remove "USER HWM"
68
69       Store and overwrite record "USER HWM" with value 214
70           dbwrap_tool winbindd_idmap.tdb store "USER HWM" uint32 214
71

NOTES

73       Use with caution!
74

VERSION

76       This man page is correct for version 3 of the Samba suite.
77

SEE ALSO

79       smbd(8), samba(7)
80

AUTHOR

82       The original Samba software and related utilities were created by
83       Andrew Tridgell. Samba is now developed by the Samba Team as an Open
84       Source project similar to the way the Linux kernel is developed.
85
86       The dbwrap_tool manpage was written by Bjoern Baumbach.
87
88
89
90Samba 3.6                         04/11/2016                    DBWRAP_TOOL(1)
Impressum