See the following sections:
- size number;
- [edit forwarding-options packet-capture
file]
Statement introduced in JUNOS Release 7.5.
Configure the maximum size of the file for packet capturing.
number—Maximum size of file.
See Configuring Packet Capture.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.
- size bytes;
- [edit forwarding-options port-mirroring traceoptions file],
- [edit forwarding-options sampling output file],
- [edit forwarding-options sampling traceoptions file]
Statement introduced before JUNOS Release 7.4.
Specify the maximum size of each file containing sample or log data. The file size is limited by the number of files to be created and the available hard disk space.
When a traffic sampling file named sampling-file reaches the maximum size, it is renamed sampling-file.0. When the sampling-file file again reaches its maximum size, sampling-file.0 is renamed sampling-file.1 and sampling-file is renamed sampling-file.0. This renaming scheme continues until the maximum number of traffic sampling files is reached. Then the oldest traffic sampling file is overwritten.
bytes—Maximum size of each traffic sampling file or trace log file, in kilobytes (KB), megabytes (MB), or gigabytes (GB).
See Configuring Traffic Sampling Output and Tracing Traffic Sampling Operations.
interface—To view this statement in the configuration.
interface-control—To add this statement to the configuration.