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

  1. Log in to the AOM 2.0 console. In the navigation pane, choose Automation (Retiring).
  2. In the navigation pane, choose Jobs and click Create Job in the upper right corner.
  3. 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.
  4. 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.
  5. When executing a job plan, specify param1 and param2 (instances to be executed) as required.

O&M Management (Retiring) FAQs

more