pmacct(1)
π pmacct π
okay bestie, welcome to pmacct, the lil frontend glow-up for pmacctd β it's from the pmacct manual, section 1, and honestly? she's giving command-line main character energy. let's get into it π
β¨ NAME β¨
pmacct β literally just the frontend to pmacctd. that's the whole vibe. π¦
πΈ SYNOPSIS πΈ
pmacct query
π DESCRIPTION π
so here's the tea: pmacct is a frontend to pmacctd(8) when that daemon is running in volatile memory mode. think of her as the group chat where you ask the daemon questions. π«Ά
you pick what kind of query you want with options. and no, you can't just vibe in silence β at least one of -C, -c, -e, -s, or -t is mandatory. periodt.
but wait, there's a plot twist: if you're using -c, then you also have to use either -M or -N to actually specify stuff further. no skipping that step, babe. β¨
β¨ OPTIONS β¨
π showing the data π
for displaying data, either of these options is used:
-sβ show full statistics. all of it. the whole picture. iconic. π
π¦ -c aggregate π¦
specify primitives in a match aggregation, so you can present partial statistics instead of the whole thing. and listen β either -M or -N must be used to specify the matching data for this option. iykyk.
here, aggregate is a comma separated string built from these identifiers, in arbitrary order:
src_mac, dst_mac, vlan, src_host, dst_host, src_net, dst_net, src_mask, dst_mask, src_port, dst_port, tos, proto, src_as, dst_as, sum_mac, sum_host, sum_net, sum_as, sum_port, in_iface, out_iface, tag, tag2, flows, class, std_comm, ext_comm, as_path, peer_src_ip, peer_dst_ip, peer_src_as, peer_dst_as, src_as_path, src_std_comm, src_med, src_ext_comm, src_local_pref, is_symmetric.
only entries which match the aggregate get printed. no match, no entry, sorry babe. π
π server daemon management π
management of the server daemon is offered by these three options:
-eβ clear all statistics. for a partial clear, go look at-rinstead. πΈ-tβ show memory table status. like a vibe check for the table. β¨-Cβ show a table of all active classifiers. slay. π
π MODIFIERS π
the primary options above can be influenced by some secondary options. they're the supporting cast and honestly they ate. π
-pfile β unix socket location for client-server communication. the default is/tmp/collect.pipe. π«Ά-aβ display all table fields, even the ones that are currently unused. nothing left behind. π-Sβ calculate a summed total of all counters, instead of returning a counter for each individual match. this one applies to-N. β-n{bytes|packets|flows|all}β select which counters to print. this applies only to-N. pick your fighter. π₯-T{bytes|packets|flows}β output statistics ordered by decreasing value of the indicated field. this option applies to-Mand to-s. biggest first, always. π-rβ reset counters in the present selection after printing their values. applies only to-Mand to-N. it's giving "read it and then wipe the slate". π-lβ perform a locking on the table. π-M{match_data | file:filename}β print a formatted table for all entries matching the given data. an aggregation must be specified using-c, and the field order you gave there must be observed when you state the data here. the output can be influenced using-T.
here, match_data is a number of substrings separated by semicolon, and each substring is a comma separated list of acceptable values in a match aggregation. a wildcard Β΄*Β΄ can be used to match any value in a specific field.
as an alternative, you can specify a location filename of a file. this file provides the substrings mentioned above as separate lines. the prefix Β΄file:Β΄ is a verbatim marker. π
-N{match_data | file:filename}β print counters only. no text fields, no header, no footer. literally just the numbers, babe. this presupposes-c, and can be influenced by-nand-S. the arguments are identical to those for-M. β¨
π EXAMPLES π
the file /usr/share/doc/pmacct/EXAMPLES.gz contains suggestions prepared by the upstream author. go read it bestie, it's a whole mood. π¦
for suggestions, criticism, and bugs, get in contact with Paolo Lucente <paolo@pmacct.net>. he wants to hear from you, fr fr. π
β SEE ALSO β
pmacctd(8)
πΈ AUTHOR πΈ
this text was originally compiled by Mats Erik Andersson for the Debian project, but it may be distributed for other uses under the same licensing as the software itself. π
okay that's the whole page, you're officially educated π
this was version 0.12.1, dated March 2011, from the pmacct(1) manual β periodt, no cap, go query something iconic πβ¨π¦
π¦ where this page comes from
- debian bookworm: pmacct 1.7.7-1+b1
- debian trixie: pmacct 1.7.8-2+b2
- ubuntu jammy: pmacct 1.7.6-2
- ubuntu noble: pmacct 1.7.8-2build2
- ubuntu questing: pmacct 1.7.8-2build4
- ubuntu resolute: pmacct 1.7.8-4
- ubuntu stonking: pmacct 1.7.8-4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms