monitor capture limit
The default capture parameters include a 60-second timeout, a maximum packet size of 68 bytes, and a 2097152-byte capture buffer.
Privileged EXEC mode
Use the monitor capture buffer
size command to change the capture buffer size.
The following example defines the packet capture limit as 15 seconds; the captured packets will be placed in a buffer called packet-cap.
device# monitor capture packet-cap limit duration 15
The following example defines the packet capture limit as 256 bytes; the captured packets will be placed in a buffer called packet-cap.
device# monitor capture packet-cap limit packet-length 256
The following example defines the packet capture limit as 200 packets; the captured packets will be placed in a buffer called packet-cap.
device# monitor capture packet-cap limit packets 200
The following example defines three packet capture limits: 15 seconds, 256-byte packet length, and 200 packets; the captured packets will be placed in a buffer called packet-cap.
device# monitor capture packet-cap limit duration 15 packet-length 256 packets 200
| Release version | Command history |
|---|---|
| 10.0.20a | This command was introduced. |