The example in Figure 106 is designed to start a specified number of initiators at a specified time, and to add the appropriate number of initiators to the corresponding Quantitative resource in the Control-M Resources file so that the initiators can be tracked by Control-M.
Figure 106 Example of Starting Five Initiators and Informing Control-M
ON EVENT = INITS
OWNER IOAADMIN GROUP MODE LOG RUNTSEC
THRESHOLD
DESCRIPTION START 5 INITIATORS AND INFORM CONTROL-M
===========================================================================
DO COMMAND = $SI16-20
WAIT CONSOLEID CONSOLE SYSTEM
WAITMODE N
DO RESOURCE = INITIATORS 0005 +
===========================================================================
IN
TIME FROM 1800 UNTIL INTERVAL PRIORITY CONTINUE SEARCH Y
Explanation
TIME FROM 1800
This statement indicates a specific time when the rule is triggered (6 pm).
DO COMMAND=$SI16-20
starts the new initiators (numbered from 16 through 20).
The DO RESOURCE statement is used to update the quantity of the specified resource (initiators) listed in the Control-M Resources file. Control-M monitors this file and is therefore informed of the new available initiators.
Parent Topic |