P_CAPTURE#

code: 125

# set
<module-index>/<port-index> P_CAPTURE <on_off>

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

Description#

Whether a port is capturing packets. When on, the port retains the received packets and makes them available for inspection. The capture criteria are configured using the PC_xxx parameters. While capture is on the capture parameters cannot be changed.

Actions#

set, get

Parameters#

  1. on_off: byte, whether the port is capturing packets.

  • STOP = 0

  • START = 1

Example#

# set
input:  0/1 P_CAPTURE STOP
output: <OK>

# get
input:  0/1 P_CAPTURE ?
output: 0/1 P_CAPTURE STOP