- Service Overview
- Getting Started
-
User Guide
- COC Enablement and Permissions Granting
- Overview
-
Application and Resource Management
- Resource Management
-
Application Management
- Creating an Application
- Modifying an Application
- Deleting an Application
- Editing an Application Topology
- Creating a Component
- Modifying a Component
- Deleted a Component
- Creating a Group
- Modifying a Group
- Deleting a Group
- Manually Associating Resources with a Group
- Intelligently Associating Resources with a Group
- Transferring Resources
- Disassociating a Resource from an Application Group
- Viewing Resource Details
- Viewing Capacity Rankings
- Multi-cloud Configurations
- Cross-Account Resources
- Resource O&M
- Automated O&M
- Faults
- Change Management
- Resilience Center
- Task Management
- Basic Configurations
- Viewing Logs
- Best Practices
- API Reference
-
FAQs
- Product Consulting
- Resource Management FAQs
-
FAQs About Resource O&M
-
Patch Management FAQs
- What Can I Do If the Patch Baselines Do Not Take Effect?
- What Are the Differences Between the Installation Rule Baselines And User-defined Baselines?
- What Can I Do If Exception all mirrors were tried Is Recorded in the Patch Service Ticket Log?
- Why Can't I Select a Node?
- What Can I Do If the Compliance Report Still Reports Non-compliance for a Patch After the Patch Has Been Repaired?
- What Can I Do If the lsb_release not found Error Occurs During Patch Operations?
- Automation FAQs
- Batch Operation FAQs
- FAQs About Parameter Management
- Resource O&M Permissions and Supported Actions
-
Patch Management FAQs
- FAQs About Fault Management
- FAQs About Change Ticket Management
- Resilience Center FAQs
- Change History
- General Reference
Show all
Copied.
Executing Common Scripts
The capability of executing the common scripts preset by the service is provided.
Common scripts are preset in COC. Users can read or execute the common scripts to perform common operations such as clearing disks.
Scenarios
Execute common scripts provided by the service on Cloud Operations Center.
Precautions
Ensure that you have the permission on the component to which the target VM belongs when executing a script.
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 Scripts. On the the displayed Scripts page, click Common Scripts, locate the script to be executed, click Execute in the Operation column.
Figure 1 Selecting the target common script to be executed
- Complete the script execution information. Input parameters are preset in common scripts and cannot be modified. Set Executed By and Timeout Interval. The default executor is user root and default timeout interval is 300 seconds.
Script parameters can be manually entered or selected from the parameter repository. (Disk clearing is not supported currently.) If you manually enter a parameter value, you need to select the region where the parameter is located, parameter name, and parameter association mode from Creating a Parameter.Figure 2 Manually entering script parametersFigure 3 Selecting script parameters from repository
Table 1 Parameter association modes Parameter Association Mode
Description
Using the latest parameter value in the corresponding environment
This parameter is used during script execution. The parameter value is the latest parameter value obtained from the corresponding region in the parameter warehouse in real time.
- Click + Add instances to select the target instances. You can search for instances by name, EIP, or resource status.
Figure 4 Selecting target instances
- Select Batch Policy.
- Automatic: The selected instances are divided into multiple batches based on the default rule.
- Manual: You can manually divide instances into multiple batches as required.
- No batch: All target instances are in the same batch.
Figure 5 Selecting a batch policy - Set Suspension Policy.
Suspension policy: You can set the execution success rate. When the number of failed instances meets the number calculated based on the execution success rate, the service ticket status becomes abnormal and the service ticket stops being executed.Figure 6 Setting a suspension policy
- Click Submit.
Figure 7 Submitting the request
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.
For any further questions, feel free to contact us through the chatbot.
Chatbot