EnableのRuleset/Ruleのレポート作成
search cancel

EnableのRuleset/Ruleのレポート作成

book

Article ID: 252183

calendar_today

Updated On:

Products

OPS/MVS Event Management & Automation

Issue/Introduction

OPSVIEW 4.5.1 画面で表示しているEnable状態のRulesetやRuleの情報を一括で詳細にリストすることは出来ますか?

Environment

Release : 14.0

Resolution

OPS/REXX のLISTINST AOFコマンドを使用することで、ACTIVEなRuleset/Ruleに関する情報を一括で取得できます。

 

以下は、OPS/REXXに実装されているLISTINST AOFコマンドを利用してACTIVE Ruleに関わる情報を表示するサンプルです。

address AOF "LISTINST"            /* List instorage rulesets  */ 
 num_rulesets = queued()           /* Total number of rulesets.*/ 
 do i = 1 to num_rulesets          /* Loop through LISTINST....*/ 
   pull aofoutput                  /* and collect each ........*/
   ruleset.i = WORD(aofoutput,2)   /* ruleset name.            */ 
 end
 do r = 1 to num_rulesets          /* Now loop through each... */ 
   clearq=OPSCLEDQ() 
   address AOF                     /* obtain ruleset and...... */
   "LISTINST "ruleset.r".*"        /* extract each rule member */ 
   total_rules = QUEUED()          /* returned to the EDQ      */
   do total_rules pull ruleinfo    /* Simply pull the info..   */
     say ruleinfo                  /* and dump it out.         */ 
   end 
 end 

 

以下は、OPSVIEWの4.5.1画面におけるDISABLE/ENABLE Ruleに関する情報や、DYNAMIC Ruleに関する情報を表示するサンプルです。

address AOF "LIST"              /* List ALL RULES ENB/DIS   */ 
 num_rulesets = queued()         /* Total number of rulesets.*/ 
 do i = 1 to num_rulesets        /* Loop through LISTINST....*/ 
   pull aofoutput                /* and collect each ........*/ 
   ruleset.i = WORD(aofoutput,2) /* ruleset name.            */ 
 end 
 do r = 1 to num_rulesets        /* Now loop through each... */ 
   clearq=OPSCLEDQ() 
   address AOF                   /* obtain ruleset and...... */ 
   "LIST "ruleset.r".*"          /* extract each rule member */ 
   total_rules = QUEUED()        /* returned to the EDQ      */ 
   do total_rules
     pull ruleinfo               /* Simply pull the info..   */ 
     say ruleinfo                /* and dump it out.         */
   end 
 end

 

また、prefix.CCLXRULSライブラリのOPSAOFメンバをENABLEにした後に、以下のコマンドを実行いただくことでリストの出力が可能です。

 OPSAOF LIST

さらに、特定のRulesetのRuleすべてを対象とする場合は、以下のコマンドをご利用いただけます。

 OPSAOF LIST Ruleset名※
 
  ※ prefix.SYSTEM1.RULESの場合、SYSTEM1をRuleset名に指定します。

   OPSAOF LIST SYSTEM1

<ご参考>

AOF LISTINST -- List Enabled Rule Statistics

AOF LIST -- Provide Rule and Rule Sets Statistics

 

Additional Information

Old Japanese Knowledge document ID: JTEC003123

OPS/MVSのその他FAQについては、以下のリンクからご確認ください。

JTEC002336 : CA OPS/MVS FAQ一覧表