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.
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 dsconfig command. One way is by looking at the logs/config-audit.log file. It might be more convenient to configure the Directory Server the way you want and then get the dsconfig arguments from the log. Another way is to configure an option using the Administrative Console. The console shows the equivalent dsconfig command prior to applying the change.
To get the equivalent
dsconfig non-interactive mode command:
- Use dsconfig in interactive mode to make changes to a configuration, but do not apply the changes (that is, do not enter the letter f).
- To view the equivalent non-interactive command, enter d.
View the equivalent command, and then press Enter to
Based on an example in the previous section, changes made to theCommand line to apply pending changes to this Local DB Backend: dsconfig set-backend-prop --backend-name userRoot --set db-cache-percent:40
db-cache-percentreturns the following.
The command does not contain the LDAP connection parameters required for the tool to connect to the host because it is presumed that the command would be used to connect to a different remote host.