Command-Line Scripts Quick Reference
220
Netscape Directory Server Configuration, Command, and File Reference • December 2001
Command-Line Scripts Quick Reference
CAUTION
In order to execute the Perl Scripts you must change directory to the
directory where the command-line utilities are stored. Although it is
possible to set command path and library-path variables to execute
these scripts, this is not the recommended procedure because you
run the risk, particularly when you have more than one server
version installed, not only of disrupting the correct execution of
other scripts and utilities, but also of compromising the security of
the system.
The same procedure also applies to the
ldapsearch
,
ldapmodify
,
ldapdelete
and
ldif
command-line utilities. For more information
on these command-line utilities see Chapter 7, “Command-Line
Utilities.”
Please also note that when you are running the Perl scripts on NT
machines you must make sure that the path environment variable
contains the Perl executable (
perl.exe
) file. You therefore need to
run the scripts from the following directory on NT machines:
\usr\netscape\servers\bin\slapd\admin\bin
Table 8-1
Commonly Used Command-Line Shell and Batch Scripts
Command Line Script
Description
bak2db
Restores the database from the most recent archived backup.
Located in:
/usr/netscape/servers/slapd-
serverID
db2bak
Creates a backup of the current database contents.
Located in:
/usr/netscape/servers/slapd-
serverID
db2ldif
Exports the contents of the database to LDIF.
Located in:
/usr/netscape/servers/slapd-
serverID
db2dsml
Exports the contents of the database to DSML.
Located in:
/usr/netscape/servers/slapd-
serverID
dsml2db
Imports DSML file to the database.
Located in:
/usr/netscape/servers/slapd-
serverID