dbwrap_tool — low level TDB/CTDB manipulation tool using the dbwrap interface
dbwrap_tool
[--persistent] [--non-persistent] [-d <debug level>] [-s <config file>] [-l <log file base>] [-V] [--option=<name>=<value>] {<database>} {<operation>} [<key>
[<type>
[<value>]]]
This tool is part of the samba(7) suite.
The dbwrap_tool program is used to read and manipulate TDB/CTDB databases using the dbwrap interface.
The following database operations are available:
fetch: fetch a record
store: create or modify a record
delete: remove a record
exists: test for existence of a record
erase: remove all records
listkeys: list all available records
listwatchers: list processes, which are waiting for changes in a record
The following types are available:
int32: signed 32bit integer
uint32: unsigned 32bit integer
string: "hello world"
hex: hex strings like "68656C6C6F20776F726C6400" ("hello world")
Open the database as a persistent database.
Exactly one of --persistent and --non-persistent must be specified.
Open the database as a non-persistent database.
Caveat: opening a database as non-persistent when there is currently no other opener will wipe the database.
Exactly one of --persistent and --non-persistent must be specified.
dbwrap_tool
--persistent winbindd_idmap.tdb listkeys
dbwrap_tool
--persistent winbindd_idmap.tdb fetch "USER HWM" uint32
dbwrap_tool
--persistent winbindd_idmap.tdb remove "USER HWM"
uint32: dbwrap_tool
--persistent winbindd_idmap.tdb store "USER HWM" uint32 214
hex: dbwrap_tool
--persistent winbindd_idmap.tdb store "USER HWM" hex D6000000