Sample scripts

In order to use the sample scripts, you need to extract them from the zSAP_BusinessContinuity<nn>.zip file and transfer them to the operating system platform where you want to use them.

This zip file file contains:

  • Readme:
    readme_v<nn>
    a readme file for the current version of zSAP_BusinessContinuity<nn>.zip
  • z/OS® UNIX utilities:
    sanchkv1.txt
    Sample REXX program to check for and clear Move Group EXCLUDEs or AVOIDs
    db2_sazoscmd.rex
    REXX script that enables the SAP host agent on z/OS with its subcomponent sapdbctrl to interact with SAP databases (Db2® subsystems on z/OS) that are automated via a SA z/OS policy. For details see SAP Note 1887279: DB2-z/OS: sapdbctrl: Prerequisites and Configuration.

    Set the following three environment variables to the full path of db2_sazoscmd.rex, for example in the environment of the saproot user in order to use this REXX script:

    • DB2ZCTRL_START_DB_COMMAND
    • DB2ZCTRL_STOP_DB_COMMAND
    • DB2ZCTRL_CHECK_DB_COMMAND

    Then, the db2_sazoscmd.rex script is used for starting, stopping, or checking the status of a SA z/OS controlled Db2 subsystem with sapdbctrl.

    db2_sazosmap.rex
    REXX script that is called by db2_sazoscmd.rex and implements the mapping between Db2 subsystem IDs (SSIDs) and IBM Z System Automation SYSPLEX MOVE group names.
  • Linux® utilities:
    testNFS.sh
    Linux sample shell script used to wait up to 3 minutes (default) for ospf/zebra to consolidate the routing table.
    beforeafs.service
    Linux SLES 12 sample service to test z/OS NFS server availability before starting the autofs service. To use the service, please update the hostname of the virtual NFS server in the testNFS.sh call according to your environment.
    zebra.service
    Linux SLES 15 sample service to start the zebra (and ospfd) services after all wicked managed network interfaces are up.
  • AIX® utilities:
    rc.local
    AIX sample shell script used to wait up to 3 minutes (default) for gated to consolidate the routing table.