Background information
CloudOps Orchestration Service (OOS) allows you to run a command on multiple managed instances at a time on the Batch Instance Operations page in the OOS console.
Prerequisites
Servers that are not deployed on Alibaba Cloud are registered as Alibaba Cloud managed instances. For more information, see Alibaba Cloud managed instances.
Procedure
Log on to the CloudOps Orchestration Service (OOS) console.
In the left-side navigation pane, choose Automated Task > Common O&M Tasks. On the Common O&M Tasks page, click Batch Instance Operations. On the Batch Instance Operations page, click Create.
On the Create Batch Instance Operations page, select Send Remote Commands as Task Type. In this example, the Command Type parameter is set to Linux Shell, and the df -h command is entered.
Set the Resource Type parameter to Managed Instance. Select the managed instances on which you want to run the command.
Configure the advanced settings. Set the Execution Mode parameter to Automatic or Suspend upon Failure and the Rate control type parameter to Concurrency-based Control or Batch-based Control. Configure the Concurrency and Error Threshold parameters. In this example, default parameter settings are used. Click Create. Confirm the parameter settings and click OK.
On the Batch Instance Operations page, find the execution that you create. The execution is in the Running state. If the state of the execution changes to Success, the command is successfully run. To view more information about the execution, click Details in the Actions column. On the page that appears, click the Log tab in the output section to view the logs of the execution.