FLOW-STAT(1)
๐ FLOW-STAT โ the flow-stat(1) page, but make it cute ๐
okay bestie, pull up a chair ๐ชโจ this is flow-stat from section 1 of the manual, and she is literally the girl who turns your boring flow data into a whole report. no cap.
๐ธ NAME ๐ธ
flow-stat โ Generate reports with flow data. that's it, that's the job, and she ate ๐
โจ SYNOPSIS โจ
flow-stat [ -hnpPw ] [ -d debug_level ] [ -f format ] [ -S sort_field
] [ -s sort_field ] [ -t tally_lines ] [ -T title ]
likeโฆ look at those brackets. so many little optional besties. pick and choose, queen ๐
๐ฆ DESCRIPTION ๐ฆ
The flow-stat utility generates usage reports for flow data sets. and when I say reports I mean it โ she will report on you by IP address, IP address pairs, ports, packets, bytes, interfaces, next hops, autonomous systems, ToS bits, exporters, and tags. the range?? unmatched. she's giving main character energy in every single category fr fr ๐ญ๐
๐ OPTIONS ๐
-ddebug_level โ Enable debugging. turn the lights on, bestie ๐ฆ-fformat โ Report format. Choose from the following, and yes there are THIRTY-TWO of them, we are not skipping a single one, periodt:0โ Overall Summary1โ Average packet size distribution2โ Packets per flow distribution3โ Octets per flow distribution4โ Bandwidth per flow distribution5โ UDP/TCP destination port6โ UDP/TCP source port7โ UDP/TCP port8โ Destination IP9โ Source IP10โ Source/Destination IP11โ Source or Destination IP12โ IP protocol13โ octets for flow duration plot data14โ packets for flow duration plot data15โ short summary16โ IP Next Hop17โ Input interface18โ Output interface19โ Source AS20โ Destination AS21โ Source/Destination AS22โ IP ToS23โ Input/Output Interface24โ Source Prefix25โ Destination Prefix26โ Source/Destination Prefix27โ Exporter IP28โ Engine Id29โ Engine Type30โ Source Tag31โ Destination Tag32โ Source/Destination Tag
-hโ Display help. she'll explain herself, iconically ๐โ๏ธ-nโ Use symbolic names where appropriate. names > numbers, it's giving โจaestheticโจ-pโ Display header information. show me the receipts ๐-Pโ Report as percent total. math but make it cute ๐งฎ๐-ssort_field โ Sort ascending on field sort_field. smallest to biggest, humble and organized ๐-Ssort_field โ Sort descending on field sort_field. biggest to smallest, main character first ๐-ttally_lines โ Tally totals everytally_lineslines. lil running count moment ๐ง-Ttitle โ Set report title to title. name your child, you're the parent now ๐-wโ Wide output. she's spreading out, taking up space, as she should ๐
๐ EXAMPLES ๐
Provide a report on top source/destination IP pairs sorted by octets, report in percent total form for the flows in /flows/krc4. Use the preload option to flow-cat to preserve meta information and display it with flow-stat.
flow-cat -p /flows/krc4 | flow-stat -f10 -P -p -S4
๐ฅ EXAMPLES ๐ฅ
Many times a campus network will have a single border router which has one interface pointing to the internal side and many interfaces pointing to other providers. These interfaces each have a unique numerical id known in SNMP terms as an ifIndex. The ifIndex to interface name mappings can be determined by using a tool such as snmpwalk or using show commands in recent versions of IOS with the 'show snmp mib ifmib ifindex' or JunOS 'show interfaces'. Once the ifIndex for each interface is known flow-filter can be combined with flow-stat to provide reports such as inbound vs outbound top src/destination IP addresses. Provide a top source IP address report by outbound traffic, ie the top senders of traffic on the campus network. Assume the ifIndex of the campus interface is 5.
flow-cat -p /flows/krc4 | flow-filter -i5 | flow-stat -f9 -P -p -S3
like yes bestie, we're doing campus networking now, keep up ๐ธ
๐ซถ EXAMPLES ๐ซถ
Provide a top destination IP address report by outbound traffic, ie the top sinks of traffic on the campus network. Assume the ifIndex of the campus interface is 5.
flow-cat -p /flows/krc4 | flow-filter -I5 | flow-stat -f8 -P -p -S3
(sinks >>> senders, both valid, no judgement ๐)
โญ EXAMPLES โญ
Provide a top source/destination AS report. Use symbolic names.
flow-cat -p /flows/krc4 | flow-stat -f20 -n -P -p -S4
๐ญ BUGS ๐ญ
None known. not a single one. she's flawless, we don't know her ๐โจ
๐ AUTHOR ๐
Mark Fullmer <maf@splintered.net>
๐ฆ SEE ALSO ๐ฆ
k that's the whole page bestie, every flag accounted for, nothing dropped, we do not skip content in this house ๐ ๐
okay and for the lil sign-off moment: this whole thing is the flow-stat(1) manual page, dated 26 ะะฒะณััั 2010 โ yes the date is in Russian, and yes she still ate. go generate some reports, queen ๐๐๐
๐ฆ where this page comes from
- fedora 43: flow-tools 0.68.5.1-45.fc43 ยท LicenseRef-Callaway-BSD
- fedora 43: flow-tools 0.68.5.1-45.fc43 ยท LicenseRef-Callaway-BSD
- fedora 44: flow-tools 0.68.5.1-46.fc44 ยท LicenseRef-Callaway-BSD
- fedora 44: flow-tools 0.68.5.1-46.fc44 ยท LicenseRef-Callaway-BSD
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms