Help Center>
Application Operations Management>
FAQs (2.0)>
O&M Management (Retiring)>
Can I Specify Script Parameters and Hosts During Job Execution?
Updated on 2024-04-11 GMT+08:00
Can I Specify Script Parameters and Hosts During Job Execution?
Yes. You can set global parameters and reference them in job steps.
Procedure
- Log in to the AOM 2.0 console. In the navigation pane, choose Automation (Retiring).
- In the navigation pane, choose Jobs and click Create Job in the upper right corner.
- On the displayed page, click Add Global Parameter, add param1 whose parameter type is String and param2 whose parameter type is Host, and save the settings.
- Add a job step. For Script Parameters, use ${param1} to reference the string parameter. For Target Instances, select Global Parameter and then select param2 from the drop-down list. Next, save the settings.
- When executing a job plan, specify param1 and param2 (instances to be executed) as required.
Parent topic: O&M Management (Retiring)
O&M Management (Retiring) FAQs
- How Can I Obtain the OBS Permission for Installing Packages?
- Why Can't Scheduled Tasks Be Triggered?
- Can I Specify Script Parameters and Hosts During Job Execution?
- Why Is a Parameter Error Displayed When I Create a Scheduled Task Using a Cron Expression?
- How Can I Set a Review for an Execution Plan?
- Why Is "delete success:{}" Displayed (Files Cannot Be Deleted) During Disk Clearance?
- What Can I Do If the Execution Plan Is Not Updated After I Modify the Job?
- What Can I Do If "agent not found" Is Displayed?
- Why Are the Hosts Listed in Execution Logs Inconsistent with Those I Configured for a Task?
- Why Did a Task Fail to Execute?
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.
Chatbotmore