I'm running Ubuntu 16.04. Is there a way to display the total received data which is available in the network history of System monitor tool, on the Unity Panel?

I have limited amount of bandwidth available every month, so it would be nice to have that status visible all the time.

  • What version of Ubuntu are you running? 16.04? 14.04? This might affect what software is available/compatible for your system – user533208 May 7 '16 at 22:53

Figured it out myself

Installed indicator-sysmonitor.

Then added this command to get total received:

ifconfig wlp3s0 | grep -oP 'RX bytes:\s*\K\d+' | awk '{ printf("%.0f\n", $0 / 1024 / 1024)}'

The existing answer is great for listing network traffic received for the current boot but this means manual book keeping to track against the ISP's monthly billing cycle.

A better method is to use vnstat. See: How to track the total network data in a month

You can use conky to display your monthly consumption on your desktop, along with the current session totals that you see using indicator-systmonitor now:

conky vnstat

To learn how to setup vnstat follow the link above.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.