Help Center/
Cloud Operations Center/
User Guide/
Automated O&M/
Jobs/
Atomic Action/
Execute Command
Updated on 2024-10-29 GMT+08:00
Execute Command
The atomic action can be used to execute a specific command.
Procedure
- Log in to COC.
- In the navigation pane on the left, choose Resource O&M > Automated O&M. In the Routine O&M area, click Jobs.
Figure 1 Jobs
- Click the Custom Jobs tab and click Create Job.
Figure 2 Clicking Create Job
- Enter the basic job information. You can follow the steps in section Managing Tags to create a tag. After the required parameters are set, click Next.
Figure 3 Entering basic job information
- Select a job template. If no proper template is available, click Customize, and click Next.
Figure 4 Selecting a job template
- Perform job orchestration. Click + Add Task, and click + Operation Type. On the displayed dialog box, click Execute Command.
Figure 5 Adding tasks
- Enter the task name and operation description.
Figure 6 Setting the basic information
- Click Input, set commandType (Command type) to SHELL, PYTHON, or BAT as required. Set executeUser (command execution os user), timeout (Command execution timeout (second), successRate (Success rate (%)), commandContent (Command content), and commandParams (Command execute inputs).
Figure 7 Adding input information
- Click Troubleshooting and configure the policy for the action upon an execution error: Terminate Job or Go to Next Step.
Figure 8 Adding troubleshooting policy
- Click OK.
Parent topic: Atomic Action
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
The system is busy. Please try again later.
For any further questions, feel free to contact us through the chatbot.
Chatbot