HCL Workload Automation, Version 9.4

Scenario: Creating a job definition using a computer resource group

In this scenario, a job is created to run the inventory update program, selecting the target system from the invadmin resource group set up to include the computers that are suitable for running the script.

About this task

To create a job definition that does this, perform the following steps:


  1. In the Job Brokering Definition Console select File > New > Job brokering definition and create a new job definition named compgroupjob. The job definition opens at the Overview page with the job name assigned.
  2. Open the Application page and identify and attach the script, as follows:
    1. In the Type menu, select Executable.
    2. In the Executable pane, select the Executable File radio button.
    3. Click Browse and locate the executable file.
    4. Click OK.
  3. Open the Resources page and specify the resource group, as follows:
    1. Select the Advanced Requirements tab.
    2. In the Resource Group pane, click Add. The Resource Group Details dialog box is displayed.
    3. In the Group Name field, type invadmin (the resource group name, as defined in the Dynamic Workload Console).
  4. Select File > Save to save the job definition file.


The JSDL file created for this scenario has the following syntax:
<jsdl:jobDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
xsi:schemaLocation="http://www.abc.com/xmlns/prod/scheduling/1.0/jsdl JSDL.xsd 
http://www.abc.com/xmlns/prod/scheduling/1.0/jsdle JSDL-Native.xsd" 
description="Run inventory update script on a computer from the 
invadmin resource group. 
" name="compgroupjob">
  <jsdl:application name="executable">
    <jsdle:executable path="/opt/invupdate"> 
    <jsdl:group name="invadmin"/>