You are not logged in.

#1 2016-01-28 16:09:22

barefly
Member
Registered: 2014-08-16
Posts: 59

[SOLVED] Command for monitoring current up and down network speeds

I am probably missing something obvious, but I am looking for a command that will display current network speed usage. Conky has a useful built in for this, but I can't seem to find it's equivalant in command form. Any help would be appreciated!

Last edited by barefly (2016-01-28 17:38:40)

Offline

#2 2016-01-28 16:20:22

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: [SOLVED] Command for monitoring current up and down network speeds

sudo iftop

Offline

#3 2016-01-28 16:30:04

barefly
Member
Registered: 2014-08-16
Posts: 59

Re: [SOLVED] Command for monitoring current up and down network speeds

Docbroke wrote:

sudo iftop

This is a bit more than I was looking for, and I'd prefer not to have to run this as sudo each time. The output I am looking for is more akin to a snapshot of current usage.

Offline

#4 2016-01-28 16:32:52

Docbroke
Member
From: India
Registered: 2015-06-13
Posts: 1,438

Re: [SOLVED] Command for monitoring current up and down network speeds

cat /proc/net/wireless

or similar depending on your connection type

EDIT: ignore above, it doesn't give up and down speed,

If only problem is 'sudo' you can try this

sudo chmod u+x /usr/bin/iftop

after that iftop will work without sudo

Last edited by Docbroke (2016-01-28 16:39:18)

Offline

#5 2016-01-28 16:39:22

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,609
Website

Re: [SOLVED] Command for monitoring current up and down network speeds

Moving to networking.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#6 2016-01-28 16:46:28

barefly
Member
Registered: 2014-08-16
Posts: 59

Re: [SOLVED] Command for monitoring current up and down network speeds

Ok I think I figured it out now. /proc/net/wireless didn't exactly give me up and dowload speeds, but /proc/net/dev did give me exactly what I was looking for. Thanks!

EDIT: Ok scratch that /proc/net/dev only gives me total up and down, not current. I'll keep looking around and see if I figure something out that works.

Last edited by barefly (2016-01-28 17:12:05)

Offline

#7 2016-01-28 16:49:20

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 12,609
Website

Re: [SOLVED] Command for monitoring current up and down network speeds

Please remember to mark your thread as solved.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#8 2016-01-28 17:00:48

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Command for monitoring current up and down network speeds

Install vnstat and run 'vnstat -l'. Works for my wired connection:

$ vnstat -l
Monitoring enp0s25...    (press CTRL-C to stop)

  rx:       38 kbit/s    13 p/s          tx:       20 kbit/s    15 p/s

Offline

#9 2016-01-28 17:36:27

barefly
Member
Registered: 2014-08-16
Posts: 59

Re: [SOLVED] Command for monitoring current up and down network speeds

Took me a bit to get vnstat properly configured, but this may be the ideal solution to what im looking for. Thanks!

Offline

#10 2016-01-30 18:48:44

NoSuck
Member
Registered: 2015-03-04
Posts: 157
Website

Re: [SOLVED] Command for monitoring current up and down network speeds

Check out nethogs.  It breaks down network usage by process, making it easy to spot unexpected... net... hogs.

Offline

Board footer

Powered by FluxBB