Example
An example is provided to help you understand how to use the DEFMMON command, and shows the typical results of this command.
Example 1: Use the DEFMMON command to monitor the logon status of user ID MAINT640.
A check is performed every minute (the default) to determine if the virtual machine is logged off. If it is, the TEST5 action that is defined with the DEFACTN command is scheduled to process and displays a message, "MAINT640 IS LOGGED OFF".
GOMCMD OPMGRM1 DEFACTN NAME TEST5 COMMAND 'CP MSG MAINT640 IS LOGGED OFF' ENV LVM
Ready; T=0.01/0.01 02:16:45
GOMCMD OPMGRM1 DEFMMON NAME TEST9MON USER MAINT640 ACTION TEST5
Ready; T=0.01/0.01 02:17:29
When user MAINT640 logs off, a message displays to inform you of that action.
02:19:00 * MSG FROM OPMGRM1 : MAINT640 IS LOGGED OFF