Skip to content

Commit

Permalink
switch_tcpdump: update usage examples
Browse files Browse the repository at this point in the history
Signed-off-by: Roger Luethi <roger.luethi@bisdn.de>
  • Loading branch information
ideaship committed Apr 30, 2024
1 parent 758ae96 commit 8df9563
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions recipes-extended/ofdpa-tools/ofdpa-tools/switch_tcpdump
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,18 @@ import time
EPILOG = """
Example usage:
Capture ingress packets on port3 and write at most 100 MB to /tmp/capture.pcap:
switch_tcpdump --inPort port3 --filePath /tmp/capture.pcap --maxSize 100
Capture ingress packets on port3 and write at most 100 MB to /tmp/pcap:
switch_tcpdump --inPort port3 --filePath /tmp/pcap
For ten seconds, show all packets arriving on port3:
Write a capture file with no size limit:
switch_tcpdump --inPort port3 --filePath /tmp/pcap --maxSize 0
For ten seconds, show all packets seen on port3:
switch_tcpdump --inPort port3 --timeout 10
Extra arguments are passed to tcpdump directly. For example, to get
verbose output for ARP packets arriving on port3, use:
switch_tcpdump --inPort port3 -v 'arp'
Extra arguments (all arguments after "port3" in this case) are passed on to
tcpdump:
switch_tcpdump --inPort port3 -nv arp or icmp
"""

MANUAL = """
Expand Down

0 comments on commit 8df9563

Please sign in to comment.