Go to Home Page
Questions?
Call 1-800-572-5517
 
  Go to Home Page  
  See all products
  See price schedules
  See manuals, tutorials, articles
  Download a free 30-day trial
  See user testimonials
  About Pacific Systems Group
 
 
SMF Tools
  See SMF Record Layouts
  See Sample SMF Reports
  Learn How to Export SMF Data
  Download Free SMF Reporting Software (30 days)
 
One of the greatest SMF record parsing programming languages I've ever seen. Chief, Large Systems Services Branch, NIH
  Choose Spectrum Writer to add 4GL to your product
  Free 60-Page Book (PDF) - How to Make an SMF Report
Spectrum DCOLLECT Reporter - the 4GL DCOLLECT Report Writer.

Spectrum SMF Writer - the 4GL SMF Report Writer.

SMF Type 119 Record - Subtype 2

This table shows the record layout for type 119 SMF records
(TCP/IP Statistics - TCP Connection Termination Record).

List of other SMF record layouts available.
List of sample SMF reports.

Purpose: Transmission Control Protocol/Internet Protocol (TCP/IP) writes type 119 records to collect statistics about Telnet servers and clients, FTP servers and clients, and API activity and stack usage information.

SMF type 119 records contain unique stack identification sections designed to eliminate the confusion of the type 118 records. They provide uniformity of date and time (UTC), common record format (self-defining section and TCP/IP identification section), and support for IPv6 addresses and expanded field sizes (64 bit versus 32 bit) for some counters. The kinds of SMF type 119 records available are:

  • TCP connection initiation and termination
  • UDP socket close
  • TCP/IP, interface and server port statistics
  • TCP/IP stack start/stop
  • FTP server transfer completion
  • FTP server logon failure
  • FTP client transfer completion
  • TN3270E Telnet server session initiation and termination
  • Telnet client connection initiation and termination
  • IKE tunnel activation, refresh, and expire
  • Dynamic tunnel activation, refresh, installation, and removal
  • Manual tunnel activation and deactivation

The SMF type 119 records utilize a common structure. Each record is organized as follows:

  • SMF header
  • Self-defining section containing pointers to:
    • TCP/IP identification section (identifies system, stack etc)
    • Sections containing the data for the record

The Subtype 2 TCP connection termination record is collected whenever a TCP connection is closed or aborted. This record contains all pertinent information about the connection, such as elapsed time, bytes transferred, and so on.

Guidelines:
* Because this information duplicates all of the information contained in the TCP connection initiation record, only collect the TCP connection termination record.
* Because this record is generated for every single TCP connection, this can generate significant load on a server and rapidly fill the SMF data sets. Use care when you use it.

It's easy to report on SMF 119 data! (Jump to sample reports)

SMF Spectrum Writer
We have a low-cost 4GL report writer especially for SMF files. It's called Spectrum SMF Writer.

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.

Plus, Spectrum SMF Writer can export SMF data as comma delimited files to use on your PC.
 
Try It FREE Now!

SMF Type 119 Record -- TCP/IP Statistics - TCP Connection Termination Record
Offset
(Dec.)
Offset
(Hex)
NameLengthFormatDescription
00SMF119LEN2binary
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.
22SMF119SEG2binary
Segment descriptor (see record length field).
44SMF119FLG1binary
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.
55SMF119RTY1binary
Record type 119 (X'77').
66SMF119TME4binary
Time since midnight, in hundredths of a second, that the record was moved into the SMF buffer.
10ASMF119DTE4packed
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.
14ESMF119SID4EBCDIC
System identification (from the SMFPRMxx SID parameter).
1812SMF119SSI4EBCDIC
Subsystem identification.
2216SMF119STY2binary
Record subtype.
Self Defining Section
2418SMF119TRN2binary
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.
261A--2binary
Reserved.
281CSMF119IDOff4binary
Offset to TCP/IP identification section from RDW.
3220SMF119IDLen2binary
Length of TCP/IP identification section.
3422SMF119IDNum2binary
Number of TCP/IP identification sections.
3624SMF119S1Off4Binary
Offset to first data section
4028SMF119S1Len2Binary
Length of first data section
422ASMF119S1Num2Binary
Number of first data sections
442CSMF119S2Off4Binary
Offset to 2nd data section
4830SMF119S2Len2Binary
Length of 2nd data section
5032SMF119S2Num2Binary
Number of 2nd data sections
5234SMF119S3Off4Binary
Offset to 3rd data section
5638SMF119S3Len2Binary
Length of 3rd data section
583ASMF119S3Num2Binary
Number of 3rd data sections
603CSMF119S4Off4Binary
Offset to 4th data section
6440SMF119S4Len2Binary
Length of 4th data section
6642SMF119S4Num2Binary
Number of 4th data sections
TCP/IP Identification Section

