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
- In the left-side navigation pane, select "Maintenance & Monitoring > Cloud Assistant" and then select the "Custom commands" tab.
- In the top menu bar, select the region where your business is located.
- Click the "Create a custom command" button and enter the command configuration information as needed. For parameter descriptions, refer to Cloning into custom commands.
- Click the "Confirm" button to create a custom command.
Subsequent steps
Related features
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.
- In the left-side navigation pane, select "Maintenance & Monitoring > Cloud Assistant" and then select the "Custom commands" tab.
- In the top menu bar, select the region where your business is located.
- Select the target command to view, then click its name.
- 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.
- In the left-side navigation pane, select "Maintenance & Monitoring > Cloud Assistant" and then select the "Custom commands" tab.
- In the top menu bar, select the region where your business is located.
- Select the target command to clone, and click the "Clone" button in the "Action" column on the right.
- Click the "Confirm" button to clone.
- 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