Exporting Rule Sets Using EM CLI

You can export a rule set from list of enterprise rule set(s) except for predefined (out-of-box) rule sets supplied by Oracle. Any user can run the export operation. No special privileges are required.

emcli export_incident_rule_set
      -rule_set_name=<rule set name>
      [-rule_set_owner=<ruleset owner>]
      -export_file=<XML file name along with the file path for the exported rule set>

Options

  • rule_set_name=<rule set name>

    Name of an enterprise rule set.

  • rule_set_owner=<ruleset owner>

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

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

    If the filename is specified as directory, it will create a file with rule set name in that directory.

Examples:

emcli export_incident_rule_set -rule_set_name=TEST_RULESET -rule_set_owner=sysman -export_file="/tmp/"

This command exports the ruleset named 'TEST_RULESET' from rule set(s) and saves at '/tmp/TEST_RULESET.xml'