Run batch O&M tasks on ECS instances, such as installing software, resetting passwords, and running scripts, via the ECS console.
Prerequisites
-
Target instances are in the Running state.
-
Cloud Assistant Agent is running on the instances. See Start, stop, or uninstall Cloud Assistant Agent.
Procedure
Remote commands require Cloud Assistant Agent and count against the Cloud Assistant command quota. See Overview for usage notes and limits.
You can also send commands from the Cloud Assistant page. See Create and run a command.
Go to ECS console - Instances.
In the upper-left corner of the page, select a region and resource group.
-
Click the instance ID to go to the details page. In the upper-right corner, click All Operations, then search for and click Send Command.
-
Configure the command settings and click Run.
NoteTo send a command to multiple instances at a time, perform batch operations on the Instance page.
Parameter
Description
Example
Command Type
-
For Linux instances, Shell is selected by default. You can also select Python or Perl.
-
For Windows instances, select Bat or PowerShell.
Shell
Execution Timeout
Timeout for command execution. The command is forcefully terminated when this period expires.
-
Valid values: 10 to 86400.
-
Unit: seconds.
60
Command Content
Commands must complete in a single execution. Interactive commands are not supported.
For shell command examples, see View the system configurations of ECS instances.
NoteAfter a command completes, you can enter another command in the Command editor to run on the selected instances.
/
-
References
-
To maintain instances with specific tags, control the executions of Cloud Assistant commands based on tags.
-
Cloud Assistant lets you maintain ECS instances without passwords or logons. See Overview.