< Home

rule copy (audit policy view)

Function

The rule copy command clones an audit policy rule.

Format

rule copy rule-name new-rule-name

Parameters

Parameter Description Value
rule-name Specifies the name of the audit policy rule to be cloned. The specified audit policy rule must exist.
new-rule-name Specifies the name of the new 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 (").

Views

Audit policy rule view

Default Level

2: Configuration level

Usage Guidelines

You can clone an audit policy rule and modify it to create a similar audit policy rule.

If the name contains more than 32 characters, the device automatically truncates the name and ensures that the name does not conflict with existing ones.

Example

# Clone audit policy rule policy_audit and name the cloned copy policy_audit_1.

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