DBWRAP_TOOL(1) | System Administration tools | DBWRAP_TOOL(1) |
NAME
dbwrap_tool - low level TDB/CTDB manipulation tool using the dbwrap interface
SYNOPSIS
dbwrap_tool [-?|--help] [--usage] [--persistent] [--non-persistent] [-d|--debuglevel=DEBUGLEVEL] [--debug-stdout] [--configfile=CONFIGFILE] [--option=name=value] [-l|--log-basename=LOGFILEBASE] [--leak-report] [--leak-report-full] {<database>} {<operation>} [<key> [<type> [<value>]]]
DESCRIPTION
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:
The following types are available:
OPTIONS
--persistent
Exactly one of --persistent and --non-persistent must be specified.
--non-persistent
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.
-?|--help
--usage
-d|--debuglevel=DEBUGLEVEL
The higher this value, the more detail will be logged to the log files about the activities of the server. At level 0, only critical errors and serious warnings will be logged. Level 1 is a reasonable level for day-to-day running - it generates a small amount of information about operations carried out.
Levels above 1 will generate considerable amounts of log data, and should only be used when investigating a problem. Levels above 3 are designed for use only by developers and generate HUGE amounts of log data, most of which is extremely cryptic.
Note that specifying this parameter here will override the log level parameter in the /etc/samba/smb.conf file.
--debug-stdout
--configfile=<configuration file>
--option=<name>=<value>
-l|--log-basename=logdirectory
--leak-report
--leak-report-full
-V|--version
COMMANDS
fetch
dbwrap_tool <database> fetch <key> <type>
store
dbwrap_tool <database> store <key> <type> <value>
delete
dbwrap_tool <database> delete <key>
exists
dbwrap_tool <database> exists <key>
erase
dbwrap_tool <database> erase
listkeys
dbwrap_tool <database> listkeys
listwatchers
dbwrap_tool <database> listwatchers
EXAMPLES
List all keys from winbindd_idmap.tdb
Fetch record with key "USER HWM" as uint32
Remove record with key "USER HWM"
Store and overwrite record "USER HWM" with value 214
NOTES
Use with caution!
VERSION
This man page is part of version 4.21.1 of the Samba suite.
SEE ALSO
AUTHOR
The 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.
The dbwrap_tool manpage was written by Bjoern Baumbach.
10/14/2024 | Samba 4.21.1 |