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:

  1. 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).
  2. To view the equivalent non-interactive command, enter d.
  3. 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.

    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 it is presumed that the command would be used to connect to a different remote host.