Guardian Procedure Calls Reference Manual (G06.25+)
Using the DIVER and DELAY Programs
Guardian Procedure Calls Reference Manual—522629-013
I-4
Example Using DIVER and DELAY
Example Using DIVER and DELAY
The following example uses the DIVER and DELAY programs to cause both
processors (0 and 1) of a two-processor system to fail and reload repeatedly,
approximately once every four minutes. You can increase this cycle time if your
application requires more time to recover.
1. Start the TACL command interpreter running as a process pair in processors 0 and
1. In this example, processor 0 must be the primary processor, and processor 1
must be the backup processor for the TACL process.
2. Log on as a member of the super group.
3. Create two EDIT files (file code 101) named DIVE0 and DIVE1 that contain the
following TACL commands.
The DIVE0 file contains:
The DIVE1 file contains:
4. Start your application running as a process pair in processors 0 and 1.
5. Start the processor failure cycle by entering the following command at the TACL
prompt. This command starts a TACL process using DIVE0 as the IN file.
6. To stop the processor failure cycle, enter:
Note. If your test system has more than two processors, then examine the system
configuration and select processors to fail that will cause the least disruption to the system.
DIVER / CPU 1 /
DELAY 120 SEC
RELOAD 1
DELAY 120 SEC
TACL / CPU 1, NAME $DIVE1, IN DIVE1 /
DIVER / CPU 0 /
DELAY 120 SEC
RELOAD 0
DELAY 120 SEC
TACL / CPU 0, NAME $DIVE0, IN DIVE0 /
> TACL /CPU 0, NAME $DIVE0, IN DIVE0, OUT $0 /
> STOP $DIVE0
> STOP $DIVE1