dbwrap_tool command examples
dbwrap_tool – low level TDB/CTDB manipulation tool using the dbwrap interface
List all keys from winbindd_idmap.tdb
dbwrap_tool --persistent winbindd_idmap.tdb listkeys
Fetch record with key “USER HWM” as uint32
dbwrap_tool --persistent winbindd_idmap.tdb fetch "USER HWM" uint32
Remove record with key “USER HWM”
dbwrap_tool --persistent winbindd_idmap.tdb remove "USER HWM"
Store and overwrite record “USER HWM” with value 214 uint32:
dbwrap_tool --persistent winbindd_idmap.tdb store "USER HWM" uint32 214 hex: dbwrap_tool --persistent winbindd_idmap.tdb store "USER HWM" hex D6000000