Previous Topic: removeSubgroups—Remove Subgroups from Server GroupsNext Topic: stagingserver—Scalability Server Commands


Example

Suppose that the server groups named "LA admin" and "LA sales" should be removed from the server group "LA District" again.

The following command will remove these groups as subgroups from the supergroup "LA District":

cadsmcmd servergroup action=removeSubgroups name="LA District" servgrp="LA admin" servgrp="LA sales" 

The groups "LA admin" and "LA sales" are not deleted from the database by the command; they are only removed from the group "LA District". Any other containment relations beside the ones previously shown are still present.

The command will report an error if the containment relation to be broken is the only one for one of the subgroups to be removed. For example, "LA admin" is only mentioned as a subgroup of "LA District" while the other subgroups are also mentioned in the folder "Scalability Server Groups" or in other groups.