${color grey}UpSpeed :$color ${upspeed tun0}/${upspeed re0}
${color grey}DownSpeed:$color ${downspeed tun0}/${downspeed re0}
${color grey}TotalUp :$color ${totalup tun0}/${totalup re0}
${color grey}TotalDown:$color ${totaldown tun0}/${totaldown re0}
Generally you configure a firewall and let the packet filter do the counting of volume (as opposed to # of packets).
# ipfw -t show
output per rule:rulenum packets bytes timestamp ruletext
# ipfw add 100 count all from any to any in recv $interface
# ipfw add 200 count all from any to any out xmit $interface
# ipfw zero 100 200
I'd also like to know how much I'm using on average each month so that I can choose the appropriate packet.Yeah, you want something that'll count the totals too, the interface counters get reset when then interface goes down. But with 4G/Edge/5G you often have a data limit on a monthly basis, so you want to keep track of the counters during that entire period to add everything up and warn you when you're close to the limit for that month.
Yeah, you want something that'll count the totals too, the interface counters get reset when then interface goes down.
But with 4G/Edge/5G you often have a data limit on a monthly basis, so you want to keep track of the counters during that entire period to add everything up and warn you when you're close to the limit for that month.
I'd also like to know how much I'm using on average each month so that I can choose the appropriate packet.
vnstat can give you sums/averages over various intervals as well as estimates for the current interval (e.g. week, month...)I'd also like to know how much I'm using on average each month so that I can choose the appropriate packet.
Try with: https://www.freshports.org/sysutils/bpytop/How should I go about checking how much I download from the Internet via a SIM card?