HP-UX Directory Server 8.1 configuration, command, and file reference
7.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 “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
Table 7-8 db2index options
DescriptionOption
Gives the name of the instance to be reindexed.
-n backendInstance
Gives suffixes to be included or the subtrees to be included if -n has
been used.
-s includeSuffix
Names of the attributes to be reindexed. Optionally, this can include
the index type (eq, pres, sub, approx) and a matching rule OID.
-t
attributeName{:indextypes(:mathingrules)}
Gives the names of the VLV attributes to be reindexed. The name is the
VLV index object's common name in cn=config.
-T vlvAttributeName
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 “ldif2db.pl (Import)”.
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 HP-UX
Directory Server administrator guide.
Syntax
ldif2db [[ -n backendInstance] | [ { -s includeSuffix } ]...] [ -x excludeSuffix ] [ [ -i
ldifFile ] ] [ -O ] [ -g string ] [ -G namespaceId ] [ -E ]
Options
220 Command-line scripts