HP-UX Directory Server 8.1 configuration, command, and file reference
Table 7-2 Perl scripts in /opt/dirsrv/slapd-instance_name
DescriptionPerl script
Restores the database from the most recent archived backup.bak2db.pl
Creates a backup of the current database contents.db2bak.pl
Creates and regenerates indexes.db2index.pl
Exports the contents of the database to LDIF.db2ldif.pl
Imports LDIF files to a database and runs the ns-slapd command-line utility with the
ldif2db keyword.
ldif2db.pl
Provides account status information to establish whether an entry or group of entries is
locked.
ns-accountstatus.pl
Activates an entry or a group of entries by unlocking them.ns-activate.pl
Deactivates an entry or a group of entries.ns-inactivate.pl
Adds relevant entries required for the fine-grained (user- and subtree-level) password
policy.
ns-newpwpolicy.pl
Checks backend database files.verify-db.pl
Table 7-3 Scripts in /opt/dirsrv/bin
Perl or shell scriptDescriptionScript name
ShellDumps and decodes the changelog.cl-dump
PerlDumps and decodes the changelog.cl-dump.pl
PerlAnalyzes the access logs of a Directory Server to extract usage statistics
and count the occurrences of significant events.
logconv.pl
ShellPrints the encrypted form of a password using one of the server's
encryption algorithms. If a user cannot log in, use this script to compare
the user's password to the password stored in the directory.
pwdhash
ShellProvides in-progress status of replication.repl-monitor
PerlProvides in-progress status of replication.repl-monitor.pl
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