SMF Type 119 Record - Subtype 10
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 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
For the UDP socket close record, the TCP/IP Stack identification section indicates UDP 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
UDP socket resource name (address space name of address space that opens this socket)
UDP socket resource ID (connection ID)
Subtask ID. This is the task TCB for the task owning the socket.
Time of day of socket open
Date of socket open
Time of day of socket close
Date of socket close
Remote IP of last datagram received on socket
Local IP address at time of socket close
Remote port of last datagram received on socket
Local port number at time of socket close
UDP Socket Type
x'02': Enterprise Extender
Reason for socket close
x'02': Abnormal: application error or stack termination
Number of inbound UDP datagrams
Number of outbound UDP datagrams
Number of inbound bytes
Number of outbound bytes
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!