Policy thresholds
You can use policy rules to define several different types of thresholds. When multiple policy rules with the same threshold are deployed, the order in which the rules are triggered is message action rules first, then event action rules, and finally abend action rules.
Supported rule type details
Rule Type 1 | Rule Item 2 | Operator 3 | Unit 4 | Value 5 |
---|---|---|---|---|
Database request |
SQL command |
Greater Than |
|
|
File request |
Delete command |
Greater Than |
|
These value ranges for requests or thousand requests apply to all File request policy rule items. |
Program request |
LINK command Note: INVOKE
APPLICATION commands are also included in the count, but
are not a separate policy item.
|
Greater Than |
|
|
Start request |
START command |
Greater Than |
|
|
Storage |
24-bit Task storage |
Greater Than |
|
24-bit rule items:
|
Storage request |
24-bit Task storage request |
Greater Than |
|
These value ranges for requests or thousand requests apply to all Storage request policy rule items. |
Syncpoint request |
SYNCPOINT command |
Greater Than |
|
|
TD Queue request |
READQ TD command |
Greater Than |
|
These value ranges for requests or thousand requests apply to all TD Queue request policy rule items. |
Time |
CPU time |
Greater Than |
|
|
TS Queue bytes |
WRITEQ TS command Note:
|
Greater Than |
|
All TS Queue bytes policy rule items have the same value ranges. |
TS Queue request |
READQ TS command Note: The READQ and WRITEQ policy
items are used to set a threshold for the total number READ or WRITE
requests to the auxiliary and main TSQs combined. The other WRITEQ policy
items are used to set a threshold for the number WRITE requests to
a specific type of TSQ.
|
Greater Than |
|
These value ranges for requests or thousand requests apply to all TS Queue request policy rule items. |
Examples
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<policy:policy xmlns:policy="http://www.ibm.com/xmlns/prod/cics/managedplatform/policy" policySchemaRelease="0" policySchemaVersion="1">
<description>Example platform policy to monitor task storage and file read counts</description>
<userTag>exmp_1</userTag> thru <userTag>exmp_3</userTag>
<rule type="storage" 1 >
<name>TooMuch24BitStorage</name>
<description>Issue DFHMP3001 msg when a task allocate more than 1024 bytes of 24 bit task storage</description>
<storageUsedCondition item="task24" 2 operator="GT" 3 value="1" 5 unit="K" 4 />
<action>
<message/>
</action>
</rule>
<rule type="filerequest" 1 >
<name>TooManyReads</name>
<description>Issue DFHMP3001 msg when a task does more than 50 reads</description>
<fileRequestCondition item="read" 2 operator="GT" 3 value="50" 5 unit="" 4 />
<action>
<message/>
</action>
</rule>
</policy:policy>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<policy:policy xmlns:policy="http://www.ibm.com/xmlns/prod/cics/managedplatform/policy" policySchemaRelease="0" policySchemaVersion="1">
<description>Policy to monitor the number of file reads</description>
<userTag>fcpol_1</userTag>
<rule type="filerequest" 1 >
<name>File_Reads</name>
<description>Abend the task if the file read limit exceeded</description>
<fileRequestCondition item="read" 2 operator="GT" 3 value="10" 5 unit="K" 4 />
<action>
<abend/>
</action>
</rule>
<rule type="filerequest" 1 >
<name>File Write</name>
<description>Abend the task with specified abend code CFI1 if the file write limit exceeded</description>
<fileRequestCondition item="write" 2 operator="GT" 3 value="5" 5 unit="K" 4 />
<action>
<abend abendCode="CFI1"/>
</action>
</rule>
</policy:policy>
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<policy:policy xmlns:policy="http://www.ibm.com/xmlns/prod/cics/managedplatform/policy" policySchemaRelease="0" policySchemaVersion="1">
<description>Policy to monitor the number of file reads</description>
<userTag>fcpol_1</userTag>
<rule type="filerequest" 1 >
<name>File Write</name>
<description>The file write limitation policy</description>
<fileRequestCondition item="write" 2 operator="GT" 3 value="500" 5 unit="" 4 />
<action>
<event>
<eventAdapterName>adapterB</eventAdapterName>
</event>
</action>
</rule>
<rule type="filerequest" 1 >
<name>File_Reads</name>
<description>File read limitation policy</description>
<fileRequestCondition item="read" 2 operator="GT" 3 value="100" 5 unit="" 4 />
<action>
<event>
<eventAdapterSetName>adaSetA</eventAdapterSetName>
</event>
</action>
</rule>
</policy:policy>