SMF DB2 statement
You can use the STArt parameter to configure BMC AMI Datastream to start the appropriate Db2 traces itself. BMC AMI Datastream supports compressed Db2 SMF records. The support is automatic and you do not need to enable any specific option.
If you enter more than one SMF DB2 statement, the subsequent statement replaces the previous ones.
Syntax diagrams
The following diagrams describe the valid syntax for the SMF DB2 statement.
For information about filterSpecification , see FILTER-and-MATCH-parameters.
For information about ifcidDefaultServices , see IFCID default severitieslater in this topic.
The following table describes the SMF DB2 statement parameters:
Parameter | Description | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
DESCription | Deprecated and accepted only for compatibility purposes | ||||||||||
DB2AUDITEnrich(subsystemName subsystemName...) | Enriches only SMF records for the specified Db2 subsystems with schema, table names, and database names for IFCID 143 and IFCID 144 records Specify one or more Db2 subsystem names (SSIDs), separated by a blank space and in any order. Subsystem names are always one to four alphanumeric or national characters. You can specify the names in uppercase or lowercase. For example, PROD, Prod, and pRoD are all equivalent. To enrich the schema and table name, you must bind the one or both of the CZAUTILS and CZADB2RR plans to each specified Db2 subsystem name. If the START or IFI parameter is specified, you must bind CZADB2RR. Otherwise, bind CZAUTILS. For more information, see Example of the CZABIND member. To use this parameter, you must configure the following option, process, and authorization:
| ||||||||||
FACILITY(facilityName) | Specifies the originating RFC 3164 facility of the syslog records that correspond to SMF type records To use a different facility, enter one of the RFC 3164 facility names listed in Syslog-facilities-and-severities. If you omit this parameter, the default LOGAUDIT is used. | ||||||||||
FIELDs(fieldName…) | Specifies the names of the SMF type record fields that BMC AMI Datastream should forward to the BMC Defender Server or other syslog console Fields appear in the message in the order in which you listed them. Specify one or more of the fields as described in Supported-record-field-names. | ||||||||||
filterSpecification | Filters the fields For information about filtering fields, see FILTER-and-MATCH-parameters. | ||||||||||
IFCIDs | Specifies one or more Db2 IFCID types to be formatted by BMC AMI Datastream, and if you use the STArt parameter, the IFCID traces that Db2 is configured to generate Do not specify more than 156 IFCIDs, neither explicitly, such as 1 2 3, or with a range such as 1:157, if you want BMC AMI Datastream to start traces automatically (using the STArt parameter). Specify IFCIDs in one or more of the formats.
| ||||||||||
IFI | Enables BMC AMI Datastream to use the instrumentation facility interface (IFI) to obtain instrumentation facility component identifier (IFCID) records When Db2 generates the IFCID records, the BMC AMI Datastream agent reads the records directly without producing Db2 SMF records. You can use IFI without the INHIBIT parameter because no SMF records are produced. To use the IFI parameter, you must ensure that the SSIDparameter includes a list of the required subsystems and that the STArt parameter is used to begin the records trace. | ||||||||||
INHibit | Inhibits writing one or more Db2 IFCIDs to the SMF data sets (for the specified subsystems only) You must modify the $$$IFDB2 member to use this parameter. This message can be ignored. No trace data is lost, its writing has simply been inhibited as requested. Specify the IFCIDs in one or more of the formats.
| ||||||||||
LOG | LOG(HEX) | Logs SMF records on CZAPRINT and dumps them in hexadecimal or character format This parameter is intended primarily for diagnostic purposes. Compressed records are dumped both before and after decompression. | ||||||||||
PROCess(‘process-tag’) | Specifies the tag that appears at the start of SMF syslog messages The tag follows the priority, time stamp, and host name, and precedes the formatted fields. Enter the exact process tag that you want to include in syslog messages, including any spaces and punctuation. Process tags can be of any length from null string (‘’) to 32 characters. If you omit this parameter, the default DB2is used, followed by the leading delimiter from OPTIONS DELIM. For more information, see OPTIONS-statement. | ||||||||||
SEVerity(severity) | Specifies the default syslog severity. For more information, see Syslog-facilities-and-severities . You can also enter SUPPRESS. SUPPRESS indicates that the records are not forwarded to the syslog server. If you omit this parameter, it defaults to the value as described in IFCID default severities. | ||||||||||
SSIDs(subsystemName …) | Specifies that only SMF records for the specified Db2 subsystem names are formatted and forwarded to the syslog console You must modify the $$$IFDB2 member to use this parameter. SSIDs also specify the Db2 subsystems where the STArt parameter, if specified, starts the indicated IFCID traces. Specify the names of 1 to 16 Db2 subsystem IDs, separated by one or more blanks. Subsystem names are always 1 to 4 uppercase alphanumeric or national characters, but you can specify the names in upper or lower case. For example, PROD, Prod, and pRoD are all equivalent. The order in which you specify the names is not significant. If you omit SSIDs, then records from all Db2 subsystems that satisfy any IFCID parameter are formatted and forwarded. You must specify SSIDs if you use the STArt parameter. Specifying the names of Db2 subsystems that do not actually exist or are not actually started on the LPAR cause errors only if the STArt parameter is also used. If the START-command parameter SET=’SSID(ssid)’ is specified when starting BMC AMI Datastream, then you can specify &SSID as a subsystem name and the value of ssid is substituted. | ||||||||||
STArt | Specifies that BMC AMI Datastream is to interface with Db2 to start the DB2 IFCID traces indicated in IFCIDs() You must modify the $$$IFDB2 member to use this parameter. The indicated traces start only for the Db2 subsystems in the SSIDs parameter. BMC AMI Datastream starts the indicated traces for each specified Db2 subsystem whenever it becomes active. You can specify STArt without any subparameters and doing so is equivalent to using: START( CLASS(32) CON() REC('-') ) STArt requires one of the following privileges or authorities:
You must modify the BMC AMI Datastream process to add the Db2 SDSNLOAD library to the STEPLIB concatenation. For more information, see Configuring-the-CZAGENT-procedure-for-Db2. Use one or more of the STArt options:
|
1. Db2 SMF trace record types are identified by IFCID number. IFCID stands for instrumentation facility component identifier, which is another way of saying trace record type. There are about 400 record types or IFCIDs, numbered between 1 and 511. Each IFCID type record has a specific layout and describes a specific event
IFCID default severities
If you omit SEVerity, it defaults as follows:
- IFCIDs 23, 62 and 197 default to INFOrmational.
- IFCIDs 24, 25, 90, 91, 97, 141, 142, 145, 258 and 319 default to NOTICE.
- IFCID 140 defaults to ERROR.
- IFCID 361 defaults to WARNing.
- All other IFCIDs default to SUPPRESS.
Example of the $$$IFDB2 member
Modify the $$$IFDB2 member for parameters indicated in the previous table.
Because the SMF DB2 command includes this member, do not add parameters or alter any continuation characters ( + ).
;**********************************************************************;
; $$$IFDB2: User agent parameter member for BMC AMI Datastream ;
; This is a copy of CZAIFDB2 and made available for ;
; user modification. It will be included in CZAFIELD ;
; SIEMTYPE-independent ;
; Copyright (c) 2014-2024 BMC Software, Inc. ;
;**********************************************************************;
;**********************************************************************;
;**********************************************************************;
;** **;
;** IFCID 361 reports successful access for ALL users, regardless **;
;** off authority level required. **;
;** **;
;** If you want to audit all successful accesses, uncomment its **;
;** IFCID list below. Otherwise, use the DB2 Audit Policy to limit **;
;** monitoring of successful SYSADM and DBADM access only. **;
;** **;
;**********************************************************************;
IFCID(1 2 3 23 62 106 197 SEV(INFO)) +
IFCID(24 25 90 91 97 141:145 258 319 SEV(NOTICE)) +
; IFCID(361 SEV(WARNING)) +
IFCID(376 SEV(WARNING)) +
IFCID(378 379 SEV(SUP)) +
IFCID(140 SEV(ERROR)) +
+ ; Read manual on START, INHIBIT and SSIDs before uncommenting
/* START */ +
/* IFI */ + ; Use IFI interface instead of SMF
/* SSIDS() */ +
/* DB2AUDITEnrich() */ +
/* INHIBIT() */ +