Getting the equivalent dsconfig non-interactive mode command
Although the dsconfig
non-interactive command-line mode is convenient for scripting and automating processes, obtaining the correct arguments and properties for each configuration change can be time-consuming.
About this task
For quick and easy configuration, use an option to display the equivalent non-interactive command using dsconfig
interactive mode. The command displays the equivalent dsconfig
command to recreate the configuration in a scripted configuration or to enter any pending changes on the command line for another server instance more quickly.
There are two other ways to get the equivalent |
To get the equivalent dsconfig
non-interactive mode command:
Steps
-
Use
dsconfig
in interactive mode to make changes to a configuration, but do not enter the letterf
to apply the changes. -
To view the equivalent non-interactive command, enter
d
. -
View the equivalent command, and then press Enter to continue.
Based on an example in the previous section, changes made to the db-cache-percent
returns the following message.
Command line to apply pending changes to this Local DB Backend: dsconfig set-backend-prop --backend-name userRoot --set db-cache-percent:40
The command does not contain the LDAP connection parameters required for the tool to connect to the host because the command is presumed to be used to connect to a different remote host.