-
Notifications
You must be signed in to change notification settings - Fork 4
stopZos
stopZos can be used to perform a clean shutdown of z/OS.
stopZos can be executed on any recent ADCD released by ZD&T and deployed by ZD&T Tools Enterprise Edition, without any parameters, to perform a clean shutdown of z/OS. For any other ADCD versions or deployments and for customer z/OS systems this script may require up to 3 parameters as follows. Note these parameters can also be used for ADCD if there are custom configurations.
stopZos parameters:
-c shutdown_command
Where shutdown_command is the z/OS console command required to shutdown z/OS. For ZD&T ADCD that has been IPL'd
with the AU, NV or NZ options you do not need to specify this option. The default is %netv shutsys. For any other
z/OS system this command should be specified enclosed in single quotes. For example: stopZos -c 's shutcs'
-z end_task Where end_task is the final z/OS subsystem that signifies z/OS is completely down. The default is JES2.
-t seconds Where seconds is the number of seconds to wait for z/OS to complete shutdown. The default is 300 seconds.
-awsstop If specified then after z/OS is down the zPDT command "awsstop" will be executed to terminate zPDT. Default action is the zPDT emulator will remain active and "awsstop" will need to be executed manually or via other means.
-noverify If specified, bypass any prompts to continue/abort
-reipl If specified, will re-IPL the z/OS system after shutdown has completed. The IPL will done using the same IPL parameters the system last used. This option cannot be used with -awsstop
Examples:
stopZos -c 's shutcs' -z JES2 -t 200 Above example uses z/OS command => s shutcs to initiate shutdown of z/OS, the final task to signify that z/OS is down will be JES2 (JES2 must end to signify z/OS is down), timeout of 200 seconds after which the script will end. zPDT command awsstop will NOT be issued.
stopZos -c 's shutsys' -z TASKB -t 400 -awsstop Above example uses z/OS command => s shutsys to initiate shutdown of z/OS, the final task to signify that z/OS is down will be TASKB (TASKB must end to signify z/OS is down), timeout of 400 seconds after which the script will end. zPDT command awsstop will be issued after z/OS is down or after the specified timeout .
stopZos -noverify -reipl Above example will shutdown z/OS (an ADCD image since no specific shutdown command was specified) and after shutdown the system will be re-IPL'd using the same IPL parameter last used.