vlvindex [ -ddebugLevel] [[ -nbackendInstance] [ -ssuffix]] [ -TvlvTag]

Options Either the -nor the -soption must be specified.

Table 7-17 vlvindex options

Option

Description

-ddebugLevel

Specifies the debug level to use during index creation. Debug levels are defined in

 

“nsslapd-errorlog-level (Error log level)”

-nbackendInstance

Gives the name of the database containing the entries to index.

-ssuffix

Gives the name of the suffix containing the entries to index.

-TvlvTag

VLV index identifier to use to create VLV indexes. The Console can specify VLV index

 

identifier for each database supporting the directory tree, as described in the HP-UX Directory

 

Server administrator guide. Define additional VLV tags by creating them in LDIF and adding

 

them to Directory Server's configuration, as described in the HP-UX Directory Server

 

administrator guide. HP recommends using the DN of the entry for which to accelerate the

 

search sorting.

7.4 Perl scripts

This section describes the following Perl scripts:

“bak2db.pl (Restores a database from backup)”

“cl-dump.pl (Dumps and decodes the changelog)”

“db2bak.pl (Creates a backup of a database)”

“db2index.pl (Creates and generates indexes)”

“db2ldif.pl (Exports database contents to LDIF)”

“fixup-memberof.pl (Regenerate memberOf attributes)”

“ldif2db.pl (Import)”

“logconv.pl (Log converter)”

“ns-accountstatus.pl (Establishes account status)”

“ns-activate.pl (Activates an entry or group of entries)”

“ns-inactivate.pl (Inactivates an entry or group of entries)”

“ns-newpwpolicy.pl (Adds attributes for fine-grained password policy)”

“repl-monitor.pl (Monitors replication status)”

“schema-reload.pl (Reload schema files dynamically)”

“verify-db.pl (Check for corrupt databases)”

7.4.1bak2db.pl (Restores a database from backup)

Restores a database from a backup.

Syntax

bak2db.pl [ -v ] -Drootdn { -wpassword -w - -jfilename } -abackupDirectory [ -tdatabaseType ] [-nbackend]

Options The bak2db.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-18 bak2db.pl options

Option

Description

-abackupDirectory

The directory of the backup files.

-Drootdn

Gives 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-rootattribute under

 

cn=config.

226 Command-line scripts

Page 226
Image 226
HP UX Identity Security Software manual Perl scripts, 1 bak2db.pl Restores a database from backup