Server port statistics record (subtype 7)

The Port Statistics record, as an interval record, periodically records statistics on ports that have been configured with the PORT statement in the TCP/IP PROFILE. All ports that were defined by the PORTRANGE statement, ports for which the RESERVED flag has been set, or ports that were defined by the PORT UNRSV statement are excluded.

Each TCP or UDP port's activity is reported; connection information is provided for TCP ports, and traffic information is provided for UDP ports.

Depending on the number of reserved ports, this report might actually be spread across multiple records.

See Table 1 for the contents of the TCP/IP stack identification section. For the server Port Statistics record, the TCP/IP stack identification section indicates STACK as the subcomponent and one of the six possible interval record reason settings, depending on if the reporting is due to interval expiration, statistics collection termination, or collection shutdown, and whether one or more physical records are needed to report all the Port statistics.

Table 1 shows the server port statistics record self-defining section:
Table 1. Server port statistics record self-defining section
Offset Name Length Format Description
0(X'0') Standard SMF Header 24   Standard SMF header; subtype is 7(X'7')
Self-defining section
24(X'18') SMF119SD_TRN 2 Binary Number of triplets in this record (3)
26(X'1A')   2 Binary Reserved
28(X'1C') SMF119IDOff 4 Binary Offset to TCP/IP identification section
32(X'20') SMF119IDLen 2 Binary Length of TCP/IP identification section
34(X'22') SMF119IDNum 2 Binary Number of TCP/IP identification sections
36(X'24') SMF119S1Off 4 Binary Offset to first TCP server port section
40(X'28') SMF119S1Len 2 Binary Length of each TCP server port section
42(X'2A') SMF119S1Num 2 Binary Number of TCP server port sections
44(X'2C') SMF119S2Off 4 Binary Offset to first UDP server port section
48(X'30') SMF119S2Len 2 Binary Length of each UDP server port section
50(X'32') SMF119S2Num 2 Binary Number of UDP server port sections
Table 2 shows TCP server Port statistics specific section (one per reserved port definition).
Table 2. TCP server port statistics section
Offset Name Length Format Description
0(X'0') SMF119SP_TCDuration 8 Binary Duration of recording interval in microseconds, where bit 51 is equivalent to one microsecond
8(X'8') SMF119SP_TCRName 8 EBCDIC Server socket resource name (the name specified on the PORT reservation statement)
16(X'10') SMF119SP_TCBindIP 16 Binary For bind-specific port reservations: the local IP address
32(X'20') SMF119SP_TCPort 2 Binary Port number
34(X'22')   2 Binary Reserved
36(X'24') SMF119SP_TCConn 4 Binary Number of successful connection establishments
40(X'28') SMF119SP_TCBinds 4 Binary Number of socket binds to this port reservation
44(X'2C') SMF119SP_TCBusySrv 4 Binary Number of connection requests rejected due to server Busy conditions
48(X'30') SMF119SP_TCSynAttack 4 Binary Number of connection requests rejected due to SYN Attack detect conditions
52(X'34') SMF119SP_TCHighwater 4 Binary Highest number of active TCP connections
56(X'38') SMF119SP_TCNumConns 4 Binary Number of active TCP connections
Table 3 shows the UDP server port statistics record (one per reserved port definition being collected):
Table 3. UDP server port statistics section
Offset Name Length Format Description
0(X'0') SMF119SP_UDDuration 8 Binary Duration of recording interval
8(X'8') SMF119SP_UDRName 8 EBCDIC Server socket resource name (the name specified on the PORT reservation statement)
16(X'10') SMF119SP_UDBindIP 16 Binary For bind-specific port reservations: the local IP address
32(X'20') SMF119SP_UDPort 2 Binary Port number
34(X'22')   2 Binary Reserved
36(X'24') SMF119SP_UDIDgrams 8 Binary Number of inbound UDP datagrams to server port
44(X'2C') SMF119SP_UDODgrams 8 Binary Number of outbound UDP datagrams from server port
52(X'34') SMF119SP_UDIBytes 8 Binary Number of inbound bytes
60(X'3C') SMF119SP_UDOBytes 8 Binary Number of outbound bytes