Perl Scripts
Chapter 8 Command-Line Scripts 275
db2ldif.pl (Export database contents to LDIF)
Exports the contents of the database to LDIF. This script creates an entry in the
directory that launches this dynamic task. The entry is generated based upon the
values you provide for each option. The
*
indicates that multiple occurrences are
allowed.
Syntax
Options
To run this script, the server must be running, and either
-n
backend_instance or
-s
includesuffix is required.
-D rootdn The user DN with root permissions, such as Directory
Manager.
-w password The password associated with the user DN.
-n backendInstance The instance to be indexed. If the instance is not specified, the
script reindexes all instances.
-t attributeName The name of the attribute to be indexed. If omitted, all the
indexes defined for the specified instance are generated.
-j filename The name of the file containing the password.
Perl script:
db2ldif.pl [-v] -D rootdn -w password {-n
backendInstance}* | {-s includeSuffix}* [{-x
excludeSuffix}*] [-a outputFile] [-N] [-r] [-C] [-u]
[-U] [-m] [-o] [-1] [M]
Optio
n
Parameter Description
-v Verbose mode.
-D rootdn The user DN with root permissions, such as Directory
Manager.
-w password The password associated with the user DN.
Optio
n
Parameter Description