SMF Type 119 Record - Subtype 1
This table shows the record layout for type 119 SMF records
It's easy to report on SMF 119 data! (Jump to sample reports)
Spectrum SMF Writer handles the difficult SMF record parsing for you automatically. You just specify which fields you want to see.
Spectrum SMF Writer also converts the arcane date and time fields and reformats them into an attractive report.
Record length. This field and the next field (total of four bytes) form the RDW (record descriptor word). See “Standard SMF Record Header” on page 13-1 for a detailed description.
Segment descriptor (see record length field).
System indicator Bit Meaning When Set 0 New record format 1 Subtypes used 2 Reserved. 3-6 Version indicators* 7 System is running in PR/SM mode.*See “Standard SMF Record Header” on page 13-1 for a detailed description.
Record type 119 (X'77').
Time since midnight, in hundredths of a second, that the record was moved into the SMF buffer.
Date when the record was moved into the SMF buffer, in the form 0cyydddF. See “Standard SMF Record Header” on page 13-1 for a detailed description.
System identification (from the SMFPRMxx SID parameter).
Number of triplets in this record. A triplet is a set of three SMF fields (offset/length/number values) that defines a section of the record. The offset is the offset from the RDW.
Offset to TCP/IP identification section from RDW.
Length of TCP/IP identification section.
Number of TCP/IP identification sections.
Offset to first data section
Length of first data section
Number of first data sections
Offset to 2nd data section
Length of 2nd data section
Number of 2nd data sections
Offset to 3rd data section
Length of 3rd data section
Number of 3rd data sections
Offset to 4th data section
Length of 4th data section
Number of 4th data sections
Offset to 5th data section
Length of 5th data section
Number of 5th data sections
Offset to 6th data section
Length of 6th data section
Number of 6th data sections
For the TCP/IP connection initiation record, the TCP/IP stack identification section indicates TCP as the subcomponent and X'08' (event record) as the record reason.
System name from SYSNAME in IEASYSxx
Sysplex name from SYSPLEX in COUPLExx
TCP/IP stack name
z/OS Communications Server TCP/IP release identifier
TCP/IP subcomponent (right padded with blanks):
FTPC FTP Client
FTPS FTP server
IP IP layer
STACK Entire TCP/IP stack
TCP TCP layer
TN3270C TN3270 Client
TN3270S TN3270 server
UDP UDP layer
Started task qualifier or address space name of address space that writes this SMF record
User ID of security context under which this SMF record is written
ASID of address space that writes this SMF record
Reason for writing this SMF record:
X'08' Event record
X'C0' Interval statistics record, more records follow
X'80' Interval statistics record, last record in set
X'60' End-of-statistics record, more records follow
X'20' End-of-statistics record, last record in set
X'50' Shutdown starts record, more records follow
X'10' Shutdown starts record, last record in set
The TCP connection Initiation record is collected whenever a TCP connection is opened. This record contains pertinent information about the connection available at the time of its opening.
TCP socket resource name (Address space name of address space that established this TCP connection)
TCP socket resource ID (connection ID)
Subtask Name (Address of MVS™ TCB for the task that owns this connection. Note that this is not the subtask value specified on an INITAPI call.)
Remote IP address at time of connection open
Local IP address at time of connection open
Remote port number at time of connection open
Local port number at time of connection open
Time of day of connection establishment
Date of connection establishment
STCK of connection establishment - time
STCK of connection establishment - date
The table above is based on the description provided by IBM in its "MVS Systems Management Facilities (SMF)" manual.
The sample SMF report below was created with Spectrum SMF Writer, the low-cost 4GL SMF report writer.
In this report, we read as input the SMF file and select just the type 119 subtype 2 TCP Connection Termination records. (See SMF 119 Subtype 2 record layout.) The report shows information about terminated TCP connections, including start time, end time and computed elapsed time. It also shows the total number of bytes sent and received during the connection and the termination code. Our record layout also expands the 1-byte termination code into a readable descriptive text. The report is grouped by TCP/IP Stack and Resource. The report includes subtotals for each Resource.
All of this with just a few lines of code!
Why not install a Spectrum SMF Writer trial right now and start making your own SMF reports!