TX Statistics
This module contains the L23 port TX statistics classes that provide quantitative information about the transmitted packets on a port.
The command names all have the form PT_<xxx> and require both a module index id and a port index id. Those commands dealing with a specific transmitted stream also have a sub-index.
All bit-and byte-level statistics are at layer-2, so they include the full Ethernet frame, and exclude the inter-frame gap and preamble.
- class PT_CLEAR[source]
Bases:
objectClear all the transmit statistics for a port. The byte and packet counts will restart at zero.
- class PT_EXTRA[source]
Bases:
objectObtains additional statistics for packets transmitted on a port.
- class GetDataAttr[source]
Bases:
ResponseBodyStruct- tx_arp_req_count
long integer, number of ARP requests transmitted
- class PT_NOTPLD[source]
Bases:
objectObtains statistics concerning the packets without a test payload transmitted on a port.
- class GetDataAttr[source]
Bases:
ResponseBodyStruct- bit_count_last_sec
long integer, number of bits transmitted in the last second.
- byte_count_since_cleared
long integer, number of bytes transmitted since statistics were cleared.
- packet_count_last_sec
long integer, number of packets transmitted in the last second.
- packet_count_since_cleared
long integer, number of packets transmitted since statistics were cleared.
- get()[source]
Get statistics concerning the packets without a test payload transmitted on a port.
- Returns:
number of bits transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared
- Return type:
- class PT_NOTPLDEXT[source]
Bases:
objectAn extension to
PT_NOTPLDthat also includes a calculation of bytes transmitted in the last second. It returns list of long integers; this list may be expanded in future software releases.- class GetDataAttr[source]
Bases:
ResponseBodyStruct- bit_count_last_sec
long integer, number of bits transmitted in the last second.
- byte_count_last_sec
long integer, number of bytes transmitted in the last second.
- byte_count_since_cleared
long integer, number of bytes transmitted since statistics were cleared.
- packet_count_last_sec
long integer, number of packets transmitted in the last second.
- packet_count_since_cleared
long integer, number of packets transmitted since statistics were cleared.
- get()[source]
Get statistics concerning the packets without a test payload transmitted on a port.
- Returns:
number of bits transmitted in the last second, number of bytes transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared
- Return type:
- class PT_STREAM[source]
Bases:
objectObtains statistics concerning the packets of a specific stream transmitted on a port.
- class GetDataAttr[source]
Bases:
ResponseBodyStruct- bit_count_last_sec
long integer, number of bits transmitted in the last second.
- byte_count_since_cleared
long integer, number of bytes transmitted since statistics were cleared.
- packet_count_last_sec
long integer, number of packets transmitted in the last second.
- packet_count_since_cleared
long integer, number of packets transmitted since statistics were cleared.
- get()[source]
Get statistics concerning the packets of a specific stream transmitted on a port.
- Returns:
number of bits transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared.
- Return type:
- class PT_STREAMEXT[source]
Bases:
objectAn extension to
PT_STREAMthat also includes a calculation of bytes transmitted in the last second. It returns list of long integers; this list may be expanded in future software releases.- class GetDataAttr[source]
Bases:
ResponseBodyStruct- bit_count_last_sec
long integer, number of bits transmitted in the last second.
- byte_count_last_sec
long integer, number of bytes transmitted in the last second.
- byte_count_since_cleared
long integer, number of bytes transmitted since statistics were cleared.
- packet_count_last_sec
long integer, number of packets transmitted in the last second.
- packet_count_since_cleared
long integer, number of packets transmitted since statistics were cleared.
- get()[source]
Get statistics concerning the packets of a specific stream transmitted on a port.
- Returns:
number of bits transmitted in the last second, number of bytes transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared.
- Return type:
- class PT_TOTAL[source]
Bases:
objectObtains statistics concerning all the packets transmitted on a port.
- class GetDataAttr[source]
Bases:
ResponseBodyStruct- bit_count_last_sec
long integer, number of bits transmitted in the last second.
- byte_count_since_cleared
long integer, number of bytes transmitted since statistics were cleared.
- packet_count_last_sec
long integer, number of packets transmitted in the last second.
- packet_count_since_cleared
long integer, number of packets transmitted since statistics were cleared.
- get()[source]
Get statistics concerning all the packets transmitted on a port.
- Returns:
number of bits transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared.
- Return type:
- class PT_TOTALEXT[source]
Bases:
objectAn extension to
PT_TOTALthat also includes a calculation of bytes transmitted in the last second. It returns list of long integers; this list may be expanded in future software releases.- class GetDataAttr[source]
Bases:
ResponseBodyStruct- bit_count_last_sec
long integer, number of bits transmitted in the last second.
- byte_count_last_sec
long integer, number of bytes transmitted in the last second.
- byte_count_since_cleared
long integer, number of bytes transmitted since statistics were cleared.
- packet_count_last_sec
long integer, number of packets transmitted in the last second.
- packet_count_since_cleared
long integer, number of packets transmitted since statistics were cleared.
- get()[source]
Get statistics concerning all the packets transmitted on a port.
- Returns:
number of bits transmitted in the last second, number of bytes transmitted in the last second, number of packets transmitted in the last second, number of bytes transmitted since statistics were cleared, and number of packets transmitted since statistics were cleared.
- Return type: