The dsconfig non-interactive command-line mode provides a simple way to make arbitrary changes to the Directory Proxy Server by invoking it from the command line. To use administrative scripts to automate configuration changes, run the dsconfig command in non-interactive mode, which is convenient scripting applications. Note, however, that if you plan to make changes to multiple configuration objects at the same time, then the batch mode might be more appropriate.

You can use the dsconfig tool to update a single configuration object using command-line arguments to provide all of the necessary information. The general format for the non-interactive command line is:

$ bin/dsconfig --no-prompt {globalArgs} {subcommand} {subcommandArgs}

The --no-prompt argument indicates that you want to use non-interactive mode. The {sub-command} is used to indicate which general action to perform. The {globalArgs} argument provides a set of arguments that specify how to connect and authenticate to the Directory Proxy Server. Global arguments can be standard LDAP connection parameters or SASL connection parameters depending on your setup. For example, using standard LDAP connections, you can invoke the dsconfig tool as follows:

$ bin/dsconfig --no-prompt list-backends \
  --hostname \
  --port 389 \
  --bindDN uid=admin,dc=example,dc=com \
  --bindPassword password
If your system uses SASL GSSAPI (Kerberos), you can invoke dsconfig as follows:
$ bin/dsconfig --no-prompt list-backends \
  --saslOption mech=GSSAPI \
  --saslOption \
  --saslOption ticketcache=/tmp/krb5cc_1313 \
  --saslOption useticketcache=true

The {subcommandArgs} argument contains a set of arguments specific to the particular subcommand that you wish to invoke. To always display the advanced properties, use the --advanced command-line option.

Note: Global arguments can appear anywhere on the command line (including before the subcommand, and after or intermingled with subcommand-specific arguments). The subcommand-specific arguments can appear anywhere after the subcommand.