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
- Log on to the EDAS console.
- In the left-side navigation pane, choose .
- On the Batch Operations page, select the region and the namespace.
- 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.
- 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.
- In the Command code editor, enter a command.
- 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.
- 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.
View operation records
- 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).
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.
- 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.
- Click View in the Details column to go to the Details page.