SMF 30 statement
SMF Type 30 records are written to indicate the start and end of units of work. Units of work include Jobs, Started Tasks, TSO sessions, and other types of work, such as APPC transactions. You might want to monitor Type 30 records to keep track of TSO logons, or to be aware of production work that ends abnormally. The SMF 30 statement indicates that Type 30 records are to be collected and forwarded to your syslog console. If you code an SMF 30 statement, then by default, all Start, End, and Stepend Type 30 records are forwarded with a facility of System and a severity of Informational, and all Type 30 statistics records are suppressed.
The SMF 30 statement allows you to specify which types of work are to be monitored, whether only certain events for those units of work are to be monitored.
If you code more than one SMF 30 statement, then a subsequent SMF 30 statement replaces any SMF 30 statement(s) that came before.
If TRACE(PARM) is specified on the OPTIONS statement, then BMC AMI Defender displays a summary of your Type 30 event and severity specifications in message CZA0243I.
SMF 30 | Must be specified as shown. |
INHibit | Specifies that the writing of the SMF record type 30 to the SMF data sets or logstream is to be inhibited by BMC AMI Defender. SMF record type 30 is processed by BMC AMI Defender, but then inhibited from further processing by SMF. |
FACILITY(facility-name) | Specifies the RFC 3164 facility that is to be indicated as the origin of the syslog records corresponding to SMF Type 30 records. If you omit this parameter, it defaults to SYSTEM. If you would like a different facility indicated, code one of the RFC 3164 facility names as listed in Syslog-facilities-and-severities. |
FIELDs(fieldname…) | Specifies the names of the SMF Type 30 record fields that are to be transmitted to the BMC Defender Server or other syslog console, and the order in which they are to appear in the message. Specify one or more of the fields, as described in FIELDS-parameter. |
filter-specification | |
JOBs(… | |
OTHER(… | |
STC(… | |
TSO(… | Specifies, for each indicated type of work, those types of events (start, interval, and normal end) are to be forwarded and with what severity. See the specifications for START, END, and STEPEND for a description of how those parameters are specified. |
INTerval(severity) | Specifies the severity of interval statistics events for the indicated type of work. See Syslog-facilities-and-severities. You might also code SUPPRESS. SUPPRESS indicates that the specified event records are not to be forwarded to the syslog server at all. |
LAST(severity) | Specifies the severity of last statistics events for the indicated type of work. See Syslog-facilities-and-severities. You might also code SUPPRESS. SUPPRESS indicates that the specified event records are not to be forwarded to the syslog server at all. |
START(severity) | Specifies the severity of start-of-work events for the indicated type of work. See Syslog-facilities-and-severities. You might also code SUPPRESS. SUPPRESS indicates that the specified event records are not to be forwarded to the syslog server at all. |
END(severity RC0(severity) RC4(severity) RC8(severity) …) | Specifies a severity to apply to all end-of-work events for the indicated type of work. You might also specify an overriding severity to apply to work that ends with a return code of zero, work that ends with a return code of four, and so forth. See the specifications for RC0, RC4 and so forth for a description of how these parameters are specified. See Syslog-facilities-and-severities. You might also code SUPPRESS. SUPPRESS indicates that the specified event records are not to be forwarded to the syslog server at all. |
STEPend(severity RC0(severity) RC4(severity) RC8(severity) …) | Specifies a severity to apply to end-of-jobstep events. The STEPEND parameter is only relevant to work of type JOBS. You might also specify an overriding severity to apply to jobsteps that end with a return code of zero, jobsteps that ends with a return code of four, and so forth. See the specifications for RC0, RC4 and so forth for a description of how these parameters are specified. See Syslog-facilities-and-severities. You might also code SUPPRESS. SUPPRESS indicates that the specified event records are not to be forwarded to the syslog server at all. |
RC0(severity) | |
RC4(severity) | |
RC8(severity) | |
RC12(severity) | |
RC16(severity) | |
ABEND(severity) | Specifies an overriding severity for units of work that end with the specified return code. See Syslog-facilities-and-severities. You might also code SUPPRESS. SUPPRESS indicates that the specified event records are not to be forwarded to the syslog server at all. A severity specified for any return code value overrides any lower (less severe) severities for any higher return codes. |
LOG | |
LOG(HEX) | Specifies that the selected SMF records are to be logged on CZAPRINT and optionally dumped in hexadecimal and character format. This parameter is intended primarily for diagnostic purposes. Use care in specifying LOG(HEX) as it might generate a large volume of print records, especially if BMC AMI Defender is left running for several hours or more. |
PROCess(‘process-tag’) | Specifies the tag that appears at the start of SMF 30 syslog messages, following the priority, timestamp and hostname, and preceding the formatted fields. Specify the exact process tag that you want to include in syslog messages including any spaces and punctuation. Process-tag might be any length from the null string (‘’) to 32 characters. If SMF 30 PROCess is omitted, it defaults to SMF followed by the leading delimiter from OPTIONS DELIM. |
SMF 30 Severity example
As an example, if you were to code:
STEPEND(SUPPRESS) +
END( SUPPRESS RC4(WARN) RC8(ERROR) ABEND(CRIT) ) ) +
OTHER( START(NOTICE) +
END( SUPPRESS ABEND(NOTICE) ) ) + +
STC( START(SUPPRESS) +
END( NOTICE RC4(WARN) RC8(ERROR) ABEND(CRIT) ) ) +
TSO( START(NOTICE) END(SUPPRESS) )
Then here are the resulting work unit severities (as displayed in message CZA0243I when TRACE(PARM) is in effect):
JOB SUPpress SUPpress WARNing ERRor ERRor ERRor CRITical
JOBSTEP --- SUPpress SUPpress SUPpress SUPpress SUPpress SUPpress
OTHER NOTICE SUPpress SUPpress SUPpress SUPpress SUPpress NOTICE
STC SUPpress NOTICE WARNing ERRor ERRor ERRor CRITical
TSO NOTICE SUPpress SUPpress SUPpress SUPpress SUPpress SUPpress