Table 7-2 Perl scripts in /opt/dirsrv/slapd-instance_name

Perl script

Description

bak2db.pl

Restores the database from the most recent archived backup.

 

 

db2bak.pl

Creates a backup of the current database contents.

 

 

db2index.pl

Creates and regenerates indexes.

 

 

db2ldif.pl

Exports the contents of the database to LDIF.

 

 

ldif2db.pl

Imports LDIF files to a database and runs the ns-slapdcommand-line utility with the

 

ldif2db keyword.

 

 

ns-accountstatus.pl

Provides account status information to establish whether an entry or group of entries is

 

locked.

 

 

ns-activate.pl

Activates an entry or a group of entries by unlocking them.

 

 

ns-inactivate.pl

Deactivates an entry or a group of entries.

 

 

ns-newpwpolicy.pl

Adds relevant entries required for the fine-grained (user- and subtree-level) password

 

policy.

 

 

verify-db.pl

Checks backend database files.

 

 

Table 7-3 Scripts in /opt/dirsrv/bin

Script name

Description

Perl or shell script

cl-dump

Dumps and decodes the changelog.

Shell

 

 

 

cl-dump.pl

Dumps and decodes the changelog.

Perl

 

 

 

logconv.pl

Analyzes the access logs of a Directory Server to extract usage statistics

Perl

 

and count the occurrences of significant events.

 

 

 

 

pwdhash

Prints the encrypted form of a password using one of the server's

Shell

 

encryption algorithms. If a user cannot log in, use this script to compare

 

 

the user's password to the password stored in the directory.

 

 

 

 

repl-monitor

Provides in-progress status of replication.

Shell

 

 

 

repl-monitor.pl

Provides in-progress status of replication.

Perl

 

 

 

7.3 Shell scripts

This section covers the following scripts:

“bak2db (Restores a database from backup)”

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

“dbverify (Checks for corrupt databases)”

“db2bak (Creates a backup of a database)”

“db2ldif (Exports database contents to LDIF)”

“db2index (Reindexes database index files)”

“ldif2db (Import)”

“ldif2ldap (Performs import operation over LDAP)”

“monitor (Retrieves monitoring information)”

“pwdhash (Prints encrypted passwords)”

“repl-monitor (Monitors replication status)”

“restart-slapd (Restarts the Directory Server)”

“restoreconfig (Restores Administration Server configuration)”

“saveconfig (Saves Administration Server configuration)”

216 Command-line scripts