All Products
Search
Document Center

Bastionhost:O&M task management

Last Updated:Jul 31, 2026

O&M engineers can create automatic O&M tasks on multiple hosts simultaneously. To enhance security, administrators can manage these tasks. Administrators can also create public O&M scripts for O&M engineers. This topic describes how administrators manage O&M tasks and create public O&M scripts.

Supported editions

Enterprise Edition and SM Edition

Note

If your Bastionhost instance is a Basic Edition instance, you must upgrade it to a supported edition. For more information, see Upgrade an instance.

Manage O&M tasks

  1. Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.

  2. In the list of Bastionhost instances, find the target instance and click Manage.

  3. In the navigation pane on the left, choose Assets > O&M Task Management

  4. On the O&M Tasks tab, perform one of the following operations as needed:

    1. View task details: The task list displays information such as the execution mode, execution time, and creator of each task. You can also click a task name or click View in the Actions column to open a panel that shows the content of the O&M script and the associated host accounts.

    2. Stop a task: In the Actions column, click Stop. To stop multiple tasks, select them and click Stop at the bottom of the list.

    3. Delete a task: In the Actions column, click Delete. To delete multiple tasks, select them and click Delete at the bottom of the list.

      Note
      • Deleting an O&M task also removes it from the O&M engineer's view.

      • After an O&M task is created, the project to which it belongs cannot be changed.

Create a public O&M script

After an administrator creates a public O&M script, O&M engineers can select it when they create new O&M tasks. For more information, see Automatic O&M.

  1. Log on to the Bastionhost console. In the top navigation bar, select the region where your Bastionhost instance is located.

  2. In the list of Bastionhost instances, find the target instance and click Manage.

  3. In the navigation pane on the left, choose Assets > O&M Task Management

  4. On the Public Script Management tab, click Create O&M Script.

  5. In the Create O&M Script panel, enter a script name and the script content, and then click Create O&M Script.

    Note
    • Script Name: The name must be 1 to 128 characters long and cannot start with a special character. The only allowed special characters are periods (.), underscores (_), hyphens (-), and spaces.

    • Script Content: The content supports only Shell commands and cannot exceed 64 KB.

Related topics

Bastionhost allows you to create automatic O&M tasks to automate O&M on hosts at scale, improving efficiency. For more information, see Automatic O&M.