task-group

Function

The task-group command creates a task group or accesses the task group view.

The undo task-group command deletes a task group.

By default, the following task groups are available: manage-tg, system-tg, monitor-tg, and visit-tg.

Format

task-group task-group-name

undo task-group task-group-name

Parameters

Parameter Description Value
task-group-name

Indicates the name of a task group.

The value is a string of 1 to 32 characters containing letters, digits, and underscores (_). The value must comply with the Windows naming rule and cannot contain the following characters or symbols: \, /, :, *, | , ?, ", <, >

Views

AAA view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

When the rights of the system default task group fail to meet your demand, you can create a new task group and allocate required rights (tasks) to the new task group. In this manner, user rights can be controlled in a more flexible way.

Prerequisites

The task group to be deleted exists.

Implementation Procedure

  • Creating a task group: If the task group to be created exists, the task group view is displayed; if the task group to be created does not exist, a new task group view is created.
  • Deleting a task group: If the task group to be deleted exists, it is deleted; if the task group to be deleted does not exist, the system prompts an error.

Follow-up Procedure

Allocate required rights (tasks) to the new task group.

Precautions

After configuring task-group command to create a task group, the following configurations are automatically created under the task group.

#

task interface-mgr read write execute

task config read write execute

task vlan read write execute

task shell read write execute

task cli read execute

#

The default task group cannot be deleted. When the number of task groups reaches the system threshold, no more task groups can be created.

Example

# Create a task group.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] task-group ospf_tg
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >