< Home

rule copy (flow probe policy view)

Function

The rule copy command clones a flow probe policy rule.

Format

rule copy rule-name new-rule-name

Parameters

Parameter Description Value
rule-name Specifies the name of a flow probe policy rule to be cloned. The specified flow probe policy rule must exist.
new-rule-name Specifies a new name for the flow probe policy rule. The value is a case-sensitive 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, "policy for test"). The name cannot contain any question mark (?) or quotation mark (").

Views

Flow probe policy rule view

Default Level

2: Configuration level

Usage Guidelines

If a new flow probe policy rule is similar to an existing one, you can run the rule copy command to clone the existing policy rule as a new rule.

Example

# Clone flow probe policy rule policy_probe and name it to policy_probe_1.

<sysname> system-view
[sysname] flow-probe-policy
[sysname-policy-probe] rule copy policy_probe policy_probe_1
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >