• Use config-diff to compare PingDirectory server configurations and produce a dsconfig batch file needed to bring the source inline with the target.

    The following example compares the current configurations of server1 and server2. The changes necessary to bring server1's configuration inline with server2 are written to the console. The same credentials are used to connect to both servers.

    $ bin/config-diff --sourceHost server1 --sourceBindDN "cn=Directory Manager" \
      --sourceBindPassword password --targetHost server2

    For more information about runtime options, see Available command-line tools or the config-diff tool help.

    Important:

    The config-diff tool doesn't support connecting to different versions over LDAP. To compare configurations between servers of different versions:

    1. Copy the config/config.ldif file from the lower-version server to the higher-version server.
    2. Run one of the following commands on the higher-version server:
      • If the higher-version server is the source:
        $ bin/config-diff --sourceLocal \
          --targetFile "<lower-version config.ldif file>"
      • If the higher-version server is the target:
        $ bin/config-diff --targetLocal \
          --sourceFile "<lower-version config.ldif file>"