OS Manuals

/usr/bin/dbscan

LDAPv3 compliant server - LDAP server and command line utilities for server administration.

From 389-ds-base 3.3.1-r10 (enterprise-packages), captured 2026-11-08 by running dbscan --help (exit 1). permalink

dbscan - scan a db file and dump the contents
  common options:
    -A, --ascii                    dump as ascii data
    -D, --db-type <dbimpl>         specify db implementaion (may be: bdb or mdb)
    -f, --dbi <filename>           specify db instance
    -R, --raw                      dump as raw data
    -t, --truncate-entry <size>    entry truncate size (bytes)
  entry file options:
    -K, --entry-id <entry_id>      lookup only a specific entry id
  index file options:
    -G, --id-list-min-size <n>     only display index entries with more than <n> ids
    -I, --import file              Import database instance from file.
    -k, --key <key>                lookup only a specific key
    -l, --id-list-max-size <size>  max length of dumped id list
                                  (default 4096; 40 bytes <= size <= 1048576 bytes)
    -n, --show-id-list-lenghts     display ID list lengths
    --remove                       remove database instance
    -r, --show-id-list             display the conents of ID list
    -S, --stats <dbhome>           show statistics
    -X, --export file              export database instance in file
  other options:
    -s, --summary                  summary of index counts
    -L, --list <dbhome>            list all db files
    --do-it                        confirmation flags for destructive actions like --remove or --import
    -h, --help                     display this usage
  sample usages:
    # list the database instances
    dbscan -L /var/lib/dirsrv/slapd-supplier1/db/
    # dump the entry file
    dbscan -f id2entry.db
    # display index keys in cn.db4
    dbscan -f cn.db4
    # display index keys in cn on lmdb
    dbscan -f /var/lib/dirsrv/slapd-supplier1/db/userroot/cn.db
    (Note: Use 'dbscan -L db_home_dir' to get the db instance path)
    # display index keys and the count of entries having the key in mail.db4
    dbscan -r -f mail.db4
    # display index keys and the IDs having more than 20 IDs in sn.db4
    dbscan -r -G 20 -f sn.db4
    # display summary of objectclass.db4
    dbscan -s -f objectclass.db4
Options (19)
OptionDescriptionSource
-A, --asciidump as ascii datahelp + man
-D, --db-type dbimplspecify db implementaion (may be: bdb or mdb)help + man
-f, --dbi filenamespecify db instancehelp + man
-R, --rawdump as raw datahelp + man
-t, --truncate-entry sizeentry truncate size (bytes)help + man
-K, --entry-id entry_idlookup only a specific entry idhelp + man
-G, --id-list-min-size nonly display index entries with more than <n> idshelp + man
-I, --import fileImport database instance from file.help + man
-k, --key keylookup only a specific keyhelp + man
-l, --id-list-max-size sizemax length of dumped id list (default 4096;help + man
-n, --show-id-list-lenghtsdisplay ID list lengthshelp + man
--removeremove database instancehelp + man
-r, --show-id-listdisplay the contents of ID listhelp + man
-S, --stats dbhomedisplay statisticshelp + man
-X, --export fileexport database instance in filehelp + man
-s, --summarysummary of index countshelp + man
-L, --list dbhomeList od database instanceshelp + man
--do-itconfirmation flags for destructive actions like --remove or --importhelp + man
-h, --help, --help-itdisplay this usagehelp + man

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.