< Home

profile type file-block copy

Function

The profile type file-block copy command clones a file blocking profile and displays the file blocking profile view.

Format

profile type file-block copy old-name [ new-name ]

Parameters

Parameter Description Value
old-name Specifies the name of the file blocking profile to be cloned. The file blocking profile must be one that exists in the system.
new-name Specifies the name of the new file blocking profile.

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 (?), commas (,), quotation marks ("), or hyphens (-).

Views

System view

Default Level

2: Configuration level

Usage Guidelines

You can clone an existing file blocking profile and modify it to create a similar file blocking profile.

If to new-name is not specified, the name of the new file blocking profile is set to "name_n" by default. n indicates the number of times the file blocking profile is cloned. The value is an integer starting from 1. For example, if this is the third time the file blocking profile is cloned, the default name is name_3.

Example

# Create two file blocking profiles by cloning file blocking profile abc.

<sysname> system-view
[sysname] profile type file-block copy abc
[sysname-profile-file-block-abc_1] quit
[sysname] profile type file-block copy def 
[sysname-profile-file-block-def] 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >