modify_group
Adds or removes targets from an existing group.
An error is not generated when attempting to delete a non-existent target in the group or when attempting to add a target that already exists in the group.
Standard Mode
emcli modify_group
      -name="name"
      [-type=<group>]
      [-add_targets="name1:type1;name2:type2;..."]...
      [-delete_targets="name1:type1;name2:type2;..."]...
      [-privilege_propagation=true|false]
      [-drop_existing_grants=yes|no]
[ ]  indicates that the parameter is optionalInteractive or Script Mode
modify_group
      (name="name"
      [,type="<group>"]
      [,add_targets="name1:type1;name2:type2;..."]...
      [,delete_targets="name1:type1;name2:type2;..."]...
      [,privilege_propagation="true|false"]
      [,drop_existing_grants="yes|no"])
[ ]  indicates that the parameter is optionalOptions
- 
                        name Target name of the group to modify. 
- 
                        type Group type: group. Defaults to group.
- 
                        add_targets Targets to add, each specified as target_name:target_type. You can specify this option more than once for Standard Mode.
- 
                        delete_targets Targets to delete, each specified as target_name:target_type. You can specify this option more than once for Standard Mode.
- 
                        privilege_propagation Enables or disables the privilege propagation flag for the group. Converts the normal group to a privilege propagating group and vice versa. 
- 
                        drop_existing_grants Drops the existing grants on a group during privilege propagation conversion. This option is only applicable with the privilege_propagation parameter. The default value is yes. 
Examples
These examples modify group db2_group by adding database database:oracle_database and deleting database database2:oracle_database from the group.
                  
Example 1 - Command-Line
emcli modify_group 
      -name=db2_group
      -add_targets=database:oracle_database
      -delete_targets=database2:oracle_database
Example 2 - Scripting and Interactive
modify_group
      (name="db2_group", 
       add_targets="database:oracle_database", 
       delete_targets="database2:oracle_database")
These examples modify group my_hosts by adding host yourhost.example.com:host to the group.
                  
Example 3 - Command-Line
emcli modify_group 
      -name=my_hosts
      -add_targets=yourhost.example.com:host
Example 4 - Scripting and Interactive
modify_group
       (name="my_hosts", 
        add_targets="yourhost.example.com:host")