Chapter 7. Command-Line Scripts
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
Option
-n backendInstance
-s includeSuffix
-t attributeName{:indextypes(:mathingrules)}
-T vlvAttributeName
Table 7.8. db2index Options
7.3.7. ldif2db (Import)
Runs the ns-slapd command-line utility with the ldif2db keyword. To run this script, the server
must be stopped. Ellipses indicate that multiple occurrences are allowed.
For information on the equivalent Perl script, see
NOTE
ldif2db supports LDIF version 1 specifications. An attribute can also be loaded using
the :< URL specifier notation; for example:
jpegphoto:< file:///tmp/myphoto.jpg
Although the official notation requires three ///, the use of one / is accepted. For further
information on the LDIF format, see the "Managing Directory Entries" chapter in the Red
Hat Directory Server Administrator's Guide.
210
Description
Gives the name of the instance to be reindexed.
Gives suffixes to be included or the subtrees to
be included if -n has been used.
Names of the attributes to be reindexed.
Optionally, this can include the index type (eq,
pres, sub, approx) and a matching rule OID.
Gives the names of the VLV attributes to be
reindexed. The name is the VLV index object's
common name in cn=config.
Section 7.4.6, "ldif2db.pl
(Import)".
Need help?
Do you have a question about the DIRECTORY SERVER 8.0 and is the answer not in the manual?