Juniper Networks J-Series manual Disabling Packet Capture, Deleting Packet Capture Files, 261

Models: J-Series

1 332
Download 332 pages 610 b
Page 283
Image 283

Chapter 13: Configuring Packet Capture

NOTE: If you apply a firewall filter on the loopback interface, it affects all traffic to and from the Routing Engine. If the firewall filter has a sample action, packets to and from the Routing Engine are sampled. If packet capture is enabled, then packets to and from the Routing Engine are captured in the files created for the input and output interfaces.

Disabling Packet Capture

You must disable packet capture before opening the packet capture file for analysis or transferring the file to an external device. Disabling packet capture ensures that the internal file buffer is flushed and all the captured packets are written to the file.

To disable packet capture:

1.Navigate to the top of the configuration hierarchy in either the J-Web or CLI configuration editor.

2.Perform the configuration tasks described in Table 137 on page 261.

3.If you are finished configuring the router, commit the configuration.

Table 137: Disabling Packet Capture

Task

J-Web Configuration Editor

Navigate to the Forwarding options

1.

In the J-Web interface, select

level in the configuration hierarchy.

 

Configuration>View and Edit>Edit

 

 

Configuration.

 

2.

Next to Forwarding options, click

 

 

Configure or Edit.

CLI Configuration Editor

From the [edit] hierarchy level, enter

edit forwarding-options

Disable packet capture.

1.

Next to Packet capture, click Edit.

 

2.

Next to Disable, select Yes.

 

3.

Click OK until you return to the

 

 

Configuration page.

Enter set packet-capture disable.

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. You must follow the procedure given in this section to delete packet capture files.

Configuring Packet Capture with a Configuration Editor

261

Page 283
Image 283
Juniper Networks J-Series Disabling Packet Capture, Deleting Packet Capture Files, 261, Enter set packet-capture disable