|
Shutting down a VSE system can be a time consuming, manual process for
the operations or systems support staff. Many sites have several
partitions that may be active such as VTAM, CICS, vcndor products and
other subsystems. To shutdown the system, each partition has to be
messaged and the appropriate shutdown command issued to terminate the
partition. Typically the commands used to shutdown a partition will
vary from subsystem to subsystem.
If
there are no vendor products installed at the site to automate the
shutdown process then the z/VSE utility program DTRIATTN can be used to
automate the system shutdown process. This utility can be used to pass
any commands to a partition that supports the MSG command with the DATA=
parameter. Some IBM and vendor products do not support the DATA=
parameter so these may have to be handled manually, however, an
automated shutdown jobstream can be created to shutdown those partitions
that do support this parameter on the MSG command.
The
following is an example of a jobstream that can be used to automate
system shutdown:
* $$ JOB JNM=SHUTDOWN,DISP=L,CLASS=0
// JOB SHUTDOWN SYSTEM SHUTDOWN
// PAUSE SYSTEM WILL BE SHUTDOWN, PRESS
ENTER TO CONTINUE OR CANCEL
// EXEC DTRIATTN,PARM='MSG CICSICCF,DATA=CEMT P SHUT'
// EXEC IESWAIT,PARM='05'
// EXEC DTRIATTN,PARM='MSG CICSPROD,DATA=CEMT P SHUT'
// EXEC IESWAIT,PARM='30'
// EXEC DTRIATTN,PARM='MSG TCPIP,DATA=SHUTDOWN'
// EXEC IESWAIT,PARM='30'
// EXEC DTRIATTN,PARM='Z NET,QUICK'
// EXEC IESWAIT,PARM='30'
// EXEC DTRIATTN,PARM='PEND'
/&
* $$ EOJ
The
IESWAIT utility in the example is used to cause a wait between each
command for the number of seconds specified in the PARM field so that
the shutdown of each subsystem is done in an orderly manner.
The
MSG xx,DATA= command can be entered on the VSE console to determine if a
product supports the DATA= parameter on the MSG command. Even if the
product does not support the DATA= parameter, a series of DTRIATTN
execute steps can still be coded in the shutdown job to terminate one of
these partitions. For example, CICS Transaction Server supports the
DATA= parameter but CICS/VSE 2.3 does not so to terminate a CICS/VSE
partition, you could add the following to the shutdown jobstream:
// EXEC
DTRIATTN,PARM='MSG CICS23'
// EXEC IESWAIT,PARM='05'
// EXEC DTRIATTN,PARM='45 CEMT P SHUT'
The
latter example assumes that the REPLID number from the MSG command is
always the same. If is not, then only the DTRIATTN utility with the MSG
command should be issued then the operator will have to respond manually
to the REPLID number for the partition. Even if all the partitions can
not be shutdown automatically, providing a job to automate shutdown of
as many partitions as possible will simplified the shutdown process.
|