0% found this document useful (0 votes)
8 views1 page

Chapter 13 - Flow Basic Commands

The document outlines a series of commands for debugging and capturing packet diagnostics in a network dataplane. It includes steps for preparing the environment, launching diagnostics, and collecting output logs and packet captures. The process involves setting filters, enabling logging, and exporting log files for analysis.

Uploaded by

anbusivaram89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views1 page

Chapter 13 - Flow Basic Commands

The document outlines a series of commands for debugging and capturing packet diagnostics in a network dataplane. It includes steps for preparing the environment, launching diagnostics, and collecting output logs and packet captures. The process involves setting filters, enabling logging, and exporting log files for analysis.

Uploaded by

anbusivaram89
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 1

###preparation###

debug dataplane packet-diag clear all


debug dataplane packet-diag clear log log
debug dataplane packet-diag clear filter-marked-session all
debug dataplane packet-diag set filter match source 10.0.0.10 destination
198.51.100.2
debug dataplane packet-diag set filter match source 10.0.0.10 destination
198.51.100.1
debug dataplane packet-diag set filter match source 198.51.100.1 destination
198.51.100.2
debug dataplane packet-diag set filter match destination 198.51.100.2
debug dataplane packet-diag set filter on
###optionally enable packet capture###
###debug dataplane packet-diag set capture stage receive file rx.pcap
###debug dataplane packet-diag set capture stage transmit file tx.pcap
###debug dataplane packet-diag set capture stage firewall file fw.pcap
###debug dataplane packet-diag set capture stage drop file drp.pcap
debug dataplane packet-diag show setting

###prelaunch###
show session all filter source 10.0.0.10
set session offload no
debug dataplane packet-diag set log feature flow basic
debug dataplane packet-diag set log on
#debug dataplane packet-diag set capture on

###launch###
show counter global filter delta yes packet-filter yes
show clock
show counter global filter delta yes packet-filter yes
show session all filter source 10.0.0.10
show counter global filter delta yes packet-filter yes
show session all filter source 10.0.0.10
show session all filter source 10.0.0.10
show session id 270
show session all filter source 10.0.0.10
show session all filter source 10.0.0.10
show counter global filter delta yes packet-filter yes
show clock

###end###
debug dataplane packet-diag set log off
debug dataplane packet-diag set capture off
set session offload yes

###reading and collecting the output###


debug dataplane packet-diag aggregate-logs
less mp-log pan_packet_diag.log
scp export log-file management-plane to user@host:/path/
view-pcap filter-pcap rx.pcap
scp export filter-pcap from *.pcap to user@host:/path

You might also like