Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

 
 

capture-file (Security)

Syntax

Hierarchy Level

Description

Sets packet capture for performing the datapath-debug action.

Options

  • filename—Name of the file to receive the output of the packet capturing operation.

  • files—Maximum number of capture files.

    If you specify a maximum number of files, you also must specify a maximum file size with the size option and a filename.

    Range: 1 through 10 files

  • format—Describes the format of the capture file. The default format file is pcap. You can also set it as private (binary) format.

  • size—Describes the size limit of the capture file.

    If you specify a maximum file size, you also must specify a maximum number of trace files with the files option and a filename.

    Range: 10 KB through 100 MB

  • world-readable | no-world-readable—By default, log files can be accessed only by the user who configures the tracing operation. The world-readable option enables any user to read the file. To explicitly set the default behavior, use the no-world-readable option.

Required Privilege Level

security—To view this statement in the configuration.

security-control—To add this statement to the configuration.

Release Information

Statement introduced in Junos OS Release 10.4.