list_compliance_rules

Provides a list of compliance standard rules with specified values (attributes).

Format

emcli list_compliance_rules 
      [-attrs="<attr_list>]" 
      [-sep="<separator>"] 
      [-target_type="<target_type>"]

[ ]  indicates that the parameter is optional.

Options

  • attrs

    Attributes of the compliance standard rule. The <attr_list> is a comma separated, case insensitive, quote enclosed list of the attributes of interest. If no attributes are specified, then all attributes are returned in the following order:

    • rule_guid: Unique identifier of the compliance standard rule.

    • rule_iname: Internal name of the compliance standard rule.

    • rule_dname: Display name of the compliance standard rule in English.

    • description: English description of the compliance standard rule.

    • target_type: Applicable target type of the compliance standard rule.

    • lifecycle_state: Lifecycle status of the compliance standard rule.

    • author: Author of the compliance standard rule.

    • owner: Owner of the compliance standard rule.

    • is_system: "1" if system, "0" if user.

    • rule_dname_nlsid: Rule display name NLSID for non-English users.

    • description_nlsid: Rule description NLSID for non-English users.

    • severity: Severity of the compliance standard rule.

    • rule_type_code: Code representing the type of compliance standard rule (1 - Repository), (2 - Agent), (3 - Monitoring).

    • severity_code: Rule severity code (18 - Minor Warning), (20 - Warning), (25 - Critical).

    • is_system_code: Code to represent whether the rule is system defined (0 - False), (1 - True).

  • sep

    Output between column values. If no separator is specified, then a comma "," is used.

  • target_type

    Specifies that only rules of that target_type should be returned. If no target_type is specified, then rules for all target types are returned.

Example

The following example lists the ID, internal name, target type, and severity for all compliance standard rules for all target types. Attributes are separated by a colon (:).

emcli list_compliance_rules 
      -attsr="rule_guid:rule_iname:target_type:severity" 
      -separator=":"