DBSCAN(1)

πŸ“¦
version 3.3.1 Β· 2 versions
, in arch rolling, centos-stream 10, centos-stream 9, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ dbscan(1) β€” General Commands Manual ✨

okay bestie, sit down, hydrate, because today we're talking about dbscan πŸ’… it's a whole command, it lives in section 1 of the manual, and it's about to become your new hyperfixation. no cap.


🌸 NAME 🌸

dbscan β€” scans a Directory Server database index file and dumps the contents πŸŽ€

literally that's the whole vibe. it peeks inside an index file and shows you what's in there. iconic behavior.


πŸ¦‹ SYNOPSIS πŸ¦‹

dbscan -f <filename> [-R] [-t <size>] [-K <entry_id>] [-k <key>] [-l
<size>] [-G <n>] [-n] [-r] [-s]

so -f <filename> is the main character here, and everything in the brackets is optional garnish ✨


πŸ’– DESCRIPTION πŸ’–

Scans a Directory Server database index file and dumps the contents. that's it, that's the job. she scans, she dumps, she leaves. main character energy fr fr 🫢


πŸ‘‘ OPTIONS πŸ‘‘

A summary of options is included below, and yes we're going through all of them because I don't skip parts, that would be so not slay of me πŸ’€

🌈 common options

  • -A, --ascii β€” dump as ascii data
  • -D, --db-type <filename> β€” specify db type: 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. Requires --do-it parameter
⚠️ WARNING! Only the id2entry and replication_changelog database instances may be imported by dbscan. like, ONLY those two. do not test her. 😭
  • -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 a db instance. Requires --do-it parameter
  • -r, --show-id-list β€” display the contents of ID list
  • -S, --stats β€” display statistics
  • -X, --export <file> β€” Export database instance to file

πŸ’œ other options

  • -s, --summary β€” Summary of index counts
  • -L, --list β€” List od database instances
  • --do-it β€” confirmation required for actions that change the database contents
  • -h, --help-it β€” display the usage
πŸ’€ heads up: the flags that change your database β€” --import, --remove, and friends β€” are lowkey scary, so they need --do-it before they'll actually go through. no --do-it, no chaos. she's protecting you.

⭐ USAGE ⭐

Sample usages, and yes these are copy-paste-able, you're welcome bestie πŸ“

List the database instances:

dbscan -L /var/lib/dirsrv/slapd-supplier1/db

Dump the entry file:

dbscan -f id2entry.db4

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_dirto 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

🌷 AUTHOR 🌷

dbscan was written by the 389 Project. kings, honestly. πŸ‘‘


πŸ”₯ REPORTING BUGS πŸ”₯

Report bugs to https://github.com/389ds/389-ds-base/issues/new β€” go tell them, they wanna know, fr fr 🫢


Copyright Β© 2001 Sun Microsystems, Inc. Used by permission.

Copyright Β© 2017 Red Hat, Inc.

This manual page was written by Michele Baldessari <michele@pupazzo.org>, for the Debian project (but may be used by others).

This is free software. You may redistribute copies of it under the terms of the Directory Server license found in the LICENSE file of this software distribution. This license is essentially the GNU General Public License version 2 with an exception for plug-in distribution.


and that's the whole page, bestie πŸ’– this one's from March 31, 2017, tagged DBSCAN(1) in the General Commands Manual β€” go dump some indexes, you absolute icon 🌈✨

πŸ“¦ where this page comes from