Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I used a land line broadband modem I could check my Internet data use using a program called vnstat. Now I have switched to a mobile broadband data dongle, vnstat shows 0 use. Is there an equivalent to vnstat for mobile broadband, a filter for use with mobile broadband or an alternative way of keeping track of how much data I am using? I have Mint 18.1 Cinnamon.
When I used a land line broadband modem I could check my Internet data use using a program called vnstat. Now I have switched to a mobile broadband data dongle, vnstat shows 0 use.
once you have an internet connection, you can measure its data usage.
doesn't matter whether it's wired or wireless.
you might have to tell vnstat to use a different interface?
have a look-see with 'ip link'.
Thank you to everyone for your replies. The dongle connects by USB. It's vnstat that I wanted to use. It gives me the exact information I want. My problem was getting it to look at the mobile broadband data dongle instead of the landline modem. I'd previously used ifconfig which produced the same information as ip link.
ip link got me this
Code:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp2s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether 00:25:11:59:cc:58 brd ff:ff:ff:ff:ff:ff
3: enp0s26f7u1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP mode DEFAULT group default qlen 1000
link/ether 02:0c:e7:0b:01:02 brd ff:ff:ff:ff:ff:ff
1: lo is another dongle, not currently in use.
2: enp2s0 is the old landline modem which is no longer in use.
3: enp0s26f7u1 is, I think, the one I was trying to look at. Just my luck that it was an 11 digit id and I was reading the last digit as 'l' instaed of '1'.
1: lo reads 'Not enough data available yet.' and has done for over 24 hours. That's why I assume it's inactive.
3: enp0s26f7u1 also reads 'Not enough data available yet.' but it has only been up for a short while. I expect I'll know tomorrow if it is the one I want.
Over 24 hours later I was still getting 'Not enough data available yet.' I found a web page with the command 'vnstat -l -i enp0s26f7u1' to capture live data use and this showed that 'enp0s26f7u1' was the USB modem and that it was being monitored. Another command on that page was -u to create a new database for enp0s26f7u1. I did this and it worked.
'lo' is the loopback device.
it's not relevant here. ignore it.
the other two - well neither looks like a mobile broadband dongle.
are you actually connected to the internet? <==!!!
what is the manufacturer & model of the dongle? what are its specs? how does it connect? usb?
maybe the output of 'lsusb' can shed some light.
It's a Vodafone data dongle. I'm not sure of the model. It's 3G plugged into a USB port.
lsusb gets
Code:
stan@stan-Veriton-L480 ~ $ lsusb
Bus 002 Device 004: ID 13ba:0001 PCPlay Konig Electronic CMP-KEYPAD12 Numeric Keypad
Bus 002 Device 003: ID 05e3:0610 Genesys Logic, Inc. 4-port hub
Bus 002 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 008 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 007 Device 002: ID 046d:c534 Logitech, Inc. Unifying Receiver
Bus 007 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 006 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 001 Device 003: ID 19d2:1048 ZTE WCDMA Technologies MSM
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 005 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 004 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
Bus 003 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
stan@stan-Veriton-L480 ~ $
The Logitech device is going to be the keyboard, mouse dongle, so it must be the ZTE WCDMA Technologies MSM.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.