T able 7.2. Perl Scripts in /usr/lib/dirsrv/slapd-instance_name or/usr/lib64 /dirsrv/slapd-instance_namePerl Script Descriptionbak2db.pl Restores the database from the most recentarchived backup.db2bak.pl Creates a backup of the current databasecontents.db2index.pl Creates and regenerates indexes.db2ldif.pl Exports the contents of the database to LDIF.fixup-memberof.pl Regenerates the memberOf on user entries toreflect changes in group membership.ldif2db.pl Imports LDIF files to a database and runs the ns-slapd command-line utility with the ldif2dbkeyword.ns-accountstatus.pl Provides account status information to establishwhether an entry or group of entries is locked.ns-activate.pl Activates an entry or a group of entries byunlocking 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) passwordpolicy.schema-reload.pl Reloads schema dynamically into the serverinstance.verify-db.pl Checks backend database files.T able 7.3. Scripts in /usr/binScript Name Description Perl or Shell Scriptcl-dump Dumps and decodes thechangelog.Shellcl-dump.pl Dumps and decodes thechangelog.Perlds_removal Removes a server instance. Shelllogconv.pl Analyzes the access logs of aDirectory Server to extractusage statistics and count theoccurrences of significantevents.Perlmigrate-ds-admin.pl Migrates a Directory Server 7.1instance to Directory Server 8.1.Perlpwdhash Prints the encrypted form of apassword using one of theserver's encryption algorithms. Ifa user cannot log in, use thisscript to compare the user'spassword to the passwordstored in the directory.Shellregister-ds-admin.pl Re-registers a Directory Serverinstance with the localAdministration Server.Perlremove-ds.pl Removes a Directory Serverinstance.Perlrepl-monitor Provides in-progress status ofreplication.Shellrepl-monitor.pl Provides in-progress status ofreplication.Perlsetup-ds.pl Creates or recreates a DirectoryServer instance.Perlsetup-ds-admin.pl Creates a new Directory Serverinstance and localAdministration Server instance.Perl7.3. Shell ScriptsT his section covers the following scripts:208 Chapter 7. Command-Line Scripts