PingDirectory

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 dsconfig command. One way is by looking at the logs/config-audit.log file. It might be more convenient to configure the PingDirectory 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 before applying the change.

To get the equivalent dsconfig non-interactive mode command:

Steps

  1. Use dsconfig in interactive mode to make changes to a configuration, but do not enter the letter f to apply the changes.

  2. To view the equivalent non-interactive command, enter d.

  3. View the equivalent command, and then press Enter to continue.

    Result:

    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.