Table 7-5 cl-dump options (continued)

Option

Description

-ooutputFile

Specifies the path, including the file name, for the final result. Defaults to STDOUT if omitted.

 

 

-pport

Specifies the Directory Server's port. The default value is 389.

 

 

-PbindCert

Specifies the path, including the file name, to the certificate database that contains the certificate

 

used for binding.

 

 

-rreplicaRoots

Specifies the replica-roots whose changelog to dump. When specifying multiple roots, use

 

commas to separate roots. If the option is omitted, all the replica roots will be dumped.

 

 

-v

Prints the version of the script.

 

 

-wbindPassword

Specifies the password for the bind DN.

 

 

For information on the equivalent Perl script, see “cl-dump.pl (Dumps and decodes the changelog)”.

7.3.3 dbverify (Checks for corrupt databases)

Verifies the backend database files. If the server crashes because of a corrupted database, this command can be used to verify the integrity of the different database files to help isolate any problems.

IMPORTANT:

Never run the dbverify command when a modify operation is in progress. This command calls the BerkeleyDB utility db_verify command and does not perform any locking. This can lead to data corruption if the script is run at the same time as a modify. If that occurs, an entry will be recorded in the error log:

DB ERROR: db_verify: Page 3527: out-of-order key at entry 42

DB ERROR: db_verify: DB->verify: db/mstest2/uid.db4: DB_VERIFY_BAD: Data\ base

verification failed

Secondary index file uid.db4 in db/mstest2 is corrupted.

Please run db2index(.pl) for reindexing.

Run the db2index -t uid utilty to avoid rebuilding all the indexes or export and reimport all the databases using the db2ldif and ldif2db utilities.

dbverify is a shell script wrapper of the verify-db.plutility to set the appropriate library path.

Syntax

dbverify [ -nbackendInstance] [-V]

Options

Table 7-6 dbverify options

OptionDescription

-n backendInstance Gives the name of a backend instance, such as userRoot. If the -noption is not used, then all databases are verified..

-VVerbose

For information on the equivalent Perl script, see “verify-db.pl (Check for corrupt databases)”.

218 Command-line scripts