P4_CAPTURE#

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

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

Description#

Starts or stops packet capture on this port.

Actions#

set, get

Parameters#

on_off: byte, specifying whether to capture traffic on this port
  • OFF = 0

  • ON = 1

Example#

# set
input:  0/1 P4_CAPTURE OFF
output: <OK>

# get
input:  0/1 P4_CAPTURE ?
output: 0/1 P4_CAPTURE OFF