D
D
Danil Gaisin2020-07-09 14:01:09
linux
Danil Gaisin, 2020-07-09 14:01:09

How to get rx, tx value?

Good afternoon, dear readers.
I'm trying to get the value of the incoming and outgoing network speed on a Linux server using the iftop software.
The problem is that you need to get only 2 values ​​from the monitoring (specified in the screenshot).
Tried to display using grep , but IMHO displays the wrong value.
Please help me figure out these..
5f06f88a1d0b4344392532.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
ky0, 2020-07-09
@ky0

You don't need to do this with iftop, there are plenty of better tools for things like this, starting with /proc/net/devand various wrappers above it.

D
Dim Boy, 2020-07-10
@twix007

Maybe through vnstat it's better, it's more convenient there!

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question