< Home

rule move (file blocking profile view)

Function

The rule move command moves a file blocking rule.

Format

rule move name1 { after | before } name2

Parameters

Parameter Description Value
name1 Specifies the name of a rule to be moved. The target rule must be one that exists in the system.
after Moves the rule to after the target one. -
before Moves the rule to before the target one. -
name2 Specifies the name of the target rule. The target rule must be one that exists in the system.

Views

File blocking profile view

Default Level

2: Configuration level

Usage Guidelines

The position of a file blocking rule determines the priority of the rule. The topmost rule has the highest priority and is matched first.

Example

# In the file blocking profile abc, move file blocking rule def after rule hij.

<sysname> system-view
[sysname] profile type file-block name abc
[sysname-profile-file-block-abc] rule move def after hij
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >