Juniper Networks J-Series Network Router User Manual


 
To delete a packet capture file:
1. Disable packet capture following the steps in Disabling Packet
Capture on page 261.
2. Using the CLI, delete the packet capture file for the interface:
a. From CLI operational mode, access the local UNIX shell:
user@host> start shell
%
b. Navigate to the directory where packet capture files are stored:
% cd /var/tmp
%
c.
Delete the packet capture file for the interfacefor example, pcap-file.fe.0.0.0:
% rm pcap-file.fe.0.0.0
%
d. Return to the CLI operational mode:
% exit
user@host>
3. Reenable packet capture following the steps in Enabling Packet Capture
(Required) on page 257.
4. Commit the configuration.
Changing Encapsulation on Interfaces with Packet Capture Configured
Before modifying the encapsulation on a Services Router interface that is configured
for packet capture, you must disable packet capture and rename the latest packet
capture file. Otherwise, packet capture saves the packets with different encapsulations
in the same packet capture file. Packet files containing packets with different
encapsulations are not useful, because packet analyzer tools like tcpdump cannot
analyze such files.
After modifying the encapsulation, you can safely reenable packet capture on the
router.
To change the encapsulation on packet capture-configured interfaces:
1. Disable packet capture following the steps in Disabling Packet
Capture on page 261.
2. Commit the configuration.
3. Using the CLI, rename the latest packet capture file on which you are changing
the encapsulation, with the .chdsl extension:
a. From CLI operational mode, access the local UNIX shell:
262 Changing Encapsulation on Interfaces with Packet Capture Configured
J-series Services Router Administration Guide