Example

An example is provided to help you understand how to use the DEFIMON command, and shows the typical results of this command.

Example 1: Use the DEFIMON command to define an idle monitor, IDMON.

In the example below, the following tasks are performed:
  1. Schedule TESTSCHD is defined before the IDLE monitor is defined.
  2. Action IACT is defined before the definition of IDLE monitor IDMON.
  3. IDLE monitor, IDMON, is defined, which checks if the schedule TESTSCHD is triggered 10 times in 1 minute. If not, action "IACT" is run.
Figure 1. Example of DEFIMON command with DEFACTN command
GOMCMD OPMGRM1 DEFSCHD NAME TESTSCHD ACTION ACT EVERY 00:01
 Ready; T=0.01/0.01 06:13:53 
 
GOMCMD OPMGRM1 DEFACTN NAME IACT COMMAND 'CP MSG TS3163 IDLE MONITOR' ENV LVM 
Ready; T=0.01/0.01 06:18:05 

GOMCMD OPMGRM1 DEFIMON NAME IDMON ACTION IACT OCCUR 10,1 SCHEDULE TESTSCHD
Ready; T=0.01/0.01 06:29:47
   
 RESULT:-
   06:31:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:32:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:33:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:34:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:35:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:36:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:37:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:38:30  * MSG FROM OPMGRM1 : IDLE MONITOR
   06:39:30  * MSG FROM OPMGRM1 : IDLE MONITOR