packet-capture (forwarding-options)
Syntax
packet-capture {
disable;
file {
filename filename;
files files;
size size;
world-readable | no-world-readable;
}
max-packets-per-second seconds;
maximum-capture-size bytes;
rate;
run-length;
traceoptions {
file;
no-remote-trace;
}
}
Hierarchy Level
[edit forwarding-options]
Description
Configure packet-capture that enables capturing real-time network data
packets on the device for analysis and troubleshooting.
Options
| disable |
Disable packet-capture. |
| file |
Parameters for file that contains captured packets
|
| max-packets-per-second |
Threshold of packet capture per second before dropping.
|
| maximum-capture-size |
Maximum packet size to be captured (bytes).
|
| rate |
Ratio of packets to be captured (1 out of N).
|
| run-length |
Number of packet capture after initial trigger.
|
| traceoptions | Packet-capture trace options. |
The remaining statements are explained separately. See CLI Explorer.
Required Privilege Level
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.