SBWS(1)
β¨ sbws π the manual page bestie edition β¨
okay so you opened man sbws and now you're here, welcome, we're doing this together π«Ά this is the manual for sbws, and it's literally the whole thing, every flag, every path, no notes skipped. slay. let's go.
πΈ NAME πΈ
sbws β Simple Bandwidth Scanner. that's it, that's the name, it's giving exactly what it says on the tin π
π SYNOPSIS π
sbws [Optional arguments] [Positional arguments]
sbws [-h] [--version] [--log-level {debug,info,warning,error,critical}]
[-c CONFIG] {cleanup,scanner,generate,init,stats}
like. two ways to call her. either you're being vague and cute with [Optional arguments] and [Positional arguments], or you're being specific with the whole lineup of flags and the little menu of subcommands {cleanup,scanner,generate,init,stats} β¨
π¦ DESCRIPTION π¦
so sbws is a Tor bandwidth scanner that generates bandwidth measurements files, and those files get read by the Directory Authorities. no cap. that's the whole job and she does it well π
here's the thing though: the scanner requires a configuration file (peep sbws.ini (5)) and that config needs a [destinations] section. no destinations section, no scanner, periodt.
you can run sbws as a python script or as a system service. the system service is the recommended one β that's the main character way to do it π
and listen, the default locations of all the files that sbws reads or generates? they depend on how it's run. so if you're like "where did my files go π" β go read the FILES section below, bestie, it's all laid out there.
π OPTIONS π
π Positional arguments
{cleanup,scanner,generate,init,stats}β your subcommand menu, pick one bestie.
these arguments can have their own additional optional arguments. to find out what they are, literally just run:
sbws <positional argument> --help
and she'll tell you everything she knows π«Ά
β Optional arguments
-h,--helpβ shows the help message and dips. classic.--versionβ shows thesbwsversion and dips.--log-level {debug,info,warning,error,critical}β overrides the sbws log level. default isinfo. so if you want the tea, you pickdebugπ-c CONFIG,--config CONFIGβ path to a custom configuration file. bring your own config, icon behaviour.
π₯ EXAMPLES π₯
okay the moment you've been waiting for, actual usage, let's get into it:
sbws scanner
run the scanner using sbws defaults. just vibes, no config file specified.
sbws -c ~/.sbwsrc scanner
run the scanner using the configuration file in ~/.sbwsrc πΈ
sbws --log-level debug generate
generate the v3bw file in the default v3bw directory, and yes, with debug logging so you can see everything π
sbws cleanup
cleanup datadir and v3bw files older than XX in the default v3bw directory. yes, XX. that's what the manpage says. it's mysterious. it's giving cryptic. we don't question her π«Ά
π FILES π
okay important part, pay attention bestie. in this whole list, the first path is the default location when you run sbws as a script, and the second path is the default location when you run sbws as a system service. two lives, two paths, one legend β¨
$HOME/.sbws.inior/etc/sbws/sbws.iniβ the location wheresbwsgoes looking for a custom configuration file, when the--configoption isn't provided. (i.e. when you didn't tell her where to look, she looks here.)$HOME/.sbwsor/var/lib/sbwsβ the location wheresbwswrites/reads measurement data files, bandwidth list files and tor process data.
under this directory, sbws creates the following subdirectories:
datadirβ the raw results generated by thesbwsscanner. other commands (likegenerateandstats) read results from this directory. it's the source of truth, the origin story πlogβ the log files generated bysbws, when logging to a file is configured (peepsbws.ini).v3bwβ the bandwidth files generated bysbws generate. these are the files read by the Tor directory authorities. the whole point, lowkey πtorβ data generated by the tor process launched bysbws.
$HOME/.sbws/toror/run/sbws/torβ the location where the tor process launched by thesbwsscanner stores temporal files, like Unix domain sockets. temporary stuff, cute little sockets, love that for her π¦
π§ SEE ALSO π§
go read these too, iykyk:
sbws.ini (5)- <https://tpo.pages.torproject.net/network-health/sbws>
- <https://spec.torproject.org/bandwidth-file-spec/>
tor (1)
π BUGS π
found a bug? don't suffer in silence bestie, please report bugs at:
<https://gitlab.torproject.org/tpo/network-health/sbws/-/issues/>
π Author π
Matt Traudt [sirmatt at ksu dot edu], juga [juga at riseup dot net]
legends, both of them, no further questions π
π Copyright π
CC0
and that's the whole page bestie, you ate that π«Ά version 2.2.0, dated Oct 17, 2025, coming to you from the sbws manual. go run something and slay π
β¨
π¦ where this page comes from
- ubuntu resolute: sbws 2.2.0-1 Β· CC0-1.0
- ubuntu stonking: sbws 2.2.0-1 Β· CC0-1.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms