< Home

profile type ips copy

Function

The profile type ips copy command clones an existing intrusion prevention profile and displays the view of the new profile.

Format

profile type ips copy old-name [ new-name ]

Parameters

Parameter Description Value

old-name

Specifies the name of an intrusion prevention profile to be cloned.

The value must be the name of an existing intrusion prevention profile.

new-name

Specifies the name of the new intrusion prevention profile.

The value is a case-sensitive string. If the name does not contain any spaces, the length is 1 to 32 characters. If the name contains spaces, the length is 3 to 34 characters and the name must be enclosed with double 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

If you need to create an intrusion prevention profile that is similar to an existing one, clone the existing one or use an intrusion prevention profile template.

If new-name is not specified, the default name of the new intrusion prevention profile is old-name_n. n indicates the number of times the profile has been cloned. It is an integer starting from 1.

Example

# Create two intrusion prevention profiles by using profile template default.

<sysname> system-view
[sysname] profile type ips copy default
[sysname-profile-ips-default_1] quit
[sysname] profile type ips copy default p_ips_1 
[sysname-profile-ips-p_ips_1] 
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >