Option 11 of the EDH menu enables you to define switch scenarios.
You can define as many scenarios as you want depending on your environment, and depending on special steps you want to define (different scenarios for switchover and failover for example).
EDHTools SWITCH – SCENARIOS__________________________
2=Change 3=Copy 4=Delete 5=Display 8=Commands 9=Run Scenario : _________
S Name Text description System _ STEP01 End of production system PROD _ STEP02 Switch on BACKUP system BACKUP _ STEP03 Start production on the new production BACKUP _ STEP04 The old production becomes backup PROD _ STEP05 Start replication from new prod to new backup BACKUP _ STEP06 End of production system BACKUP _ STEP07 Switch on PROD system PROD _ STEP08 Start production on the PROD system PROD _ STEP09 BACKUP partition becomes backup BACKUP _ STEP10 Start replication from PROD to BACKUP PROD
Fin
F3=Exit F5=Refresh F6=Create F11=Command F12=Cancel F13=Copy commands |
Each scenario contains a group of functions (commands to run) to be performed on the production or the recovery system.
A scenario is defined as follows:
Scenario name
Description
System the scenario is dedicated to
Default execution mode
Caution: Scenarios are stored in the database file EDHSWIPF. This file is automatically created in the library PMEDHUSR during first usage of the function.
It will be MANDATORY to include this library PMEDHUSR in the replication definition so that the scenarios become available on the target system.
Some samples of scenarios are available in the corresponding file located in PMEDHTOOLS library. To use those samples, run a copy command from the tool library to the final file, as follows:
CRTDUPOBJ OBJ(EDHSWIPF) FROMLIB(PMEDHTOOLS) OBJTYPE(*FILE) TOLIB(PMEDHUSR) DATA(*YES)
CRTDUPOBJ OBJ(EDHSWIL1) FROMLIB(PMEDHTOOLS) OBJTYPE(*FILE) TOLIB(PMEDHUSR) DATA(*YES)
Function key F6 allows creating a new scenario:
SCENARIO DEFINITION
Scenario : SWITCH2___ Description : Start Activity on Recover y system_________________ System name : CLUSTER_ Mode : 2 1=Batch, 2=Interactive 3=By step
F12=Cancel |
Enter the following parameters:
Scenario name. Name of the scenario, with 10 characters
Description text
System name where the scenario will be performed (will be used to be sure that you run the correct scenario on the correct system)
Execution mode
BATCH – Submit the scenario in batch mode
INTERACTIVE – Perform the scenario in interactive mode
BY STEP – Each function will be confirmed by the user
Note: Execution mode can be changed when the scenario is launched.
After having created the scenario, you can open it, using option 8=Commands.
It will show the detail of the scenario.
EDHTools SWITCH - COMMANDS TO RUN____________________________
2=Change 3=Copy 4=Delete 5=Display
Scenario : STEP2 Switch on RECOVERY system
Slt Seq. Command to execute Err Lck _ 5 DLTUSRIDX USRIDX(PMEDHUSR/AT_SND) 0 0 _ 10 PMEDHSWI ENV(AT) MOD(*YES) 1 0 _ 20 SNDMSG MSG('Switch Quick-EDD terminé - Démarrage d 0 0 _ 30 ADDTCPIFC INTNETADR('192.168.100.8') LIND(ETHLINE) 1 0 _ 40 STRTCPIFC INTNETADR('192.168.100.8') 1 1 _ 50 NETSTAT OPTION(*IFC) 0 0 _ 60 STRSBS SBSD(QINTER) 0 0 _ 70 STRSBS SBSD(QBATCH) 0 0 _ 80 STRSBS SBSD(QCMN) 0 0 _ 90 EDHUSRENA USRPRF(*ALL) STATUS(*ENABLED) QINCLUDE(* 0 0 More ... F3=Exit F5=Refresh F6=Create F12=Cancel F22=Re-number |
Use option 2=Modify to modify an existing command, or press F6 to create a new one.
COMMAND TO EXECUTE
Sequence : 30 (0-999) Action on error : 0 (0=Ignore, 1=Stop) Hold : 0 (0=No, 1=Yes) Command : SNDMSG MSG('Be sure to use console screen or HMC i_ n order to keep connection during switch') TOUSR(*R EQUESTER) MSGTYPE(*INQ)____________________________ ___________________________________________________ ___________________________________________________
Description Alert______________________________________________
F4=Prompt F12=Cancel |
Enter the following parameters:
Sequence – Sequence number for the processing of this command.
Action on error – This parameter allows you to define the action to take in case of command failure:
0 – Process will continue
1 – Process is ended. You must examine the joblog, determine the failure, and restart on the sequence number of the command that failed.
Hold – This setting allows you to prevent the command from being processed. It will be displayed in yellow.
Command – Detail of command to perform. Function key F4 allows prompting of the command.
Description – Will be displayed while the replication is running in “step” mode.
Scenarios allow the use of any OS/400 command and of any Assure QuickEDD HA command.
The option F13 allows you to copy several commands from one scenario to another:
COPY OF A SCENARIO
Scenario . . . . : From sequence : 0 To sequence : 0
Target scenario : Sequence . . . : 0 Increment . . : 0
F12=Cancel |
The option F11 allows you to display a standard command line.