Command-Line Scripts Quick Reference
Chapter 8 Command-Line Scripts 257
monitor Retrieves performance monitoring information
using the ldapsearch command-line utility.
serverRoot/slapd-serverID
restart-slapd Restarts Directory Server. serverRoot/slapd-serverID
restoreconfig Restores by default the most recently saved
Administration Server configuration to
NetscapeRoot partition.
serverRoot/slapd-serverID
saveconfig Saves Administration Server configuration stored
in the NetscapeRoot partition to the
serverRoot/slapd-serverID/confbak directory.
serverRoot/slapd-serverID
start-slapd Starts Directory Server. serverRoot/slapd-serverID
stop-slapd Stops Directory Server. serverRoot/slapd-serverID
suffix2instance Maps a suffix to a backend name. serverRoot/slapd-serverID
vlvindex Creates and generates virtual list view (VLV)
indexes.
serverRoot/slapd-serverID
Table 8-2 Commonly Used Command-Line Perl Scripts
Command-Line Perl
Script
Description Location
bak2db.pl Restores the database from the most recent archived
backup.
serverRoot/slapd-serverID
db2bak.pl Creates a backup of the current database contents. serverRoot/slapd-serverID
db2index.pl Creates and regenerates indexes. serverRoot/slapd-serverID
db2ldif.pl Exports the contents of the database to LDIF. serverRoot/slapd-serverID
ldif2db.pl Imports LDIF files to database.
Runs the ns-slapd command-line utility with the
ldif2db keyword. By default, the script first saves
and then merges any existing configuration tree
(o=NetscapeRoot), with any files to be
imported.
serverRoot/slapd-serverID
Table 8-1 Commonly Used Command-Line Shell Scripts (Continued)
Command-Line
Script
Description Location