Contained WithinFind More DocumentationFeatured Support Resources | Download this book in PDF (3673 KB)
dsadm(1M)NAME | Synopsis | Description | SUBCOMMANDS | GLOBAL OPTIONS | SUBCOMMAND OPTIONS | Operands | Exit Status | Examples | Attributes | See Also NAME
Synopsisinstall-path/ds6/bin/dsadm subcommand options DescriptionThe dsadm command is the local administration command for Directory Server instances. Use the dsadm command with any of the subcommands described in this man page. dsadm must be used while the server is stopped (except subcommands dsadm info, dsadm stop and dsadm restart). It must be run from the local machine where the server instance is located. This command must be run by the username that is the Operating System owner of the server instance, or by root. SUBCOMMANDS
The following subcommands are supported: GLOBAL OPTIONS
The following options are global, and are applicable to all commands and subcommands. SUBCOMMAND OPTIONS
The following options are applicable to the subcommands where they are specified. Operands
The following operands are supported: Exit StatusExamplesThe following examples show how the dsadm command is used. Example 1 Creating a Directory Server Instance
This command creates the server instance files in the directory /local/ds. The server instance is owned by the UNIX user who creates the command. In this example, the LDAP port is specified as 6389, and the secure port is specified as 6636. If you do not specify port numbers, the default port numbers 389 and 636 (for root user) or 1389 and 1636 (for not-root user) are used. If you do not specify port numbers and the default port numbers are already being used, the dsadm create command aborts. Example 2 Starting a Directory Server InstanceThe server instance path is /local/ds.
Example 3 Getting Information About a Directory Server instanceThis command shows information such as the owner, ports, and current state of the server instance. The instance path is /local/ds.
Example 4 Importing an LDIF FileImport an LDIF file, specifying that no user confirmation is required, and giving the suffix DN.
Example 5 Exporting an LDIF FileExport a suffix to an LDIF file.
This command shows all data in the suffix dc=example,dc=com, excluding data in the subsuffix ou=People,dc=example,dc=com Example 6 Backing Up a Directory Server InstanceThis command backs up the suffix data and the configuration data. The instance path is /local/ds and the archive directory is /local/dsbackup/20060722 .
Example 7 Regenerating Attribute IndexesTo regenerate the existing cn and uid indexes:
Example 8 Renewing a CertificateUse the following command to renew an existing server certificate with a new server certificate from your Certificate Authority.
AttributesSee attributes(5) for descriptions of the following attributes:
See AlsoDS 6.3 Last Revised 12 Dec 2007NAME | Synopsis | Description | SUBCOMMANDS | GLOBAL OPTIONS | SUBCOMMAND OPTIONS | Operands | Exit Status | Examples | Attributes | See Also |
||||||||||||||