Table 7.3. scripts in /usr/bin, Shell scripts – Red Hat 8.1 User Manual

Page 208

Advertising
background image

Table 7.2. Perl Scripts in /usr/lib/dirsrv/slapd-instance_name or
/usr/lib64 /dirsrv/slapd-instance_name

Perl Script

Description

bak2db.pl

Restores the database from the most recent
archived backup.

db2bak.pl

Creates a backup of the current database
contents.

db2index.pl

Creates and regenerates indexes.

db2ldif.pl

Exports the contents of the database to LDIF.

fixup-memberof.pl

Regenerates the memberOf on user entries to
reflect changes in group membership.

ldif2db.pl

Imports LDIF files to a database and runs the ns-
slapd
command-line utility with the ldif2db
keyword.

ns-accountstatus.pl

Provides account status information to establish
whether an entry or group of entries is locked.

ns-activate.pl

Activates an entry or a group of entries by
unlocking them.

ns-inactivate.pl

Deactivates an entry or a group of entries.

ns-newpwpolicy.pl

Adds relevant entries required for the fine-
grained (user- and subtree-level) password
policy.

schema-reload.pl

Reloads schema dynamically into the server
instance.

verify-db.pl

Checks backend database files.

Table 7.3. Scripts in /usr/bin

Script Name

Description

Perl or Shell Script

cl-dump

Dumps and decodes the
changelog.

Shell

cl-dump.pl

Dumps and decodes the
changelog.

Perl

ds_removal

Removes a server instance.

Shell

logconv.pl

Analyzes the access logs of a
Directory Server to extract
usage statistics and count the
occurrences of significant
events.

Perl

migrate-ds-admin.pl

Migrates a Directory Server 7.1
instance to Directory Server 8.1.

Perl

pwdhash

Prints the encrypted form of a
password using one of the
server's encryption algorithms. If
a user cannot log in, use this
script to compare the user's
password to the password
stored in the directory.

Shell

register-ds-admin.pl

Re-registers a Directory Server
instance with the local
Administration Server.

Perl

remove-ds.pl

Removes a Directory Server
instance.

Perl

repl-monitor

Provides in-progress status of
replication.

Shell

repl-monitor.pl

Provides in-progress status of
replication.

Perl

setup-ds.pl

Creates or recreates a Directory
Server instance.

Perl

setup-ds-admin.pl

Creates a new Directory Server
instance and local
Administration Server instance.

Perl

7.3. Shell Scripts

This section covers the following scripts:

208

Chapter 7. Command-Line Scripts

Advertising