Scenario: Creating a job definition and submitting to a pool

In this scenario, you need to run an inventory update script, therefore you create a pool, grouping workstations where the required program is installed, and a job to run the script. You select the target system for the job from the invadmin pool.

About this task

To create a pool and submit a job to it, perform the following steps:

Procedure

  1. Log in to the Dynamic Workload Console.
  2. From the Design menu, select Workload Designer
  3. Select an engine and click Create new Workstation.
  4. Select Pool from the list .
  5. Name the pool invadmin and complete the required fields.
  6. Select the workstations you want to add to the pool. Select the workstations where the required program is installed.
  7. Click Save to save the pool.
  8. Create a job and define general information about it:
    1. From the Design menu, click Workload Designer page, and then select the engine.
    2. In Explore area, click Create new + and select Job.
    3. Click the Executable job.
    4. In General Info, in Folder, select IT_operations.
    5. In General Info, in Name, type UPGRADE_JAVA_VERSION.
    6. In General Info, in Workstation, select BK_server.
    7. In General Info, in Description, type Java upgrade to version 11.
    8. In Task, in Command text or script name, type apt install --only-upgrade openjdk-11-jre-headless -y.
  9. Specify an engine name, either distributed or z/OS
    The Workload Designer opens. Job types and characteristics vary depending on whether you select a distributed or z/OS engine.
  10. Select New > Job Definition > Native > Executable.
  11. Specify a name for the job.
  12. In the Workstation field, specify the invadmin pool you previously defined.
  13. Browse to the Task tab and select Command.
  14. Type the name and path to the executable file you want to run, located on each workstation in the pool.
  15. Click Save to save the job.
  16. From the navigation toolbar, click Planning > Workload Submission > Submit Predefined Jobs .