how to display the actual network traffic (wireless) in a terminal?
Additionally: Is it possible to add this info to the chart of top?
|
how to display the actual network traffic (wireless) in a terminal? Additionally: Is it possible to add this info to the chart of |
||||
|
Here are some nice tools in the Ubuntu repositories for command line network traffic monitoring: bmon - shows multiple interfaces at once
slurm - has nice colored graphs
tcptrack - A favorite. Tells how much bandwidth is being used and also what protocol (service/port) and destination the transmission is taking place to. Very helpful when you want to know exactly what is using up your bandwidth
|
|||||||||||||||||
|
|
It's quite easy! install "iftop" with:
Then run
from any terminal! Enjoy! |
|||||
|
|
Someone should also have mentioned The thing that's different and maybe is cooler about this one is that it shows traffic per process, like the image shows
Take a look at the page |
|||||||||
|
iptraf
Source http://iptraf.seul.org/about.html InstallationWith
Or download the source: http://iptraf.seul.org/download.html ScreenshotsCurrent Connections:
Current Ports:
Summary of all Interfaces:
Detailed per Interface:
|
||||
|
|
|
There is a nice tool called speedometer that displays a graph in the terminal using Unicode block characters, colors, and even adds labels to each peak in the graph.
It has several options, can monitor multiple interfaces, can show multiple graphs in several rows or columns, and can even monitor the download speed of a single file (by watching the file size on disk). |
|||||||||||||
|
That will give you a streaming information of all the data flowing from that interface (your ethernet card). Similar to wireshark. Use |
|||||
|
|
I think
gevorg@gevorg-TravelMate-3260:~$ ifconfig wlan0
wlan0 Link encap:Ethernet HWaddr 00:18:de:89:52:71
BROADCAST MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
gevorg@gevorg-TravelMate-3260:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 00:16:36:bf:92:e3
inet addr:192.168.10.100 Bcast:192.168.10.255 Mask:255.255.255.0
inet6 addr: fe80::216:36ff:febf:92e3/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:342765 errors:0 dropped:0 overruns:0 frame:0
TX packets:306183 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:373934806 (373.9 MB) TX bytes:39111569 (39.1 MB)
Interrupt:16
It shows RX bytes:73934806 (373.9 MB) and TX bytes:39111569 (39.1 MB). |
|||||||||
|
|
Install ’vnstat’ it can show traffic for an interface. You can install some plotting packages to get some nice graphs. |
|||||
|
|
Also you could use |
|||
|
|
|
If you are looking for something extremely simple, but still useful, try
It monitors all interfaces at once, printing a new line every second. Useful to pipe into another script, or to leave running and observe the bandwidth usage over time. Not as pretty as other tools, but it gets the job done. There are some useful options listed in the manpage:
|
|||||
|
|
Another useful tool is sar. Install it,
How to use it:
And Brendan's amazing graph guide:
References |
||||
|
|
|
Another possible tool is called Similar to |
|||
|
|
|
|
|||
|
|
|
I recently discovered This tool provides information especially on the signal level of the wireless network. |
|||
|
|
|
And this is a blog showing a list of command to monitor bandwidth: |
|||
|
|
|
According to ifconfig man:
So using ip command:
We can get network stats:
Or
|
|||
|
|
|
There's also conky. You might have the package listed in your system's currently used repositories. Try running:
Some basic configuration info: Ubuntu Community Docs: Configuring Conky. CAUTION: The info on that site may be out of date, so please verify the steps listed there apply to your system. Of course, a basic conky is very boring to look at, so here's a good conky theme to get you started: Just follow the instructions on that page for setup; to install a particular theme, copy the Then, edit the file according to the instructions on the linked page. TIP Modify the file after copying it to your home folder, this way you get to keep the original un-altered files in case you need to re-copy the |
|||
|
|
top?" part? :) – Janaka Bandara Dec 25 '15 at 2:57