How to issue SSM commands in batch for a System State Managed resource in CA OPS/MVS
search cancel

How to issue SSM commands in batch for a System State Managed resource in CA OPS/MVS

book

Article ID: 94769

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Need to know how to issue commands for a CA OPS/MVS System State Managed resource table in batch. I would like to have an example of a JCL STEP to place in a job that would bring down a SSM managed resource.


This customer was interested in a best practice to issue SSM commands in batch.

Environment

CA OPS/MVS Event Management and Automation release 12.3
z/OS 2.2

Resolution

Create the sample JCL below with your table name and OPS/MVS dataset names.
 
Here is the sample JCL provided:
 
//CMD EXEC PGM=OI,PARM='STATESET "resource-name" DESIRED(DOWN)'
//STEPLIB      DD DISP=SHR,DSN=prefix.CCLXLOAD
//OPS$OPSS  DD DUMMY
//SYSPRINT DD SYSOUT=*
//SYSEXEC    DD DISP=SHR,DSN=prefix.CCLXEXEC

In the example above:
  • "resource-name" is the name of task whose desired state is being set to DOWN.
  • prefix.CCLXLOAD is the CA OPS/MVS load library
  • prefix.CCLXEXEC is the CA OPS/REXX library (where the STATESET command is delivered).

Additional Information

Create and enable a security rule like below:
 
)SEC OPSSMTBL
)PROC
return accept
 
This will enable any users to update the tables.

OR

The userid associated to this batch job has to have OPER authority in the CLASS TSOAUTH. It is also required a TSO segment defined to external security.

If the external security package used at your environment is RACF the command to grant this authority would be:
 
PERMIT OPER CLASS(TSOAUTH) ID(xxxxx) ACC(READ)

where xxxxx is the userid assigned to the batch job.