How to manage new Guardium started tasks in CA OPS/MVS Event Management and Automation System State Manager.
search cancel

How to manage new Guardium started tasks in CA OPS/MVS Event Management and Automation System State Manager.

book

Article ID: 10766

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

Looking for assistance on how to manage new Guardium tasks in CA System State Manager. 



We are looking for assistance on how to manage new Guardium tasks in SSM. The requirement is to start several started tasks (stc's), in order, after DB2 is initialized.  One of the tasks will be started by its parent tasks not by SSM, not an issue we will set IPL_STATE = IPL, we manage several tasks this way.  The issue is that they want this task started outside of SSM but managed once it is up to be the last tasks shutdown when the system is shutdown for IPL's.  We were thinking about using either REFMODE or PREMODE (not sure what the difference is) to allow the PARENT tasks to shutdown before the CHILD tasks, PREMODE=SUBREQ. 

Does this make sense or are we interpreting this wrong or are there other solutions on how to handle this?

Environment

CA OPS/MVSDB2Guardium

Resolution

To clarify exactly what is being asked, PARENT task and CHILD task are both in SSM. CHILD is internally started by PARENT so its IPL_STATE=IPL and PREREQ=PARENT. Upon system shutdown, you need to stop PARENT, leaving CHILD UP. If that is the case, then yes, you would accommodate this request via the REFMODE or PREMODE columns.

First to clarify these columns:

The PREMODE setting tells SSM how to perform prereq or subreq processing for the resource that is being processed. Meaning, if the current state is (CS=DOWN) and desired state is (DS=UP) for the PARENT, SSM internally would do prereq checking based on the setting of its PREMODE value. If PREMODE=PREREQ is for PARENT, then SSM only would check to see if the PREREQs for PARENT are UP and with PREMODE=PREREQ for the PARENT, when you go to shutdown it down (CS=UP DS=DOWN), SSM would not check for subreqs (it would ignore any other resource like the CHILD that is PREREQ=PARENT). So, this is one setup that would do what is being asked - Setting PREMODE=PREREQ for PARENT only .

The REFMODE setting tells SSM how to process a resource when it is being REFerred or looked at as a prereq or subreq when SSM is processing some other resource. Meaning, if you attempt to stop the PARENT task CS=UP/DS=DOWN, SSM would look at or refer to all other SSM resources that have PREREQ=PARENT. Then, based on the REFMODE of that referred resource (the CHILD in this case), SSM would check its current state (CS) to make sure it is DOWN, since you are requesting to stop the PARENT. But, if the REFMODE=PREREQ for the CHILD, SSM would ignore since REFMODE=PREREQ means only process the CHILD in prereq conditions. So, another method you could do here to get the PARENT to stop without shutting down the CHILD is to set the CHILD resources REFMODE=PREREQ.

The technique chosen depends on whether or not you have other resources outside of the PARENT CHILD that might be prereqs/subreqs of these tasks. The best way to easily see what/how SSM processes resources with these different mode settings is to simply insert 2 two dummy resources into the table (like PARENT and CHILD) and then just set the CS/DS DOWN/UP with different MODE settings.

Additional Information

How SSM Works