Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revision | |||
| util:pktdump [2020/03/18 19:07] – [scripted example] clean up and some rewording wkitty42 | util:pktdump [2020/03/18 22:52] (current) – [scripting examples] more generic wkitty42 | ||
|---|---|---|---|
| Line 9: | Line 9: | ||
| ===== scripting examples ===== | ===== scripting examples ===== | ||
| - | At one point in time, I had a lot of pkts that got abandoned | + | It is possible for pkts to be abandoned |
| - | First run through all the pkts and output a list of destination addresses | + | First run through all the pkts and output a list of destination addresses. |
| < | < | ||
| # make a list of pkt destination addresses | # make a list of pkt destination addresses | ||
| Line 30: | Line 30: | ||
| </ | </ | ||
| - | Now that we have moved the pkts, lets create a flo file with them for the destination address. Put the destination system' | + | Now that we have moved the pkts, lets create a .flo file with them for the destination address. Put the destination system' |
| < | < | ||
| # create a flo file with the pkts | # create a flo file with the pkts | ||
| Line 38: | Line 38: | ||
| </ | </ | ||
| - | The above can be done a bit better by not moving the pkts to the tmp directory first but this works fine with some manual work added. Once the flo file is created, it is a simple matter | + | The above can be done a bit better by not moving the pkts to the tmp directory first but this works fine with some manual work added. Once the .flo file is created, it is a simple matter to manually |
| - | I've not yet spent more time to fix it up into a proper script that doesn' | + | The above can be fixed up into a proper script that doesn' |
| - | These example oneliners helped | + | These example oneliners helped |
| ===== See Also ===== | ===== See Also ===== | ||