Use the max-packet command to specify the maximum number of packets to capture. This determines the number of packets logged to the *.pcap file.
Packet Number | Specify the
maximum number of packets to capture. Packet capture stops once the threshold
specified here is reached, unless manually stopped. The default value is 5000. Note: The default maximum packet capture data limit is 1 GB.
Therefore, regardless of the maximum packet capture count specified, packet
capture stops once the PCAP file size reaches 1 GB.
|
The max-packet command offers a way for you to limit the length of the packet capture. This command limits the capture to a maximum number of packets. capture-duration is another method of limiting packet capture. Or, simply use the stop command.
The following example sets the maximum packet capture count as 15000 on a wireless AP3912i:
EWC.extremenetworks.com:ap-traffic-capture# max-packet 15000