DBSCAN(1)
β¨ 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:bdbormdb-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-itparameter
β οΈ WARNING! Only theid2entryandreplication_changelogdatabase instances may be imported bydbscan. 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 (default4096;40 bytes <= size <= 1048576 bytes)-n,--show-id-list-lenghtsβ display ID list lengths--removeβ remove a db instance. Requires--do-itparameter-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-itbefore 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 π
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
- arch rolling: 389-ds-base 3.3.1-1 Β· GPL-3.0-only
- centos-stream 10: 389-ds-base 3.3.0-4.el10 Β· GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR LGPL-2.1-or-later OR MIT) AND (Apache-2.0 OR MIT) AND (MIT OR Apache-2.0) AND Unicode-3.0 AND (MIT OR Unlicense) AND Apache-2.0 AND MIT AND MPL-2.0 AND Zlib
- centos-stream 9: 389-ds-base 2.9.0-5.el9 Β· GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR LGPL-2.1-or-later OR MIT) AND (Apache-2.0 OR MIT) AND (MIT OR Apache-2.0) AND Unicode-3.0 AND (MIT OR Unlicense) AND Apache-2.0 AND MIT AND MPL-2.0 AND Zlib
- debian trixie: 389-ds-base 3.1.2+dfsg1-1+deb13u1 Β· GPL-3.0-or-later AND Other
- fedora 43: 389-ds-base 3.1.3-10.fc43 Β· GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND (0BSD OR Apache-2.0 OR MIT) AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR BSL-1.0) AND (Apache-2.0 OR LGPL-2.1-or-later OR MIT) AND (Apache-2.0 OR MIT OR Zlib) AND (Apache-2.0 OR MIT) AND (CC-BY-4.0 AND MIT) AND (MIT OR Apache-2.0) AND Unicode-3.0 AND (MIT OR CC0-1.0) AND (MIT OR Unlicense) AND 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MIT AND ISC AND MPL-2.0 AND PSF-2.0 AND Zlib
- fedora 43: 389-ds-base 3.1.5-4.fc43 Β· GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR LGPL-2.1-or-later OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT) AND Unicode-3.0 AND (CC-BY-4.0 AND MIT) AND (MIT OR Unlicense) AND 0BSD AND Apache-2.0 AND BSD-3-Clause AND ISC AND MIT AND MIT AND ISC AND MPL-2.0 AND Zlib
- fedora 44: 389-ds-base 3.2.0-15.fc44 Β· GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR LGPL-2.1-or-later OR MIT) AND (Apache-2.0 OR MIT) AND (CC-BY-4.0 AND MIT) AND (MIT OR Apache-2.0) AND Unicode-3.0 AND (MIT OR CC0-1.0) AND (MIT OR Unlicense) AND 0BSD AND Apache-2.0 AND BSD-2-Clause AND BSD-3-Clause AND ISC AND MIT AND MIT AND ISC AND MPL-2.0 AND PSF-2.0 AND Zlib
- fedora 44: 389-ds-base 3.2.3-5.fc44 Β· GPL-3.0-or-later WITH GPL-3.0-389-ds-base-exception AND (Apache-2.0 OR Apache-2.0 WITH LLVM-exception OR MIT) AND (Apache-2.0 OR LGPL-2.1-or-later OR MIT) AND (Apache-2.0 OR MIT) AND (Apache-2.0 OR MIT) AND Unicode-3.0 AND (CC-BY-4.0 AND MIT) AND (MIT OR Unlicense) AND 0BSD AND Apache-2.0 AND BSD-3-Clause AND ISC AND MIT AND MIT AND ISC AND MPL-2.0 AND Zlib
- nixos 26.05: 389-ds-base 3.1.3
- nixpkgs unstable: 389-ds-base 3.3.0
- opensuse-leap 16.0: 389-ds 3.0.7~git2.2846d5288-160000.1.1 Β· GPL-3.0-or-later AND MPL-2.0
- opensuse-leap 16.0: 389-ds 3.0.7~git2.2846d5288-160000.1.1 Β· GPL-3.0-or-later AND MPL-2.0
- opensuse-leap 16.0: 389-ds 3.0.7~git2.2846d5288-160000.1.1 Β· GPL-3.0-or-later AND MPL-2.0
- opensuse-leap 16.0: 389-ds 3.0.7~git2.2846d5288-160000.1.1 Β· GPL-3.0-or-later AND MPL-2.0
- ubuntu questing: 389-ds-base 3.1.2+dfsg1-1
- ubuntu resolute: 389-ds-base 3.1.2+vendor1-2 Β· GPL-3.0-or-later AND Other
- ubuntu stonking: 389-ds-base 3.3.1-3 Β· GPL-3.0-or-later AND Other
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms