Command-Line Scripts; Finding And Executing Command-Line Scripts; Command-Line Scripts Quick Reference - Red Hat 8.1 Configuration And Command Reference

Directory server; configuring and managing with command-line utilities
Hide thumbs Also See for 8.1:
Table of Contents

Advertisement

Chapter 7. Command-Line Scripts
T his chapter provides information on the scripts for managing Red Hat 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

7.1. Finding and Executing Command-Line Scripts

Most Directory Server-related scripts are located in the /usr/lib/dirsrv/slapd-instance_name
directory for Red Hat Enterprise Linux 5 (32-bit) (and in /usr/lib64 /dirsrv/slapd-instance_name
on Red Hat Enterprise Linux 64-bit systems). A few are located in the /usr/bin directory. T he exact
locations are listed in
Section 7.2, "Command-Line Scripts Quick
When scripts request either a directory name or a filename, always provide the absolute path. T he
scripts assume the dse.ldif file is located in the /etc/dirsrv/slapd-instance_name directory.

7.2. Command-Line Scripts Quick Reference

T he following shell and Perl scripts are located in either the
/usr/lib/dirsrv/slapd-instance_name (for 32-bit Red Hat Enterprise Linux) or
/usr/lib64 /dirsrv/slapd-instance_name (for 64-bit Red Hat Enterprise Linux) directory.
T able 7.1. Shell Scripts in /usr/lib/dirsrv/slapd-instance_name or
/usr/lib64 /dirsrv/slapd-instance_name
Shell Script
bak2db
db2bak
db2ldif
db2index
dbverify
ldif2db
ldif2ldap
monitor
restart-slapd
restoreconfig
saveconfig
start-slapd
stop-slapd
suffix2instance
verify-db.pl
vlvindex
Red Hat D irectory Server 8.1 Configuration and Command Reference
Appendix A, Using the ns-slapd Command-Line
Description
Restores the database from the most recent
archived backup.
Creates a backup of the current database
contents.
Exports the contents of the database to LDIF.
Reindexes the database index files.
Checks backend database files.
Imports LDIF files to the database. Runs the ns-
slapd command-line utility with the ldif2db
keyword.
Performs an import operation over LDAP to the
Directory Server.
Retrieves performance monitoring information
using the ldapsearch command-line utility.
Restarts Directory Server.
Restores by default the most recently saved
Administration Server configuration to
NetscapeRoot partition.
Saves Administration Server configuration stored in
the NetscapeRoot database to the
/var/lib/dirsrv/slapd-instance_name/bak
directory.
Starts Directory Server.
Stops Directory Server.
Maps a suffix to a backend name.
Checks backend database files.
Creates and generates virtual list view (VLV)
indexes.
Utilities.
Reference".
207

Advertisement

Table of Contents
loading

Table of Contents