P4G_TCP_STATE_TOTAL#

# get
<module-index>/<port-index> P4G_TCP_STATE_TOTAL [<group_index>] ?

Description#

Returns a list of the total TCP state counters. The counters returned corresponds the the following TCP states:
  • CLOSED

  • LISTEN

  • SYN_SENT

  • TCP_SYN_RCVD

  • ESTABLISHED

  • FIN_WAIT_1

  • FIN_WAIT_2

  • CLOSE_WAIT

  • CLOSING

  • LAST_ACK

  • TIME_WAIT

Actions#

get

Parameters#

current_time: long integer, a list of the total TCP state counters

ref_time: long integer, a list of the total TCP state counters

closed: long integer, a list of the total TCP state counters

listen: long integer, a list of the total TCP state counters

syn_sent: long integer, a list of the total TCP state counters

syn_rcvd: long integer, a list of the total TCP state counters

established: long integer, a list of the total TCP state counters

fin_wait_1: long integer, a list of the total TCP state counters

fin_wait_2: long integer, a list of the total TCP state counters

close_wait: long integer, a list of the total TCP state counters

closing: long integer, a list of the total TCP state counters

last_ack: long integer, a list of the total TCP state counters

time_wait: long integer, a list of the total TCP state counters

Example#

# get
input:  0/1 P4G_TCP_STATE_TOTAL [0] ?
output: 0/1 P4G_TCP_STATE_TOTAL [0] 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123 123456789123