Setting flow-print Formats with -f

Because the default flow-print output might not include all the information you're interested in (and it certainly doesn't include all the information included within a flow file), flow-print supports a wide variety of output formats. You set the flow-print format with the -f flag.

Each format has a number. For example, format 3 is the default format most commonly used by flow-print. (If you are using NetFlow version 8, flow-print might choose a different default.) You can use these format options to present flow data in the manner that best suits you, as demonstrated in the following examples. I'll cover only the most useful ones, but you can learn about the other formats in the flow-print man page.

Showing Interfaces ...

Get Network Flow Analysis now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.