All Products
Search
Document Center

CloudOps Orchestration Service:Manage multiple instances at a time

Last Updated:Feb 07, 2024

Background information

Operation Orchestration Service (OOS) allows you to perform an operation on multiple Elastic Compute Service (ECS) instances at a time. To do so, go to the Batch Instance Operations page in the OOS console. OOS supports the following batch operations on multiple instances: sending remote commands, performing basic O&M operations, and modifying instance attributes. The supported remote commands include shell commands in Linux and Bat and PowerShell commands in Windows. The supported basic O&M operations include starting, stopping, and restarting ECS instances, and initializing and replacing the system disks of ECS instances. The attributes that can be modified for multiple instances include the instance name, hostname, and instance description.

Warning
  • If you perform an operation such as starting, stopping, or restarting ECS instances, the specified ECS instances are started, stopped, or restarted. This may cause service interruption.

  • If you perform an operation such as initializing or replacing the system disks of ECS instances, the data on the system disks of the specified ECS instances may not be saved.

Procedure

  1. Log on to the OOS console.

  2. In the left-side navigation pane, choose Common O&M Tasks > Batch Instance Operations. On the Batch Instance Operations page, click Create.

  3. Select a task type. You can select Send Remote Commands, Batch Download Files, Instance Operations, or Modify Instance Attributes as Task Type. In this example, Send Remote Commands is selected as the task type. The Command Type parameter is set to Linux Shell, and the df -h command is entered.

  4. Select instances. You can select Manually Select Instances, Specify Instance Tags, Specify Resource Group, Upload CSV File, Select All, or Specify Inventory Conditions as Instance Selection Method. In this example, Manually Select Instances is selected.

  5. Configure advanced settings. Select Automatic or Suspend upon Failure as Execution Mode. Select Concurrency-based Control or Batch-based Control as Rate Control. Configure the Concurrency and Error Threshold parameters. In this example, the default values are used. Click Execute Now.

  6. Confirm the parameter settings. If the settings are correct, click OK.

  7. On the Batch Instance Operations page, you can view the execution that you create. The execution is in the Running state. When the state of the execution changes to Success, the execution is successful. To view more information about the execution, click Details in the Actions column. On the page that appears, click the Logs tab in the Output section to view the logs of the execution.