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

Elastic Compute Service

Copy page
Download PDF
Managing commands
Managing custom commands
Copy page
Download PDF
Managing custom commands
Custom commands are a feature of the cloud assistant designed to meet your personalized O&M requirements. When preset public commands can not meet your requirements, you can create custom commands. After this, you can run the custom commands you have written on multiple instances at the same time via O&M tasks.​
Usage notes​
  • In the same region, the maximum number of custom commands you can create is 500, and the content size of a custom command must not exceed 16 KB.​
Create custom commands​
You can create custom commands as needed and use them to create O&M tasks.​
tip​
You can also create custom commands by using the public command cloning feature. For operation details, refer toCloning into custom commands.​
Procedure​
  1. Log in to the ECS console. ​
  1. In the left-side navigation pane, select "Maintenance & Monitoring > Cloud Assistant" and then select the "Custom commands" tab. ​
  1. In the top menu bar, select the region where your business is located. ​
  1. Click the "Create a custom command" button and enter the command configuration information as needed. For parameter descriptions, refer to Cloning into custom commands.​
  1. Click the "Confirm" button to create a custom command.​
Subsequent steps​
After the command is created successfully, you are automatically redirected to the Custom commands page. Here, you can create jobs, clone commands into custom commands, or perform other operations.​
Related features​
​
Feature​
Description​
Edit custom commands​
If an existing custom command cannot meet your O&M requirements, you can change its command content and other information. Specific steps are as follows:​
  1. In the "Action" column of the target command, click the "Edit" button.​
  1. Change the command configuration information as needed. For parameter descriptions, refer to Cloning into custom commands.​
  1. Click the "Confirm" button to complete the operation.​
Delete custom commands​
You can delete custom commands that are no longer required. However, you can not restore deleted custom commands, so please proceed with caution. Steps to delete a custom command are as follows:​
  1. In the "Action" column of the target command, click the "Delete" button.​
  1. Click the "Confirm" button to complete the operation.​
​
View command information​
Before using custom commands, you can view the command information, such as the execution path, execution user, and specific content. This allows you to confirm whether the target custom command meets your O&M requirements.​
  1. Log in to the ECS console. ​
  1. In the left-side navigation pane, select "Maintenance & Monitoring > Cloud Assistant" and then select the "Custom commands" tab. ​
  1. In the top menu bar, select the region where your business is located. ​
  1. Select the target command to view, then click its name.​
  1. On the pop-up command details page, you can view the basic information of the command (such as the command name, execution path, execution user, and timeout), the command content, and command parameters.​
"Argument" information is displayed only when the command supports custom parameters.​
Create tasks to be executed immediately​
To help you quickly perform O&M operations via custom commands, you can create O&M tasks directly on the Custom commands page. For detailed task configurations, refer to Creating jobs.​
Clone custom commands​
You can use the cloning feature to make personalized changes based on the target custom command, and then clone the command into a new custom command for use.​
  1. Log in to the ECS console. ​
  1. In the left-side navigation pane, select "Maintenance & Monitoring > Cloud Assistant" and then select the "Custom commands" tab. ​
  1. In the top menu bar, select the region where your business is located. ​
  1. Select the target command to clone, and click the "Clone" button in the "Action" column on the right.​
  1. Change command configurations as needed. For parameter descriptions, refer to Cloning into custom commands.​
  1. Click the "Confirm" button to clone.​
  1. After the command is cloned, you are automatically redirected to the Custom commands page. Here, you can use the cloned command to create O&M tasks or perform other operations.​
Related documents​
Last updated: 2026.06.18 17:49:49