Exit Print View

Sun OpenDS Standard Edition 2.0 Command-Line Usage Guide

Get PDF Book Print View
 

Document Information

Directory Server Administration Tools

create-rc-script

dsconfig

dsreplication

manage-tasks

setup

status

start-ds

stop-ds

uninstall

upgrade

windows-service

Data Administration Tools

LDAP Client Utilities

Other Tools

General Tool Usage Information

uninstall

The uninstall command stops and removes a directory server instance.

Synopsis

uninstall options

Description

The uninstall command can be used to stop and uninstall all or selected directory server components. The command connects to the server over SSL, via the administration connector port (described in Managing Administration Traffic to the Server in Sun OpenDS Standard Edition 2.0 Administration Guide) and can be run in one of three modes:

Whether running in GUI mode or in command-line mode, uninstall lists the components that you can remove. If uninstall cannot remove all of the directory server files, it displays a message that lists any directories that are still present.

Options

The uninstall command accepts an option in either its short form (for example, -Q) or its long form equivalent (for example, --quiet).

-a, --remove-all

Remove all components.

-b, --backup-files

Remove all backup files.

-c, --configuration-files

Remove configuration files.

-d, --databases

Remove all database content.

-e, --ldif-files

Remove LDIF files.

-f, --forceOnError

Specify whether the uninstall tool should continue when an error occurs during processing. This option can only be used with --no-prompt.

-i, --cli

Run the utility in interactive mode rather than in GUI mode. If this option is not used, it cannot accept other options.

-l, --server-libraries

Remove server libraries and administrative tools.

-L, --log-files

Remove all log files.

LDAP Connection Options
-h, --referencedHostName host

Specify the name of this host (or IP address) as it is referenced in remote servers for replication.

-I, --adminUID user-ID

Specify the user ID of the global administrator to bind to the directory server.

-j, --bindPasswordFile filename

Use the bind password in the specified file when authenticating to the directory server. This option must not be used in conjunction with --bindPassword.

-K, --keyStorePath path

Use the client keystore certificate in the specified path.

-N, --certNickname nickname

Use the certificate for SSL client authentication.

-o, --saslOption name=value

Use the specified options for SASL authentication.

-P, --trustStorePath path

Use the client trust store certificate in the specified path. This option is not needed if --trustAll is used, although a trust store should be used when working in a production environment.

-T, --trustStorePassword password

Use the password needed to access the certificates in the client trust store. This option is only required if --trustStorePath is used and the specified trust store requires a password to access its contents (which most trust stores do not require). This option must not be used in conjunction with --trustStorePasswordFile.

-u, --keyStorePasswordFile filename

Use the password in the specified file to access the certificates in the client keystore. This option is only required if --keyStorePath is used. This option must not be used in conjunction with --keyStorePassword.

-U, --trustStorePasswordFile filename

Use the password in the specified file to access the certificates in the client trust store. This option is only required if --trustStorePath is used and the specified trust store requires a password to access its contents (most trust stores do not require this). This option must not be used in conjunction with --trustStorePassword.

-w, --bindPassword password

Use the bind password when authenticating to the directory server. This password can be used for simple authentication as well as password-based SASL mechanisms. This option must not be used in conjunction with --rootUserPasswordFile. To prompt for the password, type -w -.

-W, --keyStorePassword password

Use the password needed to access the certificates in the client keystore. This option is only required if --keyStorePath is used. This option must not be used in conjunction with --keyStorePasswordFile.

-X, --trustAll

Trust any certificate that the server presents. This option can be used for testing purposes, but for security reasons, a trust store should be used to determine whether the client should accept the server certificate.

Utility Input/Output Options
-n,--no-prompt

Run in non-interactive mode. If some data in the command is missing, you are not prompted and the uninstall will fail.

--noPropertiesFile

Indicate that the utility will not use a properties file to get the default command-line options.

--propertiesFilePath path

Specify the path to the properties file that contains the default command-line options.

-Q, --quiet

Run in quiet mode. No output will be generated unless a significant error occurs during the process.

-v, --verbose

Run in verbose mode, displaying diagnostics on standard output.

General Options
-?, -H, --help

Display command-line usage information for the utility and exit without making any attempt to stop or restart the directory server.

--version

Display the version information for the directory server and exit rather than attempting to run this command.

Examples

The following examples show how to use the directory server commands. You can use the commands on any UNIX, Linux, or Windows system that has at least the Java SE 5 (at least Sun version 1.5.0_08, preferably the latest version of Java SE 6) runtime environment installed on its target system.

Example 28
Uninstalling by Using the Graphical Uninstaller

The following command opens the Uninstaller GUI and prompts you to select the components that must be deleted:

$ uninstall
Example 29
Uninstalling by Using the Command Line

The following command prompts you to indicate whether all components, or specific components, should be removed, and then runs the uninstall utility. If the directory server is running, you are prompted to stop the server before continuing.

$ uninstall --cli
Example 30
Uninstalling All Components

The following command removes all directory server components. When prompted to confirm your request, accept the default to remove your directory server instance.

$ uninstall --cli -a
Example 31
Uninstalling Specific Components

The following command removes the libraries (-l) on the directory server. Everything else is preserved. If the directory server is running, the command prompts you to stop the server.

$ uninstall --cli -l
Example 32
Uninstalling in Script-Friendly Mode

Script-friendly mode enables you to create an uninstallation script with the uninstall utility. Script-friendly mode requires the --no-prompt (-n) and --quiet (-Q) options to be provided. If no option is present, the uninstall utility defaults to interactive mode.

The following command uninstalls all server components in script-friendly mode.

$ uninstall --cli -a -n -Q
Exit Codes

An exit code of 0 indicates that the operation completed successfully. An exit code of 1 indicates that an error occurred during processing.

Using a Properties File

The directory server supports the use of a properties file that passes in any default option values used with the uninstall command. The properties file is convenient when working in different configuration environments, especially in scripted or embedded applications. For more information, see Using a Properties File With Directory Server Commands.

The following options can be stored in a properties file:

Entries in the properties file have the following format:

toolname.propertyname=propertyvalue

For example:

uninstall.bindPassword=password
Log Files

The uninstall utility writes a log file named opends-uninstallation-IDnumber, where IDnumber is a decimal number. The log files are located at these paths:

Location

The uninstall command is located at these paths:

Related Commands