You are not logged in.
Hello all,
vnStat has apparently dropped support for combined interfaces, so no more
-i eth0+wlo1
syntax to get merged traffic data.
Does anyone know of any alternatives to get combined traffic data from multiple interfaces?
This would be used to measure traffic from e.g. a laptop which can get both wired and wireless connections.
Thanks.
Last edited by sudoku (2018-10-27 11:30:39)
Offline
#!/bin/bash
traf1=$(vnstat -i $1 --oneline b | awk -F\; '{print $6}')
traf2=$(vnstat -i $2 --oneline b | awk -F\; '{print $6}')
numfmt --to=iec-i --suffix=B --padding=7 $(($traf1 + $traf2))
Offline