The batch-task task-name-list command sets permissions for tasks in batches.
By default, task permissions are not configured in batches.
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. |
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.