HP-UX Directory Server 8.1 configuration, command, and file reference
7 Command-line scripts
This chapter provides information on the scripts for managing the HP-UX Directory Server, such
as backing-up and restoring the database. Scripts are a shortcut way of executing the ns-slapd
interface commands that are documented in Appendix A “Using the ns-slapd command-line
utilities”.
7.1 Finding and executing command-line scripts
Most scripts are located in the /opt/dirsrv/slapd-instance_name directory, though a few
are located in the /opt/dirsrv/bin directory. The exact locations are listed in “Command-line
scripts quick reference”.
When scripts request either a directory name or a file name, always provide the absolute path.
The scripts assume the dse.ldif file is located in the
/etc/opt/dirsrv/slapd-instance_name directory.
7.2 Command-line scripts quick reference
The following shell and Perl scripts are located in the /opt/dirsrv/slapd-instance_name
directory.
Table 7-1 Shell scripts in /opt/dirsrv/slapd-instance_name
DescriptionShell script
Restores the database from the most recent archived backup.bak2db
Creates a backup of the current database contents.db2bak
Exports the contents of the database to LDIF.db2ldif
Reindexes the database index files.db2index
Checks backend database files.dbverify
Imports LDIF files to the database. Runs the ns-slapd command-line utility with the
ldif2db keyword.
ldif2db
Performs an import operation over LDAP to the Directory Server.ldif2ldap
Retrieves performance monitoring information using the ldapsearch command-line utility.
monitor
Restarts Directory Server.restart-slapd
Restores by default the most recently saved Administration Server configuration to
NetscapeRoot partition.
restoreconfig
Saves Administration Server configuration stored in the NetscapeRoot database to the
/var/opt/dirsrv/slapd-instance_name/bak directory.
saveconfig
Starts Directory Server.start-slapd
Stops Directory Server.stop-slapd
Maps a suffix to a backend name.suffix2instance
Checks backend database files.verify-db.pl
Creates and generates virtual list view (VLV) indexes.vlvindex
7.1 Finding and executing command-line scripts 215