For the TCP/IP connection termination record, the TCP/IP stack identification section indicates TCP as the subcomponent and X'08' (event record) as the record reason.

(Offset from beginning of record: SMF119IDOff)
00SMF119TI_
SYSName
8EBCDIC
System name from SYSNAME in IEASYSxx
88SMF119TI_
SysplexName
8EBCDIC
Sysplex name from SYSPLEX in COUPLExx
1610SMF119TI_
Stack
8EBCDIC
TCP/IP stack name
2418SMF119TI_
ReleaseID
8EBCDIC
z/OS Communications Server TCP/IP release identifier
3220SMF119TI_
Comp
8EBCDIC
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
4028SMF119TI_
ASName
8EBCDIC
Started task qualifier or address space name of address space that writes this SMF record
4830SMF119TI_
UserID
8EBCDIC
User ID of security context under which this SMF record is written
5638--2EBCDIC
Reserved
583ASMF119TI_
ASID
2Binary
ASID of address space that writes this SMF record
603CSMF119TI_
Reason
1Binary
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
613D--3EBCDIC
Reserved
Subtype 2 - TCP Connection Termination Section

The TCP connection termination record is collected whenever a TCP connection is closed or aborted. This record contains all pertinent information about the connection, such as elapsed time, bytes transferred, and so on.

