GitHubContribute in GitHub: Edit online

SMF record

An SMF record can be up to 32KB in size and begins with a standard header followed by information determined by the record type and sub-type.

SMF header

A standard header is where the type, sub-type, system id, and other information is located. com.ibm.dbb.build.smf.SmfRecord() can map the standard header. Most of the information is filled in by the system when the record is written, therefore few setter methods are available. This class is useful for mapping the standard header when reading SMF records.

DBB-specific information in the SMF record

A DBB SMF record has a type of 122 and sub-type of 2 and includes the following information beyond the standard header fields:

  • Product name
  • Product feature
  • Product ID
  • Version
  • Release
  • Modification
  • Build
  • Timestamp for the SMF record
  • User ID

The com.ibm.dbb.build.smf.DBBSmfRecord class is used to map the fields in a DBB SMF record. You can use this class to write a DBB SMF record. The fields are populated automatically from the information found in the system, but some information may be overridden using the setter methods.

The DBBSmfRecord class can also be used to map a record read from the SMF system. Getter methods are available to get the DBB information from the record.

You can find more information about how to use the classes at ReadSMFRecords sample.