Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation

Deleting Packet Capture Files

Deleting packet capture files from the /var/tmp directory only temporarily removes the packet capture files. Packet capture files for the interface are automatically created again the next time a packet capture configuration change is committed or as part of a packet capture file rotation.

To delete a packet capture file:

  1. Disable packet capture (see Disabling Packet Capture).
  2. Delete the packet capture file for the interface.
    1. From operational mode, access the local UNIX shell.
      user@host> start shell%
    2. Navigate to the directory where packet capture files are stored.
      % cd /var/tmp%
    3. Delete the packet capture file for the interface; for example pcap-file.fe.0.0.0.
      % rm pcap-file.fe.0.0.0%
    4. Return to operational mode.
      % exituser@host>
  3. Reenable packet capture (see Example: Enabling Packet Capture on a Device).
  4. If you are done configuring the device, enter commit from configuration mode.

Published: 2014-12-07