create_dynamic_group

Specifies a name for the group and target selection criteria. After the group is created, you can edit the group from the Enterprise Manager Cloud Control console to configure Summary Metrics to be displayed for group members.

Format

emcli create_dynamic_group
         -name="name"
         [-target_types="target_type_1;target_type_2;..."]
         [-hostnames="host1;host2;..."]
         [-properties="prop1:val1,val2,val3;prop2:val4,val5;..."]...
         [-is_propagating="true/false"]
         [-include_indirect_members="true/false"]

[ ] indicates that the parameter is optional.

Options

  • name

    Name of the group.

  • target_types

    Target types based on which targets are selected to be included in group

  • hostnames

    Hosts where the targets will be picked up from to be included in group

  • properties

    Additional properties to be applied in target selection criteria.

  • is_propagating

    Specifies a flag to indicate whether or not a privilege on the group will be propagated to member targets or not.

    The default value is false.

  • include_indirect_members

    Specifies a flag to indicate whether or not the group should include indirect members. An indirect member is defined as a member (child target) of an aggregate target (parent target) that is included with the parent as the parent joins a Dynamic Group, but it does not meet the group's membership criteria.

    The default value is true.

Example

Creates a dynamic group named db_dynamic_group. With target selection criteria of two Oracle databases: emp_rec and payroll.

emcli create_dynamic_group 
    -name=db_dynamic_group           
    -target_types="oracle_activitygraph;oracle_database"           
    -hostnames="myhost.domain.com"
    -properties="orcl_gtp_lifecycle_status:Test, Production;
                orcl_gtp_line_of_bus:custom_log;
                orcl_gtp_location:custom_loc;
                orcl_gtp_contact:custom_contact"           
    -is_propagating=true