Deploying by using the Job Monitor
You use the Job Monitor to submit jobs and to monitor the job status in your deployment. You must ensure that you have a Job Monitor task running and that you run the IBM DevOps Deploy (Deploy) process to submit or to monitor the job. Then, you must set up Job Monitor connection properties in your IBM DevOps Deploy (Deploy) environment.
- z/OS agent
- IBM Developer for IBM Z
- IBM Rational Team Concert
The hlq.SBUZSAMP(BUZJJCL) member has the sample PROC for starting JMON. The hlq.SBUZSAMP(BUZJCNFG) member is the JMON configuration file that is referred to in the PROC. JMON installed for another product (for example, IDz or IBM RTC) can be used, but the LOOPBACK_ONLY property must be OFF
- Start the Job Monitor task and check that a task that is called JMON is running.
- To submit or to monitor jobs, run the process that uses the Submit Job or Wait For Job steps.
- Set the following Job Monitor connection properties in the Deploy environment or
resource:
jes.host=localhost jes.user=z/OS user ID jes.password=Password of the user. Set blank to use PassTicket authentication. jes.monitor.port=The port number for Job Monitor host server. The default port is 6715.
Authenticating with a user ID and Password
Authenticating with PassTickets
If you do not provide a password, the plug-in uses PassTickets authentication. You can use PassTickets authentication to eliminate the requirement to store user passwords in Deploy.
To configure your system to use PassTickets, complete the following steps:
Example 1. Agent is started by user AGNTUSR. In a deployment process, a Job needs to be submitted on behalf of user USER1.
RDEFINE PTKTDATA IRRPTAUTH.FEKAPPL.USER1 UACC(NONE)
PERMIT IRRPTAUTH.FEKAPPL.USER1 CLASS(PTKTDATA) ID(AGNTUSR) ACCESS(UPDATE)
SETROPTS RACLIST (PTKTDATA) REFRESH
Example 2. Agent is started by user AGNTUSR. Allow this agent to submit jobs on behalf of any user.
RDEFINE PTKTDATA IRRPTAUTH.FEKAPPL.* UACC(NONE)
PERMIT IRRPTAUTH.FEKAPPL.* CLASS(PTKTDATA) ID(AGNTUSR) ACCESS(UPDATE)
SETROPTS RACLIST (PTKTDATA) REFRESH
Example 3. Agent is started by user AGNTUSR. Allow this agent to submit job on behalf of user AGNTUSR:
RDEFINE PTKTDATA IRRPTAUTH.FEKAPPL.AGNTUSR UACC(NONE)
PERMIT IRRPTAUTH.FEKAPPL.AGNTUSR CLASS(PTKTDATA) ID(AGNTUSR) ACCESS(UPDATE)
SETROPTS RACLIST (PTKTDATA) REFRESH
More JES security considerations are described in the IBM Developer for IBM Z documentation. For more information, see JES Security.
Authenticating with Trusted IP
Starting with v2.9.17 or higher, JMON can authenticate client IP as a trusted source and process
client requests. This allows the Wait for Job
and Submit
Job
plug-in steps to run with Agent User Id or Impersonation Id. The
User Id and password/pass-ticket that are usually needed for these steps are ignored
and hence can be left empty. If the client (z/OS UCD Agent in this case) is on the
same system as JMON then no changes are required. But if JMON is active on another
system in the SYSPLEX, TCPIP RACF profiles are required.
While it is recommended to execute JMON as a started task, it is also possible to execute it as a user job. When not active as a started task, JMON will query your security product for explicit permission to start.
Security profile | Required access |
---|---|
BUZ.START.BATCH.jobName.port | READ |
The security class where this profile resides can be specified with SAF_CLASS variable in the BUZJCNFG configuration file and is FACILITY by default. When the profile is not defined, or the class is not active, permission is denied, and batch startup will fail.
Use the following RACF commands to allow USER ID (IBMUSER in this case) to start JMON in batch with job name JMONJCL and port 6715:
RDEFINE FACILITY BUZ.START.BATCH.JMONJCL.6715 UACC(NONE)
DATA('Start JMON in Batch')
PERMIT BUZ.START.BATCH.JMONJCL.6715 CLASS(FACILITY) ACCESS(READ)
ID(IBMUSER)
SETROPTS RACLIST(FACILITY) REFRESH