Managing OM Tasks
Scenarios
After creating an OM task, you can manage it from the task list. You can modify, execute, enable, disable, or delete it, or associate it with an execution account or account group.
Prerequisites
- The role you belong to has the management permission for the OM Task module. For details about how to check the permissions of each role, see Role.
- You have obtained the access permissions for the resources.
Viewing and Modifying an OM Task
You can edit steps in an OM task anytime you want to meet your changed requirements. You can view and edit OM task configuration, including the basic task settings, task steps, as well as execution date, period, and account or account group.
- Log in to your bastion host system.
- In the navigation pane, choose Operation > OM Task. The operation task list page is displayed.
- Query OM tasks.
- In the row containing the target task, click the task name or click Manage in the Operation column to go to the task details page.
- On the displayed OM task details page, view and edit basic information.
- In the Basic Info area, view basic task information, such as the department and status.
- Click Edit on the right of the Basic Info area. In the displayed dialog box, modify parameters such as Task Name and Execution Mode. For details about the parameters, see Table 1.
- View and edit execution accounts and execution account groups associated with the task.
- In the Execute Account and Execute Account Group areas, view the resource accounts or account groups associated with the task.
- Click Edit on the right of the Execute Account or Execute Account Group area. In the displayed dialog box, you can immediately add the associated resource account or account group.
- To remove an execution account or account group, click Remove in its row. This operation will immediately delete the execution account or account group from the task and cancel the authorization.
- In the displayed OM task dialog box, view and edit task steps.
- On the right of the Task Step area, click Add. In the displayed dialog box, add a task step.
- In the row of the target step in the lower part of the Task Step area, click Edit. In the displayed dialog box, modify the task step content.
- In the row of the target step in the lower part of the Task Steps area, click Remove to cancel the execution of the step immediately.
- View the execution history of an OM task in the History area.
- In the row of the target historical record in the list, click View. In the displayed dialog box, view the detailed execution result of the task step.
- In the row of the target historical record in the list, click Export to download the current execution result record immediately.
Executing an OM Task Immediately
If you have created a manual OM task, click Execute to manually execute the task. If you have created a scheduled or periodic OM task, you can also click Execute to execute the task immediately before its scheduled execution time.
During the task execution, task steps are performed in sequence. When a task step is interrupted or the selected resource is unreachable, the subsequent task steps will be stopped.
- Log in to your bastion host system.
- In the navigation pane, choose Operation > OM Task. The operation task list page is displayed.
- In the Operation column of the target O&M task, click Execute.
- In the displayed dialog box, click OK.
Enabling or Disabling an O&M Task
An enabled OM task can be executed properly. After an OM task is disabled, the task becomes invalid immediately.
- Log in to your bastion host system.
- In the navigation pane, choose Operation > OM Task. The operation task list page is displayed.
- Enable or disable an OM task.
- Enabling an OM task
- In the OM task list, select the target OM task and click Enable in the lower left corner of the list.
- In the displayed dialog box, click OK.
On the OM task list page, the status of the OM task is Enabled or a status other than Disabled.
- Disabling an OM task
- In the OM task list, select the target OM task and click Disable in the lower left corner of the list.
- In the displayed dialog box, click OK.
On the OM task list page, the status of the OM task is Disabled.
- Enabling an OM task
Deleting an OM Task
- Log in to your bastion host system.
- In the navigation pane, choose Operation > OM Task. The operation task list page is displayed.
- Delete an OM task.
- Deleting a single OM task
- In the row containing the target OM task, click Delete in the Operation column.
- In the displayed dialog box, click OK.
- Deleting OM tasks at a time
- On the OM task list page, select multiple OM tasks.
- Click Delete in the lower left corner.
- In the displayed dialog box, click OK.
- Deleting a single OM task