All Products
Search
Document Center

Elastic Compute Service:Send remote commands

Last Updated:May 15, 2026

Run batch O&M tasks on ECS instances, such as installing software, resetting passwords, and running scripts, via the ECS console.

Prerequisites

Procedure

Remote commands require Cloud Assistant Agent and count against the Cloud Assistant command quota. See Overview for usage notes and limits.

Note

You can also send commands from the Cloud Assistant page. See Create and run a command.

  1. Go to ECS console - Instances.

  2. In the upper-left corner of the page, select a region and resource group.地域

  3. 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.

  4. Configure the command settings and click Run.

    Note

    To 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.

    Note

    After a command completes, you can enter another command in the Command editor to run on the selected instances.

    /

References