packet-capture
Syntax
packet-capture { aggressive-mode; buffer-packets-limit bytes; capture-interval capture-interval; capture-limit capture-limit; global; max-bytes bytes; max-files max-files; max-packets max-packets; no-inconclusive; storage-limit bytes; }
Hierarchy Level
[edit services application-identification]
Description
Specify packet capture options to capture unknown application traffic.
You can use the packet capture of unknown applications functionality to gather more details about an unknown application on your security device. Once you’ve configured packet capture options on your security device, the unknown application traffic is gathered and stored on the device in a packet capture file (.pcap) at /var/log/pcap/ location.
Options
aggressive-mode | Capture all traffic before AppID classifies the applications. In this mode, the system captures all application traffic irrespective of the application system cache (ASC) entry. Packet capture starts for the first packet of the first session. |
buffer-packets-limit | Maximum memory to buffer packets (bytes). Use this option to limit the memory available in the Packet Forwarding Engine for packet capture functionality.
|
capture-interval | Timeout value in minutes to avoid repetitive capture of the same traffic. After this interval, the system continues to capture newer packet details for unknown applications until the capture limit is reached.
|
capture-limit | Number of repetitive captures of the same traffic. Use this option to limit the number of times the same traffic can be repeatedly captured before the cache entry times out.
|
global | Enable packet capture globally to capture all unknown application traffic. Another option is to enable capturing of unknown application traffic specific to a security policy. |
max-bytes | Maximum number of TCP bytes per session (bytes). For TCP sessions, the count includes the actual payload data length and excludes IP/TCP headers for the maximum bytes limit. If you are setting the packet capture at the security policy level, the packet capture concludes only after the final policy is applied even if the configured limit is reached. Limitation—Jumbo frames can have up to 1500 bytes of the payload saved in the capture file.
|
max-files | Maximum number of unique packet capture files to create before the oldest file is overwritten by a new file created.
|
max-packets | Maximum number of UDP packets per session.
|
no-inconclusive | Disable packet capturing of inconclusive traffic. This option disables the packet capture for the following sessions:
If you do not configure this option, by default, the system captures packets for inconclusive sessions. |
storage-limit | Maximum disk space (bytes) that can be used in the Routing Engine for packet capture files.
|
Required Privilege Level
system
Release Information
Statement introduced in Junos OS Release 20.2R1.