batch-task task-name-list

Function

The batch-task task-name-list command sets permissions for tasks in batches.

By default, task permissions are not configured in batches.

Format

batch-task { read | write | execute | debug } * task-name-list { task-name } &<1-20>

Parameters

Parameter Description Value
read

Indicates that users in a user group associated with a task have a permission to use commands of the read type in the task. Executing the commands of the read type does not change configurations.

-

write

Indicates that users in a user group associated with a task have a permission to use commands of the write type in the task. Executing the commands of the write type changes configurations.

-

execute

Indicates that users in a user group associated with a task have a permission to use commands of the execute type in the task. Troubleshooting and maintenance commands, excluding display and debugging commands, are of the execute type. Executing the commands of the execute type does not change configurations.

-

debug

Indicates that users in a user group associated with a task have a permission to use commands of the debug type in the task. Only debugging and undo debugging commands are of the debug type.

-

task-name-list task-name

Specifies the name of a task.

The value is a string of 1 to 32 characters. You can enter the command followed by a space and a question mark (?) to view command help information and obtain the value range.

Views

Task group view

Default Level

3: Management level

Task Name and Operations

Task Name Operations
aaa write

Usage Guidelines

Usage Scenario

To ensure security, different users are granted with different permissions. You can run the task (task group view) command to set permissions for a task group so that users associated with this task group are granted with the set permissions. The batch-task command sets permissions for tasks in batches to reduce configuration workload.

Prerequisites

A task group has been created, and the task group view is displayed.

Example

# Set the read permission for the tasks named interface-mgr, aaa, and config in batches.
<HUAWEI> system-view
[~HUAWEI] aaa
[~HUAWEI-aaa] task-group 1
[*HUAWEI-aaa-task-group-1] batch-task read task-name-list interface-mgr aaa config
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >