Background information

You can use the Batch Instance Operations feature of Operation Orchestration Service (OOS) to perform a same operation on multiple Elastic Compute Service (ECS) instances. OOS supports the following batch operations on multiple instances: sending a remote command, performing basic O&M operations, and modifying instance attributes. Examples of supported remote commands are shell commands in Linux and Bat and PowerShell commands in Windows. Basic O&M operations supported include starting, stopping, restarting, initializing, and replacing the system disk of an instance. Instance attributes that can be modified in batches include the instance name, host name, and instance description.

Procedure

  1. Log on to the OOS console.
  2. In the left-side navigation pane, choose Common O&M Tasks > Batch Instance Operations.
  3. On the Batch Instance Operations page, click Create. In the Select Task Type section, set Task Type.

    You can select Send Remote Commands or Instance Operations. In this example, select Send Remote Commands. Select Linux Shell (such as echo hello and hostname) for Command Type and enter df -h in the command content.
  4. In the Select Instances section, set Instance Selection Method.

    You can select Manually Select Instances, Specify Instance Tags, Specify Resource Group, or Upload CSV File for Instance Selection Method. In this example, select Specify Instance Tags.

  5. In the Advanced(Optional) section, set the parameters as required.

    Set Execution Mode to Automatic or Suspend upon Failure.

    Set Concurrency and Error Threshold as required.

    Set Rate Control to Concurrency-based Control or Batch-based Control. In this example, select Concurrency-based Control.
  6. Click Execute Now.

  7. On the Executions page, view the created execution. If the execution status appears as Running, the specified command is being run.
  8. When the execution status changes to Success, the command execution is successful.
  9. To view details about the execution, click Details in the Actions column. On the page that appears, click the Logs tab.