(Offset from beginning of record: SMF119S1Off)
00SMF119AP_
TTRName
8EBCDIC
TCP socket resource name (Address space name of address space that closed this TCP connection)
88SMF119AP_
TTConnID
4Binary
TCP socket resource ID (connection ID)
12CSMF119AP_
TTTTLSCS
1Binary
AT-TLS connection status:
* x'01': Connection is not secure
* x'02': Connection handshake in progress
* x'03': Connection is secure
13DSMF119AP_
TTTTLSPS
1Binary
AT-TLS Policy Status:
* x'00': Policy status is not known
* x'01': AT-TLS function off
* x'02': No policy defined for connection
* x'03': Policy defined for connection; AT-TLS not enabled
* x'04': Policy defined for connection; AT-TLS enabled
* x'05': Policy defined for connection; AT-TLS enabled and Application Controlled
14ESMF119AP_
TTTermCode
1Binary
Reason code for connection termination:
* x'11': Error occurred during a send using FRCA(AFPA), possibly because the stack is terminating.
* x'12': A persistent socket used by FRCA (AFPA) was closed by a FIN.
* x'21': The connection was terminated because the stack was terminating.
* x'22': Last stack that can own the dynamic VIPA bound to the socket is terminating
* x'31': Intrusion detection found the connection to be malicious and closed the connection.
* x'32': Connection was denied because of a NetAccess rule.
* x'33': ACK received in lastack state.
* x'41': The connection was terminated because of an administrator action (for example, using Netstat DRop/-D command or the NMI API).
* x'42': The connection was terminated because the local IP address bound by the application has been deleted from the stack.
* x'51': The connection from a client was terminated because the application closed the socket before performing an accept().
* x'52': The application using the socket, closed the connection using a close().
* x'53': A pascal routine issued an orderly close request.
* x'54': A pascal routine issued a disconnect.
* x'55':An error occurred during a pascal accept.
* x'61': The connection was terminated because the client sent a reset.
* x'71':The connection was closed because the same packet was being re-transmitted multiple times.
* x'72': The connection was closed because the TCP window the client was reduced to zero and multiple window probes were not acknowledged.
* x'73': The connection was closed because multiple keepalive probes were not acknowledged.
* x'74': The connection was terminated because the stack timed out waiting for a fin in the finwait-2 state.
15FSMF119AP_
TTRsv2
1Binary
Reserved
1610SMF119AP_
TTSubtask
4Binary
Subtask Name (Address of MVS™ TCB for the task that owns this connection. This is not the subtask value specified on an INITAPI call.)
2014SMF119AP_
TTSTime
4Binary
Time of connection establishment
2418SMF119AP_
TTSDate
4Packed
Date of connection establishment
281CSMF119AP_
TTETime
4Binary
Time connection entered TIMEWAIT or LASTACK state.
3220SMF119AP_
TTEDate
4Packed
Date connection entered TIMEWAIT or LASTACK state.
3624SMF119AP_
TTRIP
16Binary
Remote IP address at time of connection close.
5234SMF119AP_
TTLIP
16Binary
Local IP address at time of connection close.
6844SMF119AP_
TTRPort
2Binary
Remote port number at time of connection close.
7046SMF119AP_
TTLPort
2Binary
Local port number at time of connection close.
7248SMF119AP_
TTInBytes
8Binary
Inbound byte count.
8050SMF119AP_
TTOutBytes
8Binary
Outbound byte count.
8858SMF119AP_
TTSWS
4Binary
Send window size at time of connection close.
925CSMF119AP_
TTMSWS
4Binary
Maximum send window size.
9660SMF119AP_
TTCWS
4Binary
Congestion window size at time of connection close.
10064SMF119AP_
TTSMS
4Binary
Send segment size at time of connection close.
10468SMF119AP_
TTRTT
4Binary
Round trip time in milliseconds at time of connection close.`
1086CSMF119AP_
TTRVA
4Binary
Round trip time variance estimator at time of connection close, in milliseconds.
11270SMF119AP_
TTStatus
1Binary
Socket status:
* x'00': Passive Open (this is a server socket)
* x'01': Active Open (this is a client socket)
11371SMF119AP_
TTTOS
1Binary
Type of Service (ToS) used by this connection.
11472SMF119AP_
TTXRT
2Binary
Number of times retransmission was required for this connection.
11674SMF119AP_
TTProf
32EBCDIC
Service profile name.
14894SMF119AP_
TTPol
32EBCDIC
Service Policy name at the time of connection close.
180B4SMF119AP_
TTInSeg
8Binary
Inbound segment count.
188BCSMF119AP_
TTOutSeg
8Binary
Outbound segment count.
196C4SMF119AP_
TTSSTCK_
D
8Binary
MVS TOD clock value at time of connection establishment.
196C4SMF119AP_
TTSSTCK_
T
8Binary
MVS TOD clock value at time of connection establishment.
204CCSMF119AP_
TTESTCK_
D
8Binary
MVS TOD clock value at time connection entered TIMEWAIT or LASTACK state.
204CCSMF119AP_
TTESTCK_
T
8Binary
MVS TOD clock value at time connection entered TIMEWAIT or LASTACK state.
212D4SMF119AP_
TTDupAcksRcvd
4Binary
Total Number of DUP ACKs received on the connection.
Subtype 2 - TCP Conn. Termination Telnet Specific Section

This section is present only when the given TCP connection represented a TN3270 Telnet connection.

(Offset from beginning of record: SMF119S2Off)
00SMF119AP_
TTTelLUName
8EBCDIC
LU name
88SMF119AP_
TTTelAppl
8EBCDIC
Target application name
1610SMF119AP_
TTTelLogmode
8EBCDIC
Logmode name
2418SMF119AP_
TTTelStatus
4Binary
Status word:
* x80000000 Definite response mode
* x40000000 The connection is being performance monitored
* x00000004 TN3270E mode
* x00000002 TN3270 mode
* x00000001 Line mode
281cSMF119AP_
TTTelTermCode
1Binary
Reason code for closing connection. The socket must be accessible to the TN3270 server to record a reason. (for example, SMF119AP_TTTermCode for this record is x'52'.) See the description of EZZ6034I for a list of reason codes and their descriptions.
291DSMF119AP_
TTTelRsv
3Binary
Reserved
Subtype 2 - TCP Conn. Termination AT-TLS-Specific Section

This section is present only when the given TCP connection was secured by AT-TLS (SMF119AP-TTTTLSCS is X'03').

(Offset from beginning of record: SMF119S3Off)
00SMF119AP_
TTTTLSSP
2Binary
AT-TLS SSL Protocol:
* x'0200': SSL Version 2
* x'0300': SSL Version 3
* x'0301': AT-TLS Version 1
22SMF119AP_
TTTTLSNC
2EBCDIC
AT-TLS Negotiated Cipher
44SMF119AP_
TTTTLSST
1Binary
AT-TLS Security Type:
* x'01': Client
* x'02': Server
* x'03': Server with client authentication, ClientAuthType = PassThru
* x'04': Server with client authentication, ClientAuthType = Full
* x'05': Server with client authentication, ClientAuthType = Required
* x'06': Server with client authentication, ClientAuthType = SAFCheck
55SMF119AP_
TTTTLSRSV1
3Binary
Reserved
88SMF119AP_
TTTTLSUID
8EBCDIC
AT-TLS Partner UserID
Subtype 2 - TCP Conn. Termination Application-Specific Section

This section provides the application-specific information that is associated with a TCP connection. This section is present only when the given TCP connection has application data associated with it.

The content of this field is determined by the application that owns the connection. See the documentation that is supplied by the application. This field typically contains all printable EBCDIC characters, although some applications might include some binary data.

(Offset from beginning of record: SMF119S4Off)
00SMF119AP_
TTAPPLDATA
40EBCDIC
For z/OS Communications Server applications, see Appendix E. Application data for an explanation of the layout, format, and meaning of |this field. For other applications, see the documentation that is supplied |by the application.

The table above is based on the description provided by IBM in its "MVS Systems Management Facilities (SMF)" manual.

Sample Report from SMF 119 Subtype 2 Records
Showing Information about TCP Connections


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!

These Spectrum SMF Writer Statements:


INPUT:  SMF119 LIST(YES)

INCLUDEIF: SMF119RTY=119 AND SMF119STY=2

COMPUTE: MY_DURATION(2) = #MAKETIME(
               ((#MAKENUM(SMF119AP_TTEDATE) * 86400)
                  + #MAKENUM(SMF119AP_TTETIME))
             - ((#MAKENUM(SMF119AP_TTSDATE) * 86400)
                  + #MAKENUM(SMF119AP_TTSTIME))
                                   )

TITLE: 'Z/OS TCP DAILY CONNECTIONS REPORT'
TITLE: 'SYSTEM:' SMF119TI_SYSNAME
       'SYSPLEX:' SMF119TI_SYSPLEXNAME
       'STACK:' SMF119TI_STACK
TITLE: 'SORTED BY STACK AND RESOURCE NAME'

COLUMNS: SMF119AP_TTRNAME('RESOURCE')
         SMF119AP_TTSDATE('DATE/STARTED')
         SMF119AP_TTSTIME('TIME/STARTED')
         SMF119AP_TTEDATE('DATE/ENDED')
         SMF119AP_TTETIME('TIME/ENDED')
         MY_DURATION('CONNECTION/DURATION/HH:MM:SS.SS' ACCUM
                     TP'ZZ:ZZ:Z9.99')
         SMF119AP_TTINBYTES('INBOUND/BYTES')
         SMF119AP_TTOUTBYTES('OUTBOUND/BYTES')
         SMF119AP_TTTERMCODE(HEX 'TERM/CODE')
         SMF119AP_TTTERMCODE_DESC('TERM CODE DESC')

SORT:    SMF119TI_STACK
         SMF119AP_TTRNAME
         SMF119AP_TTSDATE
         SMF119AP_TTSTIME

BREAK:   SMF119AP_TTRNAME

 

Produce This SMF Report:


                                              Z/OS TCP DAILY CONNECTIONS REPORT
                                    SYSTEM: ST1      SYSPLEX: SYPROD    STACK: S01QDAS
                                             SORTED BY STACK AND RESOURCE NAME

                                                    CONNECTION
            DATE      TIME       DATE      TIME      DURATION      INBOUND        OUTBOUND    TERM
 RESOURCE STARTED    STARTED    ENDED      ENDED    HH:MM:SS.SS     BYTES          BYTES      CODE     TERM CODE DESC
 ________ ________ ___________ ________ ___________ ___________ ______________ ______________ ____ _______________________

 FTPTA5   03/21/09 14:04:06.81 03/21/09 14:04:07.46        0.65        257,537          3,052  61  CLIENT SENT RESET
 FTPTA5   03/21/09 14:05:35.59 03/21/09 14:05:45.67       10.08         27,043            329  52  APPL ISSUED CLOSE
 FTPTA5   03/21/09 14:12:13.81 03/21/09 14:12:14.51        0.70        257,537          3,052  61  CLIENT SENT RESET
 FTPTA5   03/21/09 14:12:27.35 03/21/09 14:12:37.42       10.07         27,043            329  52  APPL ISSUED CLOSE
 FTPTA5   03/21/09 15:30:34.96 03/21/09 15:30:35.64        0.68        257,537          3,052  61  CLIENT SENT RESET
 FTPTA5   03/21/09 15:35:13.92 03/21/09 15:35:24.00       10.08         27,043            329  52  APPL ISSUED CLOSE
 *** TOTAL FOR FTPTA5   (    6 ITEMS)                     32.26        853,740         10,143
 
 FTPTA6   03/21/09 14:05:38.03 03/21/09 14:05:38.70        0.67        257,537          3,052  61  CLIENT SENT RESET
 FTPTA6   03/21/09 14:07:23.60 03/21/09 14:07:33.68       10.08         27,043            329  52  APPL ISSUED CLOSE
 FTPTA6   03/21/09 14:12:29.83 03/21/09 14:12:30.50        0.67        257,537          3,052  61  CLIENT SENT RESET
 FTPTA6   03/21/09 14:17:10.02 03/21/09 14:17:20.16       10.14         27,043            329  52  APPL ISSUED CLOSE
 FTPTA6   03/21/09 15:35:16.45 03/21/09 15:35:17.21        0.76        257,537          3,052  61  CLIENT SENT RESET
 FTPTA6   03/21/09 15:36:15.10 03/21/09 15:36:25.18       10.08         27,043            329  52  APPL ISSUED CLOSE
 *** TOTAL FOR FTPTA6   (    6 ITEMS)                     32.40        853,740         10,143
 
 FTPTA7   03/21/09 14:07:26.16 03/21/09 14:07:26.86        0.70        257,537          3,052  61  CLIENT SENT RESET
 FTPTA7   03/21/09 14:08:24.36 03/21/09 14:08:34.50       10.14             70            507  52  APPL ISSUED CLOSE
 FTPTA7   03/21/09 14:17:12.60 03/21/09 14:17:13.31        0.71        257,537          3,052  61  CLIENT SENT RESET
 FTPTA7   03/21/09 14:21:40.01 03/21/09 14:21:50.08       10.07         27,043            329  52  APPL ISSUED CLOSE
 FTPTA7   03/21/09 15:36:17.53 03/21/09 15:36:18.17        0.64        257,537          3,052  61  CLIENT SENT RESET
 FTPTA7   03/21/09 15:37:11.45 03/21/09 15:37:21.53       10.08         27,043            329  52  APPL ISSUED CLOSE
 *** TOTAL FOR FTPTA7   (    6 ITEMS)                     32.34        826,767         10,321
 
 FTPTA8   03/21/09 08:09:32.96 03/21/09 15:29:02.41  7:19:29.45        274,763         15,912  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 13:17:39.42 03/21/09 14:42:50.82  1:25:11.40         47,498          2,291  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 14:42:57.42 03/21/09 14:43:21.38       23.96         45,921          2,291  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 14:43:26.45 03/21/09 15:28:27.01    45:00.56         47,498          2,291  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 14:50:01.00 03/21/09 15:28:26.10    38:25.10         35,513          1,537  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 14:51:01.03 03/21/09 14:52:28.82     1:27.79         33,273            875  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 14:53:05.50 03/21/09 15:28:22.53    35:17.03         33,273            875  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 14:53:51.74 03/21/09 14:55:51.42     1:59.68         35,306          1,537  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 14:56:05.98 03/21/09 15:11:31.19    15:25.21         33,066            875  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 15:12:01.80 03/21/09 15:13:30.66     1:28.86         35,266          1,537  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 15:13:45.48 03/21/09 15:17:09.41     3:23.93         38,223          2,199  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 15:18:54.59 03/21/09 15:20:07.26     1:12.67         34,273          1,537  52  APPL ISSUED CLOSE
 FTPTA8   03/21/09 15:20:22.01 03/21/09 15:28:20.73     7:58.72         33,118            875  52  APPL ISSUED CLOSE
 *** TOTAL FOR FTPTA8   (   13 ITEMS)               11:16:44.36        726,991         34,632

 
 FTPTA9   03/21/09 14:09:28.52 03/21/09 14:09:29.22        0.70        257,537          3,052  61  CLIENT SENT RESET
 FTPTA9   03/21/09 14:10:24.02 03/21/09 14:10:34.10       10.08         27,043            329  52  APPL ISSUED CLOSE
 FTPTA9   03/21/09 15:01:06.82 03/21/09 15:01:07.46        0.64        257,537          3,052  61  CLIENT SENT RESET
 FTPTA9   03/21/09 15:13:52.13 03/21/09 15:14:02.53       10.40         27,043            329  52  APPL ISSUED CLOSE

 ...

See other sample SMF reports.

Copyright 2024.
Pacific Systems Group.
All rights reserved.


Spectrum Writer 4GL - the economical alternative to SAS, Easytrieve, DYL-280...

Home | Products | Prices | Documentation | 30-Day Trials | Customer Reviews | Company | FAQ | Sample Reports | SMF Records
Send Your Comments or Questions