Command-Line Scripts Quick Reference - Red Hat DIRECTORY SERVER 8.1 Command Reference Manual

Hide thumbs Also See for DIRECTORY SERVER 8.1:
Table of Contents

Advertisement

Chapter 7.
Command-Line Scripts
This 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. The exact locations are listed in
Reference".
When scripts request either a directory name or a filename, always provide the absolute path.
The scripts assume the dse.ldif file is located in the /etc/dirsrv/slapd-instance_name
directory.

7.2. Command-Line Scripts Quick Reference

The 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.
Shell Script
bak2db
db2bak
db2ldif
db2index
dbverify
ldif2db
ldif2ldap
monitor
restart-slapd
restoreconfig
saveconfig
Appendix A, Using the ns-slapd Command-Line
Section 7.2, "Command-Line Scripts Quick
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.
Utilities.
275

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the DIRECTORY SERVER 8.1 and is the answer not in the manual?

Table of Contents