TRACERTSTATS(1)
β¨ tracertstats β¨
okay bestie, come sit with me π this is the tracertstats(1) page β it lives in the User Commands section of the manual, and it's literally just vibes + packet counting, no cap.
π NAME π
tracertstats β do a lil simple filter-based analysis on a trace π¦
πΈ SYNOPSIS πΈ
tracertstats [ -f | --filter bpf ] [ -i | --interval interval ] [ -c |
--count count ] [ -o | --output-format csv,txt,png,html ] [ -m |
--merge-inputs ] inputuri...
tracertstats -H|--libtrace-help
yes queen, two whole invocation forms, we love a flexible icon π
π DESCRPTION π
okay so tracertstats takes a whole list of bpf expressions and then, every interval seconds (or every count packets), tells you the number of packets and bytes that matched each expression. it's giving "live scoreboard but for network traffic" πβ¨
yes, the heading says DESCRPTION, not DESCRIPTION. that's the original's spelling and we are respecting the lore, not fixing it. π
-fbpf-filter,--filterbpf-filter β add another "bpf filter". stack as many as your heart desires π«Ά-iinterval,--intervalinterval β spit out results everyintervalseconds β°-ccount,--countcount β spit out results everycountpackets π’-m,--merge-inputsβ treats all the inputs as one single input, so you get one unified output instead of one output per input. works best with traces that are consecutive, so you can smash them into a single CSV for instance. chef's kiss π€-oformat,--output-formatformat β picks the output format, bestie. options are:txtβ human readable text. this is the default output format and it's easy for a human to understand. downside? it takes up quite a bit of horizontal space π (wide girl energy)csvβ Comma Seperated Values. perfect if you wanna do more analysis in a spreadsheet or some other program πpngβ PNG Graphic. produces a fairly incomprehensible png graph π and it relies ongdcbeing available at compile time, so it's not always gonna show up for you. no cap.htmlβ output that's suitable for displaying to a human in a webbrowser π
π EXAMPLES π
here's the moment you've been waiting for, bestie β look at this stack of filters go:
tracertstats --filter 'host sundown' \
--filter 'port http' \
--filter 'port ftp or ftp-data' \
--filter 'port smtp' \
--filter 'tcp[tcpflags] & tcp-syn!=0' \
--filter 'not ip' \
--filter 'ether[0] & 1 == 1' \
--filter 'icmp[icmptype] == icmp-unreach' \
--output-format html
erf:/traces/trace1.gz \
erf:/traces/trace2.gz
eight filters, two erf traces, html out. it's giving main character. periodt π π₯
π§ LINKS π§
wanna know more details about tracertstats (and libtrace)? go here, iykyk:
http://www.wand.net.nz/trac/libtrace/wiki/UserDocumentation π
π SEE ALSO π
libtrace(3), tracemerge(1), tracesplit(1), tracesplit_dir(1), tracefilter(1), traceconvert(1), tracereport(1), tracepktdump(1), traceanon(1), tracesummary(1), traceconvert(1), tracereplay(1), tracediff(1), traceends(1), tracetopends(1)
(yep, traceconvert(1) is in there twice β iconic of it honestly, we leave it exactly as it is π«Ά)
π AUTHORS π
Perry Lorier <perry@cs.waikato.ac.nz> β ty for your service, legend π«‘β¨
and that's the whole page bestie!! this little beauty is part of tracertstats (libtrace), dated November 2006 β yes, 2006, she's vintage and she still ate π
πΈ go count some packets, you got this π¦π
π¦ where this page comes from
- debian bookworm: libtrace-tools 3.0.22-0.1
- debian trixie: libtrace-tools 3.0.22-0.2
- ubuntu jammy: libtrace-tools 3.0.21-1ubuntu5
- ubuntu noble: libtrace-tools 3.0.22-0.2build1
- ubuntu questing: libtrace-tools 3.0.22-0.2build1
- ubuntu resolute: libtrace-tools 3.0.22-0.2build2
- ubuntu stonking: libtrace-tools 3.0.22-0.2build2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms