After you have set up a server group, you can make an update on one server using dsconfig, then apply the change to the other servers in the group using the --applyChangeTo server-group option of the dsconfig non-interactive command. If you want to apply the change to one server in the group, use the --applyChangeTo single-server option. When using dsconfig in interactive command-line mode, you are asked if you want to apply the change to a single server or to all servers in the server group.

You can create an administrative server group using the dsconfig tool. The general process is to create a group, add servers to the group, and then set a global configuration property to use the server group. If you are configuring a replication topology, then you must configure the replicas to be in a server group, as outlined in Replication Configuration.

The following example procedure adds three instances into the server group labeled "group-one".

  1. Create a group called “group-one” using dsconfig.
    $ bin/dsconfig create-server-group --group-name group-one
  2. Add any PingDirectory Server to the server group.

    If you have set up replication between a set of servers, these server entries are created by the dsreplication enable command.

    $ bin/dsconfig set-server-group-prop \
      --group-name group-one --add member:server1
    
    $ bin/dsconfig set-server-group-prop \
      --group-name group-one --add member:server2
    
    $ bin/dsconfig set-server-group-prop \
      --group-name group-one --add member:server3
  3. Set a global configuration property for each of the servers that should share changes in this group.
    $ bin/dsconfig set-global-configuration-prop \ 
      --set configuration-server-group:group-one
  4. Test the server group.

    In this example, enable the log publisher for each PingDirectory Server in the group "server-group" by using the --applyChangeTo server-group option.

    $ bin/dsconfig set-log-publisher-prop \ 
      --publisher-name "File-Based Audit Logger" \ 
      --set enabled:true \
      --applyChangeTo server-group
  5. View the property on the first PingDirectory Server instance.
    $ bin/dsconfig get-log-publisher-prop \ 
      --publisher-name "File-Based Audit Logger" \
      --property enabled
    Property : Value(s) 
    ---------:--------- 
    enabled : true
  6. Repeat step 5 on the second and third PingDirectory Server instances.
  7. Test the server group by disabling the log publisher on the first PingDirectory Server instance by using the --applyChangeTo single-server.
    $ bin/dsconfig set-log-publisher-prop \ 
      --publisher-name "File-Based Audit Logger" \ 
      --set enabled:disabled \ 
      --applyChangeTo single-server
  8. View the property on the first PingDirectory Server instance.

    The first PingDirectory Server instance should be disabled.

    $ bin/dsconfig get-log-publisher-prop \ 
      --publisher-name "File-Based Audit Logger" \ 
      --property enabled
    Property : Value(s) 
    ---------:--------- 
    enabled : false
  9. View the property on the second PingDirectory Server instance.

    Repeat this step on the third PingDirectory Server instance to verify that the property is still enabled on that server.

    $ bin/dsconfig get-log-publisher-prop \ 
      --publisher-name "File-Based Audit Logger" \ 
      --property enabled
    Property : Value(s) 
    ---------:--------- 
    enabled : true