< Home

rule name (audit policy view)

Function

The rule name command creates an audit policy rule and displays the audit policy rule view.

The undo rule command deletes an audit policy rule.

Format

rule name rule-name

undo rule { name rule-name | id rule-id | all }

Parameters

Parameter Description Value
rule-name Specifies the name of an audit policy rule. The value is a case-sensitive character string. The length of a name without spaces ranges from 1 to 32 characters. The length of a name with spaces ranges from 3 to 34 characters. If a name contains spaces, the name must be enclosed with quotation marks (for example, "user for test"). The name cannot contain any question marks (?), quotation marks (").
id rule-id

Specifies the ID of the audit policy rule to be deleted.

You can run the display audit-policy rule all command to view the ID of rules to be deleted.

The audit policy rule ID must exist.
all Indicates all audit policy rules. -

Views

Audit policy view

Default Level

2: Configuration level

Usage Guidelines

The undo rule id rule-id command does not support hot standby. Therefore, in hot standby networking, you need to run the command on both the active and standby devices. Run the hrp standby config enable command on the active device first. Otherwise, the command cannot be run on the standby device.

Example

# Create audit policy rule policy_audit.

<sysname> system-view
[sysname] audit-policy
[sysname-policy-audit] rule name policy_audit
[sysname-policy-audit-rule-policy_audit]
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >