Rule execution statistics and enabled rules report; OPS/MVS
search cancel

Rule execution statistics and enabled rules report; OPS/MVS

book

Article ID: 135632

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

This article provides OPS/REXX logic to generate a report of enabled rules, including their execution (fire) counts and status within OPS/MVS. This is useful for auditing automation health or monitoring rule activity over time.

Environment

  • Product: OPS/MVS Event Management & Automation
  • Release: 14.0 and higher
  • Operating System: z/OS

Resolution

To retrieve statistics for active rules, use the ADDRESS AOF "LISTINST" command. This command returns records to the External Data Queue (EDQ) containing rule names, types, and fire counts.

Reporting on Enabled Rules

Execute the following REXX logic to dump statistics for all currently enabled rules:

 
/* List in-storage rulesets */address AOF "LISTINST"num_rulesets = QUEUED()
do i = 1 to num_rulesets  pull aofoutput  ruleset.i = WORD(aofoutput, 2)end
/* Loop through each ruleset to extract rule members */do r = 1 to num_rulesets  clearq = OPSCLEDQ()  address AOF "LISTINST "ruleset.r".*"  total_rules = QUEUED()
  do total_rules    pull ruleinfo    say ruleinfo /* Outputs: Name, Type, Status, Fire Count, etc. */  endend

Reporting on All Rules (Enabled and Disabled)

If a report of both enabled and disabled rules is required (similar to the OPSVIEW 4.5.1 display), use the LIST command instead:

 
address AOF "LIST"/* Proceed with the same loop logic as above */

Historical Statistics (Last 24 Hours)

For statistics covering a specific historical window (e.g., "Last 24 Hours"), use the Automated Measurement and Evaluation (AME) facility. AME processes SMF records generated by OPS/MVS to provide long-term trend analysis and performance metrics.

Additional Information

  • For a detailed breakdown of the LISTINST output fields, refer to the .
  • To speak with a customer representative or a Support Engineer, see . Scroll to the bottom of the page and click on your respective region.