< Home

rule move (audit policy view)

Function

The rule move command moves an audit policy rule to change the priority of the audit policy rule.

Format

rule move rule-name1 { { after | before } rule-name2 | up | down | top | bottom }

Parameters

Parameter Description Value
rule-name1 Specifies the name of a rule to be moved. The specified audit policy rule must exist.
after Moves rule-name1 to after rule-name2. -
before Moves rule-name1 to before rule-name2. -
rule-name2 Specifies the name of the target rule. The specified audit policy rule must exist.
up Moves the rule before the upper one. -
down Moves the rule after the lower one. -
top Moves the rule to the top. -
bottom Moves the rule to the bottom (before the default policy). -

Views

Audit policy view

Default Level

2: Configuration level

Usage Guidelines

The topmost audit policy rule has the highest priority and is matched first.

One audit policy rule configured before another is ranked ahead of and given higher priority than the later configured rule.

An administrator can use the rule move command to move an audit policy rule to change its priority.

Example

# Move audit policy rule test1 to before test2 so that test1 has a higher priority than test2.

<sysname> system-view
[sysname] audit-policy
[sysname-policy-audit] rule move test1 before test2
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >