To Run the Directory Preparation Tool in Silent Mode
Directory Preparation Tool Silent Mode Instructions
To run the Directory Preparation Tool in silent mode, issue the Perl command
followed by a string of options using the syntax shown in Directory Preparation Tool Silent Mode Syntax. All
of the option arguments are required. Table 8–1describes
the options.
The utility creates the following LDIF file and shell
script to update the LDAP directory indexes and schema:
/var/tmp/dssetup_timestamp.ldif
/var/tmp/dssetup_timestamp.sh
Depending on the option values you pass in, the utility will either
proceed to update the Directory Server by executing the new script,
or not. If you have chosen not to proceed with the update, you can check the
script and make any desired modifications before running the actual update
at a later time.
Directory Preparation Tool Silent Mode Syntax
The following are all the options for running in the silent mode:
perl comm_dssetup.pl
-i yes|no
-R yes|no
-c DirectoryServerRoot
-d DirectoryInstance
-r DCTreeSuffix
-u UserGroupSuffix
-s yes|no
-D DirectoryManagerDN
-w DirectoryManagerPassword
-b yes|no -t 1|1.5|2
-m yes|no
[-S PathtoSchemaFiles]
|
Table 8–1 Explanation
of Options for RunningDirectory Preparation Tool in Silent Mode
Option and Argument
|
Description
|
-i yes|no
|
Answers the question: “Do you want to configure new indexes?”
yes Add new Directory Server indexes.
no Do not add indexes.
|
-R yes|no
|
Answers the question: “Do you want to reindex now?” The -m option must be yes also for this to take effect.
|
-c DirectoryServerRoot
|
Directory Server root path. For example: /var/opt/mps/ldap
|
-d DirectoryInstance
|
Directory Server instance subdirectory. For example: slapd-varrius
|
-r DCTreeSuffix
|
DC tree root suffix. (for Schema 1 and Schema 2 compatibility modes
only)
For example: dc=varrius,dc=sesta,dc=com
|
-u UserGroupSuffix
|
User and group root suffix. For example: dc:west,dc=sesta,dc=com
|
-s yes|no
|
Answers the question: “Do you want to update the schema?”
yes Update the schema. You must have a config directory
with the schema files.
no Do not update schema.
|
-D DirectoryManagerDN
|
Directory Manager Distinguished Name (DN). The value must be enclosed
by double quotation marks (" ") to allow the Directory Preparation Tool to
interpret a value with a space correctly.
For example: "cn=Directory Manager"
|
-w DirectoryManagerPassword
|
Directory Manager DN password.
|
-b yes|no
|
Answers the question: “Will this directory server be used for
users and groups?”
yes Use this directory to store both configuration
and user group data.
no Use this directory to store only configuration
data.
|
-t 1|1.5|2
|
Schema version:
|
-m yes|no
|
Answers the question: “Do you want to modify the directory server?”
yes Modify the Directory Server without prompting
the user.
no Do not modify the Directory Server without prompting
the user.
|
-S PathtoSchemaFiles
|
Path to the directory where the schema files are located. For example: ./schema
|