HP-UX Directory Server 8.1 configuration, command, and file reference
Options The script db2bak.pl creates an entry in the directory that launches this dynamic
task. The entry is generated based upon the values provided for each option. Currently, the only
possible database type is ldbm.
Table 7-20 db2bak.pl options
DescriptionOption
The directory where the backup files will be stored. The
/var/opt/dirsrv/slapd-instance_name/bak directory is used by default. The
backup file is named according to the year-month-day-hour format (YYYY_MM_DD_hhmmss).
-a dirName
The user DN with root permissions, such as Directory Manager. The default is the DN of
the Directory Manager, which is read from the nsslapd-root attribute under cn=config.
-D rootdn
The name of the file containing the password.
-j filename
The database type. Currently, the only possible database type is ldbm.
-t
Verbose mode.-v
The password associated with the user DN.
-w password
Prompts for the password associated with the user DN.-w -
7.4.4 db2index.pl (Creates and generates indexes)
Creates and generates the new set of indexes to be maintained following the modification of
indexing entries in the cn=config configuration file.
Syntax
db2index.pl [ -v] -D rootdn { -w password | -w - | -j filename } -n backendInstance
[-t attributeName(:indextypes(:mathingrules))] [ -T vlvAttributeName ]
Options The db2index.pl script creates an entry in the directory that launches this dynamic
task. The entry is generated based upon the values provided for each option.
Table 7-21 db2index.pl options
DescriptionOption
Gives the user DN with root permissions, such as Directory Manager.-D rootdn
The name of the file containing the password.
-j filename
Gives the instance to be indexed. If the instance is not specified, the
script reindexes all instances.
-n backendInstance
Gives the name of the attribute to be indexed. If omitted, all the indexes
defined for the specified instance are generated. 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
Verbose mode.-v
Gives the password associated with the user DN.
-w password
Prompts for the password associated with the user DN.-w -
7.4.5 db2ldif.pl (Exports database contents to LDIF)
Exports the contents of the database to LDIF. This script creates an entry in the directory that
launches this dynamic task. The entry is generated based upon the values provided for each
option. Ellipses indicate that multiple occurrences are allowed.
Syntax
228 Command-line scripts