Changing Encapsulation On Interfaces With Packet Capture Configured - Juniper J-Series Administration Manual

Juniper networks router administration guide
Hide thumbs Also See for J-Series:
Table of Contents

Advertisement

J-series
Services Router Administration Guide
To delete a packet capture file:
1.
2.
3.
4.

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.
2.
3.
262

Changing Encapsulation on Interfaces with Packet Capture Configured

Disable packet capture following the steps in "Disabling Packet
Capture" on page 261.
Using the CLI, delete the packet capture file for the interface:
From CLI operational mode, access the local UNIX shell:
a.
user@host> start shell
%
Navigate to the directory where packet capture files are stored:
b.
% cd /var/tmp
%
c.
Delete the packet capture file for the interface—for example,
% rm pcap-file.fe.0.0.0
%
Return to the CLI operational mode:
d.
% exit
user@host>
Reenable packet capture following the steps in "Enabling Packet Capture
(Required)" on page 257.
Commit the configuration.
Disable packet capture following the steps in "Disabling Packet
Capture" on page 261.
Commit the configuration.
Using the CLI, rename the latest packet capture file on which you are changing
the encapsulation, with the
From CLI operational mode, access the local UNIX shell:
a.
extension:
.chdsl
pcap-file.fe.0.0.0
:

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents