Name
opapacketcapture — Starts capturing packet data.
Syntax
opapacketcapture [-o outfile] [-d devfile] [-f filterfile] [-t triggerfile] [-l triggerlag] [-a alarm] [-p packets] [-s maxblocks] [-v [-v]]
Description
To stop capture and trigger dump, use SIGINT or SIGUSR1. Program dumps packets to file and exits.
Note
Using opapacketcapture with large amounts of traffic can cause performance issues on the given host. Cornelis recommends you use opapacketcapture on hosts with lower packet rates and bandwidth.
Options
--helpProduces full help text.
-ooutfileSpecifies the output file for captured packets. Default is
packetDump.pcap.-ddevfileSpecifies the device file for capturing packets.
-ffilterfileSpecifies the file used for filtering. If absent, no filtering is done.
-ttriggerfileSpecifies the file used for triggering a stop capture. If absent, normal triggering is performed.
-ltriggerlagSpecifies the number of packets to collect after trigger condition is met, before dumping data and exiting. Default is 10.
-aalarmSpecifies the number of seconds for alarm trigger to dump capture and exit.
-ppacketsSpecifies the number of packets for alarm trigger to dump capture and exit.
-smaxblocksSpecifies the number of blocks to allocate for ring buffer. Value is in Millions. Default is 2, which corresponds to 128 MiB (1 block = 64 Bytes).
-vProduces verbose output. (Use verbose Level 1+ to show levels.)
Example
# opapacketcapture opapacketcapture: Capturing packets using 128 MiB buffer ^C opapacketcapture: Triggered Number of packets stored is 100
In the example above, opapacketcapture operates until CTRL+C is entered.