Shell Scripts
258 Red Hat Directory Server Configuration, Command, and File Reference • May 2005
Shell Scripts
This section covers the following scripts:
• bak2db (Restore database from backup)
• db2bak (Create backup of database)
• db2ldif (Export database contents to LDIF)
• db2dsml (Export database contents to DSML)
• db2index (Reindex database index files)
• dsml2db (Import DSML document contents into database)
• getpwenc (Print encrypted password)
• ldif2db (Import)
• ldif2ldap (Perform import operation over LDAP)
• monitor (Retrieve monitoring information)
logconv.pl Analyzes the access logs of a Directory Server to
extract usage statistics and count the occurrences of
significant events.
serverRoot/bin/slapd/
server
migrateInstance7 Migrates a 6.x version of Directory Server to the 7.x
version.
serverRoot/bin/slapd/ad
min/bin
ns-accountstatus.p
l
Provides account status information to establish
whether an entry or group of entries is locked.
serverRoot/slapd-serverID
ns-activate.pl Activates an entry or a group of entries by
unlocking it (them).
serverRoot/slapd-serverID
ns-inactivate.pl Inactivates an entry or a group of entries. serverRoot/slapd-serverID
ns-newpwpolicy.pl Adds relevant entries required for the fine-grained
(user- and subtree-level) password policy.
serverRoot/slapd-serverID
template-cl-dump.p
l
Dumps and decodes the changelog. serverRoot/bin/slapd/
admin/scripts
template-repl-moni
tor.pl
Provides in-progress status of replication. serverRoot/bin/slapd/
admin/scripts
Table 8-2 Commonly Used Command-Line Perl Scripts (Continued)
Command-Line Perl
Script
Description Location