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