< Home

action (audit policy rule view)

Function

The action command configures the action in the audit policy rule.

Format

action { audit profile audit-profile | no-audit }

Parameters

Parameter Description Value
audit Indicates that the traffic matching the rule is to be audited. -
profile audit-profile Specifies the name of the audit profile. The specified audit profile must exist.
no-audit Indicates that the traffic matching the rule is not to be audited. -

Views

Audit policy rule view

Default Level

2: Configuration level

Usage Guidelines

None

Example

# Set the action in audit policy rule policy_audit to audit and set the audit object to profile profile_audit.

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