add_target_to_rule_set

Adds a target to an enterprise rule set.

Privilege Requirements: A Super Administrator can add a target to any enterprise rule set except for predefined (out-of-box) rule sets supplied by Oracle.Only the owner or co-author of a rule set can add a target to it.

Format

emcli add_target_to_rule_set 
      -rule_set_name="rule set name"
      -target_name="target name"
      -target_type="internal name for the target type. For example, host"
      [-rule_set_owner=<ruleset owner>] 

[ ]  indicates that the parameter is optional

Options

  • rule_set_name

    Name of an enterprise rule set. This option only applies to rule sets that are associated with a list of targets.

  • target_name

    Name of the target to be added.

  • target_type

    Target type of the target to be added. For example, host.

  • rule_set_owner

    Optionally, you can specify the owner of the rule set.

Example

This example adds the host target myhost.com to a rule set named rules. This rule set is owned by the administrator sysman.

emcli add_target_to_rule_set -rule_set_name='rules' -target_name='myhost.com' -target_type='host' -rule_set_owner='sysman'