set-opendb-password command

The set-opendb-password command sets or removes an encrypted password on an OpenDB host. Passwords are saved in attribute 3 of the hosts file.

Syntax

set-opendb-password hostname

Parameter(s)

hostname Specifies the OpenDB host on which to set or remove the password.

Running this command invokes prompts to type and confirm the password. If the confirmed password does not match the first entry, you will be prompted to try again.

To remove a password from an OpenDB host, press RETURN at the Password: prompt and then press Y at the Remove Password? (Y/N) prompt.

Example(s)

The example below illustrates setting a password on the myhost.sqlserver OpenDB host. Note that the asterisks (*) in this example are for illustrative purposes and do not actually display on the screen.

set-opendb-password myhost.sqlserver
Password: ****
Confirm: ****

The example below illustrates removing a password from the myhost.sqlserver OpenDB host. Note that when prompted for a password, pressing ENTER removes the current password.

set-opendb-password myhost.sqlserver
Password:
Remove Password? (Y/N) Y