-
-
Notifications
You must be signed in to change notification settings - Fork 331
Description
bandwhich --help
Options:
-i, --interface The network interface to listen on, eg. eth0
-r, --raw Machine friendlier output
-n, --no-resolve Do not attempt to resolve IPs to their hostnames
-s, --show-dns Show DNS queries
-d, --dns-server <DNS_SERVER> A dns server ip to use instead of the system default
--log-to <LOG_TO> Enable logging to a file
-v, --verbose... More output per occurrence
-q, --quiet... Less output per occurrence
-p, --processes Show processes table only
-c, --connections Show connections table only
-a, --addresses Show remote addresses table only
-t, --total-utilization Show total (cumulative) usages
-h, --help Print help
-V, --version Print version
All options have an abbreviation, except for the logging option. Add a shortcut to this option as well: '-l'
2.sudo bandwhich --log-to test
The band itself monitors traffic and displays all the stated metrics successfully in the CLI (the process that loads the network). But something completely different is written into the log file (complete nonsense).
cat test
07:07:16 [WARN] Cannot determine which process owns tcp://192.168.43.27:49686.
07:08:02 [WARN] Cannot determine which process owns tcp://192.168.43.27:42410.
07:08:02 [WARN] Cannot determine which process owns tcp://192.168.43.27:42412.
07:08:02 [WARN] Cannot determine which process owns tcp://192.168.43.27:42414.
07:08:02 [WARN] Cannot determine which process owns tcp://192.168.43.27:42416.
07:08:23 [WARN] Cannot determine which process owns tcp://192.168.43.27:40488.
07:08:43 [WARN] Cannot determine which process owns tcp://192.168.43.27:51998.
07:08:47 [WARN] Cannot determine which process owns tcp://192.168.43.27:40486
Fix, "bandwhich" should write to the log what it captures in the CLI. This problem greatly spoils the functionality of the utility and forces you to use other GNU/Linux tools, of which, unfortunately, there are few.
OS used is Debian, bandwhich v0.21.1 (installed from source).
p/s/ Before the bandwhich 0.21.1 version from the source code, I tested the bandwhich 0.21.1 version from Snap. Unfortunately, bandwhich from snap does not display the name of the process that creates network activity (I don’t know who collects the package versions for snap, but bandwhich 0.21.1 from there is not working). This is just a word.