command group

Function

The command group command creates a configuration template and displays the configuration template view.

The undo command group command deletes a specified configuration template.

By default, no configuration template is created.

Format

command group group-name

undo command group group-name

Parameters

Parameter Description Value
group-name

Specifies the name of a configuration template.

The value is a string of 1 to 32 case-insensitive characters. The name contains English letters, digits, hyphens (-), and underscores (_). The name must start with a letter and cannot contain special characters or blank space.

Views

System view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
cli write

Usage Guidelines

Usage Scenario

Configurations in different views may be identical on a device. To simplify the configurations, create a configuration template, define configurations that are duplicate in different views in it, and apply the configuration template to specified views.

To create a configuration template, run the command group command. After the configuration template is configured, perform configurations in matching views. Regular expressions can be used in service view instances.

Precautions

  • The command group command takes effect immediately once being run.
  • Any attempt to delete a configuration template in use fails.
  • After the configuration template view is displayed, to exit the view, run the end-group or abort command.

Example

# Create a configuration template named g1 and enable IPv6 in the views of Loopback.
<HUAWEI> system-view
[~HUAWEI] command group g1
[~HUAWEI-group-g1] interface <Loopback.>
[~HUAWEI-group-g1-<Loopback.>] ipv6 enable
[~HUAWEI-group-g1-<Loopback.>] quit
[~HUAWEI-group-g1] end-group
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >