NAME | SYNOPSIS | DESCRIPTION | SUBCOMMANDS | OPTIONS | EXAMPLES | EXIT STATUS | ATTRIBUTES | SEE ALSO
The directoryserver command is a comprehensive, front end to the utility programs provided by the Solaris Directory Server (DS).
Options for the directoryserver command itself must appear before the subcommand. Arguments for a subcommand must appear after the subcommand. Subcommands have specific arguments. See SUBCOMMANDS.
The following subcommands are supported:
Inactivates and locks an entry or group of entries.
The account-inactivate subcommand supports the following arguments:
Directory Server userDN with root permissions, such as Directory Manager.
Host name of Directory Server. The default value is the full hostname of the machine where Directory Server is installed.
Entry DN or role DN to activate.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting.
This is considered insecure. Use with extreme caution.
Directory Server port. The default value is the LDAP port of Directory Server specified at installation time.
Password associated with the user DN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value - can be used in place the password. The program prompts the user for a password to be entered from the terminal.
Activates an entry or group of entries.
The account-activate subcommand supports the following arguments
Directory Server userDN with root permissions, such as Directory Manager.
Host name of Directory Server. The default value is the full hostname of the machine where Directory Server is installed.
Entry DN or role DN to activate.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting.
This is considered insecure. Use with extreme caution.
Directory Server port. The default value is the LDAP port of Directory Server specified at installation time.
Password associated with the user DN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value -can be used in place the password. The program prompts the user for a password to be entered from the terminal.
Provides account status information to establish whether an entry or group of entries is inactivated or not.
The account-status subcommand supports the following arguments:
Host name of Directory Server. The default value is the full hostname of the machine where Directory Server is installed.
Entry DN or role DN whose status is required.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting.
This is considered insecure. Use with extreme caution.
Directory Server port. The default value is the LDAP port of Directory Server specified at installation time.
Password associated with the rootDN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value -can be used in place of the password. The program prompts the user for a password to be entered from the terminal.
Change the IP address of the the administrative server in the configuration.
The admin_ip subcommand supports the following arguments:
Directory Manager's DN.
Directory Manager's password.
Old IP.
New IP.
Port number.
Restore the database from the most recent archived backup.
Specify backup_directory as the backup directory.
Restore the data to the database.
The bak2db-task subcommand supports the following arguments:
Directory where the backup files are stored. By default it is under /var/ds5/slapd-serverID/bak
User DN with root permissions, such as Directory Manager. The default is the DN of the directory manager which is read from the nsslapd-root attribute under cn=config.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting.
This is considered insecure. Use with extreme caution.
Database type. The only possible database type is ldbm.
Verbose mode.
Password associated with the user DN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value - can be used in place the password. The program prompts the user for a password to be entered from the terminal.
Back up the contents of the database. It creates an entry in the directory that launches this dynamic task. An entry is generated based upon the values provided for each option.
The db2bak-task subcommand supports the following arguments:
Directory where the backup files are stored. By default it is under /var/ds5/slapd-serverID/bak. The backup file is named according to the year-month-day-hour format (YYYY_MM_DD_hhmmss).
User DN with root permissions, such as Directory Manager. The default is the DN of the directory manager which is read from the nsslapd-root attribute under cn=config.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting.
This is considered insecure. Use with extreme caution.
Database type. The only possible database type is ldbm.
Verbose mode.
Password associated with the user DN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value - can be used in place the password. The program prompts the user for a password to be entered from the terminal.
Create a backup of the current database contents. The server must be stopped to run this subcommand.
The default is /var/ds5/slapd-serverID/bak. The backup file is named according to the year-month-day-hour format (YYYY_MM_DD_hhmmss).
Restore the database from the most recent archived backup.
Specify backup_directory as the backup directory.
Create and generate the new set of indexes to be maintained following the modification of indexing entries in the cn=config configuration file.
The db2index-text subcommand supports the following arguments:
User DN with root permissions, such as Directory Manager.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting. This is considered insecure. Use with extreme caution.
Instance to be indexed.
Name of the attribute to be indexed. If omitted, all indexes defined for that instance are generated.
Verbose mode.
Password associated with the user DN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value - can be used in place the password. The program prompts the user for a password to be entered from the terminal.
Exports the contents of the database to LDIF. It creates an entry in the directory that launches this dynamic task. The entry is generated based upon the values you provide for each option. To run this subcommand the server must be running and either -n backend_instance or -s include suffix is required.
The db2ldif-task subcommand supports the following arguments:
File name of the output LDIF file.
Only the main db file is used.
User DN with root permissions, such as Directory Manager.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting. This is considered insecure.Use with extreme caution.
Output LDIF is stored in multiple files.
Minimal base 64 encoding.
Instance to be exported.
Minimal base 64 encoding.
Output LDIF to be stored in one file by default with each instance stored in instance_file name.
Export replica.
Suffix(es) to be included or to specify the subtrees to be included if -n has been used.
Request that the unique ID is not exported.
Request that the output LDIF is not folded.
Password associated with the user DN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value - can be used in place the password. The program prompts the user for a password to be entered from the terminal.
Suffixes to be excluded.
Delete, for reasons of backward compatibility the first line of the LDIF file that gives the version of the LDIF standard.
Export the contents of the database to LDIF. You must specify either the -n or the -s option or both.
The db2ldif subcommand supports the following options:
File name of the output LDIF file.
Only use the main db file.
Minimal base64 encoding.
Use of several files for storing the output LDIF with each instance stored in instance_file name (where file name is the file name specified for -a option).
Instance to be exported.
Specify that the entry IDs are not to be included in the LDIF output. The entry IDs are necessary only if the db2ldif output is to be used as input to db2index-text.
Export replica.
Suffixes to be included or to specify the subtrees to be included if -n has been used.
Suffixes to be excluded.
Request that the unique id is not exported.
Request that the output LDIF is not folded.
Delete, for reasons of backward compatibility, the first line of the LDIF file which gives the version of the LDIF standard.
Display directoryserver usage message or subcommand specific usage message.
Provide an easy and reliable way of checking the patch levels and kernel parameter settings for your system. You must install the Directory Server before you can run idsktune. It gathers information about the operating system, kernel, and TCP stack to make tuning recommendations.
The idsktune subcommand supports the following arguments:
Client-specific tuning: the output only includes tuning recommendations for running a directory client application.
Debug mode: the output includes the commands it runs internally, preceded by DEBUG heading.
The install directory.
Quiet mode. Output only includes tuning recommendations. OS version statements are omitted.
Version. Gives the build date identifying the version of the toll.
Upgrade the key from Lite to normal (only one way).
The keyupg subcommand supports the following arguments:
The key to be upgraded.
The key file path.
Import data to the directory. It create an entry in the directory that launches this dynamic task. The entry is generated based upon the values you provide for each option. The server must be running when you run this subcommand.
The ldif2sb-task subcommand supports the following arguments:
Request that only the core db is created without attribute indexes.
User DN with root permissions, such as Directory Manager.
Generation of a unique ID. Enter none for no unique ID to be generated and deterministic for the generated unique ID to be name-based. Generates a time based unique ID by default.
If you use the deterministic generation to have a name-based unique ID, you can also specify the namespace you want the server to use as follows:
-g deterministic namespace_id |
00-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx |
Generate a namespace ID as a name-based unique ID. This is the same as specifying -g deterministic.
File name of the input LDIF files. When you import multiple files, they are imported in the order in which you specify them on the command line.
Password associated with the user DN. This option allows the password to be stored in clear text in the named file for scripting. This is considered insecure. Use with extreme caution.
Instance to be imported.
Request that only the core db is created without attribute indexes.
Suffixes to be included. This argument can also be used to specify the subtrees to be included with -n.
Password associated with the user DN. Supplying the password on the command line is visible using the /bin/ps command. This is considered insecure. Use with extreme caution.
The value - can be used in place the password. The program prompts the user for a password to be entered from the terminal.
Verbose mode.
Format LDIF files, and create base 64 encoded attribute values. With Base 64 Encoding you can represent binary data, such as a JPEG image, in LDIF by using base 64 encoding. You identify base 64 encoded data by using the :: symbol. The ldifsubcommand takes any input and formats it with the correct line continuation and appropriate attribute information. The subcommand also senses whether the input requires base 64 encoding.
The ldif subcommand supports the following arguments
Interpret the entire input as a single binary value. If -b is not present, each line is considered to be a separate input value.
If -b is specified, the output is attrtype:: <base 64 encoded value.
Import the data to the directory. To run this subcommand the server must be stopped. Note that ldif2db supports LDIF version 1 specifications. You can load an attribute using the URL specifier notation, for example: jpegphoto:file:///tmp/myphoto.jpg
Merge chunk size.
Generation of a unique ID. Type none for no unique ID to be generated and deterministic for the generated unique ID to be name-based. By default a time based unique ID is generated.
If you use the deterministic generation to have a name-based unique ID, you can also specify the namespace you want the server to use as follows:
-g deterministic namespace_id |
where namespace_id is a string of characters in the following format:
00-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx |
Use this option if you want to import the same LDIF file into two different directory servers, and you want the contents of both directories to have the same set of unique IDs. If unique IDs already exist in the LDIF file you are importing, then the existing IDs are imported to the server regardless of the options you have specified.
Generate a namespace ID as a name-based unique ID. This is the same as specifying the -g deterministic option.
File name of the input LDIF file(s). When you import multiple files, they are imported in the order in which you specify them on the command line.
Instance to be imported.
Request that only the core db is created without attribute indexes.
Suffixes to be included or to specify the subtrees to be included if -n has been used.
Suffixes to be excluded
Perform an import operation over LDAP to the Directory Server. To run this subcommand the server must be running.
The ldif2ldap subcommand supports the following arguments:
User DN with root permissions, such as Directory Manager.
Password associated with the user DN.
File name of the file to be imported. When you import multiple files, they are imported in the order in which you specify them on the command line.
Start SNMP master agent. The Config and INIT files are in /usr/iplanet/ds5/plugins/snmp/magt. For more information, see the iPlanet Directory Server 5.1 Administrator's Guide.
The magt subcommand supports the following options:
The CONFIG file defines the community and the manager that master agent works with. Specify the manager value as a valid system name or an IP address.
The INIT file is a nonvolatile file that contains information from the MIB-II system group, including system location and contact information. If INIT doesn't already exist, starting the master agent for the first time creates it. An invalid manager name in the CONFIG file causes the master agent start-up to fail.
Retrieves performance monitoring information using the ldapsearch command-line utility.
Combine multiple LDIF files into a single authoritative set of entries. Typically each LDIF file is from a master server cooperating in a multi master replication agreement.[e.g. masters that refuse to sync up for whatever reason]. Optionally, it can generate LDIF change files that could be applied to original to bring it up to date with authoritative. At least two input files must be specified.
The mmldif subcommand supports the following arguments:
Write a change file (.delta) for each input file. Specify inputfile as the input LDIF files.
Print debugging information.
Write authoritative data to this file.
Convert one language encoding to another. For example, convert a native language to UTF-8 format.
The nativetoascii subcommand supports the following options:
Path to the directory which contains the conv directory
The input file name and output file name.
List supported encodings
Replace existing files.
Suffix to be mapped to the backend.
Source Encoding of input stream.
Target Encoding of output stream.
Verbose output.
Print the encrypted form of a password using one of the server's encryption algorithms. If a user cannot log in, you can use this script to compare the user's password to the password stored in the directory.
The pwdhash subcommand supports the following arguments:
The available schemes are SSHA, SHA, CRYPT and CLEARE. It generates the encrypted passwords according to scheme's algorithm. The -c specifies the encrypted password to be compared with. The result of comparison is either OK or doesn't match.
The instance directory.
The passwords are hex-encoded.
The clear passwords to generate encrypted form from or to be compared with.
Restarts the directory server.
When the -s option is not specified, restarts all instances of servers. When the -s option is specified, restarts the server specified by -s.
restart-admin
Restarts the administration server.
Restores the most recently saved Administration Server configuration information to the NetscapeRoot partition under /var/ds5/slapd-serverID/confbak.
Start proxy SNMP agent. For more information, see the iPlanet Directory Server 5.1 Administrator's Guide.
The sagt subcommand supports the following options:
The CONFIG file includes the port that the SNMP daemon listens to. It also needs to include the MIB trees and traps that the proxy SNMP agent forwards. Edit the CONFIG file located in /usr/iplanet/ds5/plugins/snmp/sagt.
Saves the administration server configuration information to the /var/ds5/slapd-serverID/confbak directory.
Configures an instance of the directory server or administration server. Creates a basic configuration for the directory server and the administrative server that is used to manage the directory.
The setup subcommand has two modes of operation. You can invoke it with a curses-based interaction to gather input. Alternatively, you can provide input in a configuration file using the -f option.
The setup subcommand supports the following option:
Specifies the configuration file for silent installation.
Starts the directory server. When the -s option is not specified, starts servers of all instances. When the -s option is specified, starts the server instance specified by -s.
Starts the directory server.
When the -s option is not specified, restarts all instances of servers. When the -s option is specified, restarts the server specified by -s.
Starts the directory console..
Stops the directory server.
When the -s option is not specified, restarts all instances of servers. When the -s option is specified, restarts the server specified by -s.
Stop the administration server.
Map a suffix to a backend name.
Specify -s suffix as the suffix to be mapped to the backend.
Uninstalls the directory server and the administration server.
This subcommand stops servers of all instances and removes all the changes created by setup.
Create virtual list view (VLV) indexes, known in the Directory Server Console as Browsing Indexes. The server must be stopped beforehand.
The vlvindex subcommand supports the following arguments:
Specify the debug level to use during index creation. Debug levels are defined in nsslapd-errorlog-level (error Log Level). See the iPlanet Directory Server 5.1 Configuration, Command, and File Reference.
Name of the database containing the entries to index.
Name of the suffix containing the entries to index.
Name of the database containing the entries to index.
Options for the directoryserver command itself must appear before the subcommand argument.
The following options are supported:
The server instance name. Specify the directory server instance to process the command against. For some of the listed subcommands the server instance is optional and for other sub commands it is a required option.
The following command starts all the instances of the directory servers:
example% directoryserver start |
The following command starts the instances myhost of the directory server.
example% directoryserver -s myhost start |
The following command runs the monitor tool and output the current status of the ephesus directory instance.
example% directoryserver -s ephesus monitor |
The following command runs the idsktune tool and outputs performance tuning information:
example% directoryserver idsktune |
See attributes(5) for descriptions of the following attributes:
ATTRIBUTE TYPE |
ATTRIBUTE VALUE |
---|---|
Availability |
IPLTdsr, IPLTdsu |
iPlanet Directory Server 5.1 Administrator's Guide
iPlanet Directory Server 5.1 Configuration, Command, and File Reference
NAME | SYNOPSIS | DESCRIPTION | SUBCOMMANDS | OPTIONS | EXAMPLES | EXIT STATUS | ATTRIBUTES | SEE ALSO