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
Procedure
- Log in to the Dynamic Workload Console.
- From the Design menu, select Workload Designer
- Select an engine and click Create new Workstation.
- Select Pool from the list .
- Name the pool invadmin and complete the required fields.
- Select the workstations you want to add to the pool. Select the workstations where the required program is installed.
- Click Save to save the pool.
-
Create a job and define general information about it:
- From the Design menu, click Workload Designer page, and then select the engine.
- In Explore area, click Create new + and select Job.
- Click the Executable job.
- In General Info, in Folder, select IT_operations.
- In General Info, in Name, type UPGRADE_JAVA_VERSION.
- In General Info, in Workstation, select BK_server.
- In General Info, in Description, type Java upgrade to version 11.
- In Task, in Command text or script name, type apt install --only-upgrade openjdk-11-jre-headless -y.
-
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.
- Select .
- Specify a name for the job.
- In the Workstation field, specify the invadmin pool you previously defined.
- Browse to the Task tab and select Command.
- Type the name and path to the executable file you want to run, located on each workstation in the pool.
- Click to save the job.
- From the navigation toolbar, click .