PC_STATS#

code: 224

# get
<module-index>/<port-index> PC_STATS ?

Description#

Obtains the number of packets currently in the capture buffer for a port. The count is reset to zero when capture is turned on.

Actions#

get

Parameters#

  1. status: long integer, status of the capture, 1 if capture has been stopped because of overflow, 0 if still running

  2. packets: long integer, number of packets in the buffer.

  3. start_time: long integer, start time in nanoseconds since 2010-01-01.

Example#

# get
input:  0/1 PC_STATS ?
output: 0/1 PC_STATS 1 100 123456789123