In the Enterprise Distributed Application Service (EDAS) console, you can run commands to perform batch operations on the Elastic Compute Service (ECS) instances where EDAS Agent is installed. You can run commands on all ECS instances in a cluster, ECS instances that host the same application, or only specified ECS instances. This facilitates instance management and maintenance.


You can perform batch operations in the following scenarios:

  • Scenario 1: Perform the same operation on multiple instances or across multiple clusters.
  • Scenario 2: Run multiple commands at the same time.
  • Scenario 3: Query command execution results.

Run a batch operation command

  1. Log on to the EDAS console.
  2. In the left-side navigation pane, choose System Management > Batch Operations.
  3. On the Batch Operations page, select the region and the namespace.
  4. Click the By Cluster, By Application, or By Instance tab to specify the scope of the batch operation.
    This topic describes batch operations at the cluster level. The batch operations at the application and instance levels are similar to those at the cluster level.
  5. Click Create next to Select Cluster. In the Select Cluster dialog box, select one or more clusters or search for clusters by entering keywords of cluster names in the search box in the Unselected section on the left. Click > to add the selected clusters to the Selected section on the right. Then, click OK.
  6. In the Command code editor, enter a command.
  7. Optional: If you select clusters of the same type, you do not need to select the execution scope. If you select two or more types of clusters, you must select one of the following execution scopes:
    • On ECS instances
    • In Docker containers
    • On ECS instances and In Docker containers (Both options are selected.)

    The system uses the admin account to log on to instances and run the command.

  8. Click Execute.

View execution results and details

After you click Execute, the Tip dialog box appears. Confirm the information and then click OK in the dialog box. The console automatically generates the Execution Result tab.

The Execution Result section displays details about the batch operation, including the Application Type, IP Address, VPC ID, Status, and command execution details of each ECS or Dockerized instance.

The execution details section shows the detailed command running processes on instances. If a command fails to run, an error message that indicates the cause is returned.

Note The execution time of commands varies with clusters, applications, or instances. If no execution result is displayed or the execution results are incomplete, click Refresh to obtain the latest results.

View operation records

  1. In the lower part of the Execution Records section, you can view batch operation records, including operators, creation time, end time, executed commands, and status (execution results).
    • If the current account is an Alibaba Cloud account, you can view all the batch operation commands that are run by this Alibaba Cloud account and all of its RAM users.
    • If the current account is a RAM user, you can view only the batch operation commands that are run by this RAM user.
    The operation records are sorted in descending order of time (newest first). You can also sort the records by operator name, creation time, or end time.
  2. Click View in the Details column to go to the Details page.