Red Hat Directory Server 8.0 Configuration, Command, and File Reference

Option Description
used as input to db2index.
-r Exports a replica.
-s suffix_name Names the suffixes to be included or the
subtrees to be included if -n has been used.
-u Requests that the unique ID is not exported.
-U Requests that the output LDIF is not folded.
-x suffix_name Names the suffixes to be excluded.
Table 7.7. db2ldif Options
3.6. db2index (Reindexes Database Index Files)
Reindexes the database index files. Ellipses indicate that multiple occurrences are allowed.
For information on the equivalent Perl script, see Section 4.4, “db2index.pl (Creates and
Generates Indexes)”.
Syntax.
db2index [[ -n backendInstance ] | [ -s includeSuffix ]] [ -t
[attributeName{:indextypes(:mathingrules)}] ] [ -T vlvAttribute ]
Usage.
Here are a few sample commands:
Reindex all the database index files:
db2index
Reindex cn and givenname in the database instance userRoot:
db2index -n userRoot -t cn -t givenname
Reindex cn in the database where the root suffix is dc=example,dc=com:
db2index -s "dc=example,dc=com" -t cn
Options.
Chapter 7. Command-Line Scripts
248