Importing Rule Sets Using EM CLI

Using EM CLI, you can write scripts to import/export large numbers of rule sets. The Create Enterprise Rule Set privilege is required in order to run the import operation from the command line or script.

You can import a rule set from list of enterprise rule set(s) except for predefined (out-of-box) rule sets supplied by Oracle.

emcli import_incident_rule_set
      -import_file=<XML file name along with the file path for the exported rule set earlier>
      [-alt_rule_set_name=<rule set name>]

Options

  • import_file=<XML file name along with the file path for the exported rule set earlier>

  • alt_rule_set_name=<rule set name>

    Optionally, you can specify the name of an enterprise rule set to use in case rule set already exists.

Example

emcli import_incident_rule_set -import_file="/tmp/TEST_RULESET.xml" -alt_rule_set_name=COPY_OF_TEST_RULESET

This command imports the rule set and names it as 'COPY_OF_TEST_RULESET' from rule set XML specified 'TEST_RULESET.xml'