Running BMC AMI Defender as a started task


You can find details about running BMC AMI Defender as a started task in Testing-BMC-AMI-Defender. Use JCL that is similar to the following example, which is provided in the CZAGENT member of the amihlq.CZAGENT.CNTL data set.

//CZAGENT PROC RUNMODE=,INSTALL=,VERBOSE=,TRACE=,DEFINES=CZDEFINE,
// INSTANCE=*,SET=,TYPERUN=,
// LEOPTS=CZALEOPT, CEEOPTS member
// PARMS=CZAPARMS,
// LOAD=LOAD, Change to 'ARCH9.LOAD' for backlevel support
// SWITCH=DEFLTCFG
//*
//* Cataloged procedure for starting BMC AMI Defender
//*
//* You must edit 'amihlq' below to your installed
//* high level qualifier
//*
//* If you make changes to this JCL note that AMI Defender *must*
//* be loaded from STEPLIB, not from JOBLIB or the link pack area
//*
//* If you use the DB2 "START" facility to allow AMI Defender to
//* start internal DB2 traces in order to generate SMF 100, 101
//* and 102 records, you must add the DB2 SDSNLOAD library to the
//* STEPLIB concatenation.
//*
//CZAGENT EXEC PGM=CZAGENT,TIME=1440,REGION=5M,PARMDD=CZAPRMDD
//*
//* EXPORT must go before the symbols it exports ...
// EXPORT SYMLIST=*
// SET $DEFINES=&DEFINES
// SET $INSTALL=&INSTALL
// SET $INSTANC=&INSTANCE
// SET $PARMS=&PARMS
// SET $RUNMODE=&RUNMODE
// SET $SET=&SET
// SET $SWITCH=&SWITCH
// SET $TRACE=&TRACE
// SET $TYPERUN=&TYPERUN
// SET $VERBOSE=&VERBOSE
//*
//CZAPRMDD DD *,SYMBOLS=JCLONLY
&$VERBOSE,TRACE(&$TRACE),CZAPARMS(&$PARMS),DEF(&$DEFINES),
MODE(&$RUNMODE &$INSTALL),INSTANCE(&$INSTANC),SET(&$SET),
TYPERUN(&$TYPERUN),SWITCH(ON(&$SWITCH))
/*
//STEPLIB DD DSN=amihlq.CZAGENT.&LOAD,DISP=SHR
//* DD DISP=SHR,DSN=DB2.SDSNLOAD
//CZAPARMS DD DSN=amihlq.CZAGENT.PARM,DISP=SHR
//CZADIAG DD SYSOUT=*
//CZAPRINT DD SYSOUT=*
//SYSUDUMP DD SYSOUT=*
//CEEOPTS DD DISP=SHR,DSN=amihlq.CZAGENT.PARM(&LEOPTS)
//BMCPSWD DD DISP=SHR,DSN=amihlq.CZAGENT.BMCPSWD
// PEND

Notes

  • The CZAPARMS DD must specify an entire PDS or PDSE (single data set or a concatenation, LRECL=80, RECFM=FB) and not a member, that is, amihlq.CZAGENT.PARM, not amihlq.CZAGENT.PARM(member)
  • The agent and its exit must be loaded from STEPLIB, not from some other DD such as JOBLIB, nor from the link pack concatenation.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*