User Guide
DDOC0099-000-AH
DTS1 CSfC
12 - 31
Command Line Interface
© 2020 Curtiss-Wright Defense Solutions
Revision 5.0
12.3.19
pcap
NOTE
The DTS1 has only 1 RMC slot. As a result, the -s option is always -s 0.
Description
The pcap command controls PCAP recording functions.
Syntax
pcap
[
-s
]
-i interface
--start
filename [
--ov
][
--filter
filters]
pcap --stop [-i interface]
pcap
[
-h
|
--help
|
--version
]
pcap --peek -i interface
pcap --stat
pcap
Options
-h
,
--help
............................Print help message.
--version
............................Print program version.
-s, --slot <num>
.............Slot number for RMC unit to record to, default 0
-p, --pnum <partnum>
....Partition number for RMC unit within a given slot number
--peek -i <interface>
..Show snippet of traffic from interface.
--start <filename>
........Start PCAP recording into file. Must be accompanied by --ov if file
already exists.
--stop [<interface>]
....Stop PCAP recording on select interface if specified or all if not
specified.
--stat
..................................Get PCAP recorder status. Default action when invoked with no
parameters.
-i <interface>
.................Name of interface to capture data from ex. eth0, eth1, etc.
--ov
.......................................Overwrite file if file exists.
--filter <filters>
........TCP data filter. Selects which packets will be dumped. If no filter is
given all packets on the net will be dumped into the file.
Filter parameter follow standard PCAP format. See PCAP-
filter for exact syntax.
Example:
PCAP recording
cw_dts>
pcap
[pcap]
No PCAP recorder active
[!pcap]
cw_dts>
pcap -i eth0 -s 0 --start ch0.pcap
[pcap]
Start recording on interface eth0 to file /rmc_shares/rmc0/ch0.pcap
recording started
[!pcap]
cw_dts>
pcap --stat
[pcap]
PCAP recorder active
Interface eth0: Recorded 24576 Bytes. (24K) to /rmc_shares/rmc0/ch0.pcap
[!pcap]
cw_dts>
pcap --stop
[pcap]
Stopping active PCAP recording.
[!pcap]