Palo Alto Networks Knowledgebase: How to Packet Capture OSPF and BGP Traffic from the CLI

How to Packet Capture OSPF and BGP Traffic from the CLI

8760
Created On 02/07/19 23:55 PM - Last Updated 02/07/19 23:55 PM
Mobile Network Infrastructure
Resolution

Overview

For troubleshooting purposes it may be necessary to collect the PCAPs of the OSPF and BGP traffic that the Palo Alto Networks device is processing. The quickest way to perform troubleshooting is through the CLI.

Note: This procedure related to OSPF can be completed using the WebGUI, reference the following document for more information:How to Packet Capture OSPF Traffic from the GUI

Details

To start the OSPF capture, use the following CLI command:

> debug routing pcap ospf on

To start the BGP capture, use the following CLI command:

> debug routing pcap bgp on

To stop the OSPF capture:

> debug routing pcap ospf off

To stop the BGP capture:

> debug routing pcap bgp off

To view the OSPF data on the device without the need to export:

> debug routing pcap ospf view

To view the BGP data on the device without the need to export:

> debug routing pcap bgp view

If needed, files can be exported using the following commands:

> scp export debug-pcap from "file name" to username@host:path

or

> tftp export debug-pcap from "file name" to "tftp host"

Use the following command to delete old captures related to OSPF:

> debug routing pcap ospf delete

Use the following command to delete old captures related to BGP:

> debug routing pcap bgp delete

owner: mdjeric



Attachments
Actions
  • Print
  • Copy Link

    https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000ClEWCA0&refURL=http%3A%2F%2Fknowledgebase.paloaltonetworks.com%2FKCSArticleDetail

Attachments
Choose Language