capture-file (Security)
Syntax
capture-file { filename; files number; format pacp-format; size maximum-file-size; (world-readable | no-world-readable); }
Hierarchy Level
[edit security datapath-debug]
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. Theworld-readable
option enables any user to read the file. To explicitly set the default behavior, use theno-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.