The task command adds a task to a task group.
The undo task command deletes a task from a task group.
By default, tasks in a task group can be added only by users in the administrator user group on a PS, or a VS. Users in other user groups cannot add tasks.
Parameter | Description | Value |
---|---|---|
task-name |
Indicates the name of a task. |
It 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. |
read |
Indicates that users in a user group have the right to read commands in the task. The task command with the parameter read does not change configurations. |
- |
write |
Indicates that users in a user group have the right to write commands in the task. The task command with the parameter write does not change configurations. |
- |
execute |
Indicates that users in a user group have the right to execute commands in the task. execute is applicable to location and diagnosis commands excluding the display and debugging commands. The task command with the parameter execute does not change configurations. |
- |
debug |
Indicates that users in a user group have the right to run debugging commands. |
- |
Usage Scenario
To ensure security, different users are granted with different permissions. You can run the task command to configure the access authority for certain task group. Therefore, the relevant users in the task group can have the access authority specified for the task.
By default, users have permission for specific tasks after a task group is created.
Prerequisites
You have created a task group and accessed the task group view.
Precautions
By default, tasks in a task group can be added only by users in the administrator user group on a PS, or a VS. Users in other user groups cannot add tasks.
The task-name is system-defined and cannot be created or deleted. You can run the display task to view information about all tasks in the system.