You need to enable JavaScript to run this app.
Elastic Compute Service

Elastic Compute Service

Copy page
Download PDF
Instances
Batch sending remote commands
Copy page
Download PDF
Batch sending remote commands
If you want to quickly complete routine maintenance for multiple instances (for example, batch view ECS instance information, install or uninstall software, reset user password, and automate operation and maintenance scripts), you can use the remote command sending feature in the ECS console. This topic introduces how to send commands to one or more instances on the Instances page.​
tip​
This feature relies on the cloud assistant Agent and orchestration. You can also send and execute commands directly on the operation and maintenance orchestration page. For details, refer to Creating batch instance tasks.​
Prerequisites​
  • When using the Orchestration service for the first time, you need to create the CustomRoleForOOS role to complete the authorization. Learn more.​
  • When batch sending commands, you need to ensure that the selected instances meet the following conditions:​
  • All instances must be Linux or Windows instances.​
  • All instances must be in the Running state.​
  • The cloud assistant Agent has been installed on all instances, and its state is Running.​
Procedure​
  1. Log in to the ECS console.​
  1. In the left-side navigation pane, select "Instances & Images > Instances".​
  1. In the top menu bar, select the project and region to which the target instance belongs.​
  1. On the Instances page, select one or more instances and click the "··· > Send command" button at the bottom of the list.​
  1. The system pops up a "In bulk send command" window. Here, you can view operable instances, inoperable instances, and the reasons.​
If there are inoperable instances, this indicates that some instances do not meet the conditions required to perform this action. You can address the issue based on prompts and try again once the conditions are met.​
  1. Click the "Continue" button to go to the operation orchestration page and configure related parameters. For specific configurations, please refer to Creating batch instance tasks - Send commands.​
Related documents​
Last updated: 2026.06.18 16:22:24