search cancel

CA 7 task management in SSM

book

Article ID: 189499

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

When stopping CA 7 three commands need to be issued to properly end the started task:

  /F CA7ONL,/LOGON MASTER
  /F CA7ONL,/SHUTDOWN,Z3
  /F CA7ONL,/SHUTDOWN,Z3   

 

Environment

Release : 13.5

Component : OPS/MVS

Resolution

Using the SSMCMDS rule to issue multiple command seems to be the solution:

RULE("SSMCMDS &SSM!RESNAME &DESIRED_STATE {MODIFY &JOBNAME,/LOGON MASTER} 5 {MODIFY &JOBNAME,/SHUTDOWN,Z3} 5 {MODIFY &JOBNAME,/SHUTDOWN,Z3}")

If using SSMV3/Policy Manager an action as below can be created:

SSMCMDS Action Edit----------- PROD1 -- O P S V I E W ---------- Subsystem OPSS

Resource Name: CA7ONL Type: CA7ONLN Jobname: CA7ONL

Current Action Text: RULE("SSMCMDS &SSM!RESNAME &DESIRED_STATE {MODIF +

* Required field

Enter or update z/OS commands and interval values
* z/OS command 1: MODIFY CA7ONL,/LOGON MASTER +
* interval 1: 5 
* z/OS command 2: MODIFY CA7ONL,/SHUTDOWN,Z3 +
  interval 2: 5 
  z/OS command 3: MODIFY CA7ONL,/SHUTDOWN,Z3 +