You are not logged in.

#1 2008-08-27 03:22:20

colbert
Member
Registered: 2007-12-16
Posts: 809

Looking for app to see network activity in shell

I have conky showing me my box's up/down speed just fine but I have a server on my home network too, and I'd love some prog that can show entire network traffic in shell, if possible speed and amount transferred, etc. Very much appreciate any recommendations, thanks! smile

Offline

#2 2008-08-27 03:54:50

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Looking for app to see network activity in shell

tcpdump!  big_smile

Offline

#3 2008-08-27 04:31:14

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Looking for app to see network activity in shell

Thanks tam, how can I have it show current speed and/or total data transferred?

Offline

#4 2008-08-27 16:06:12

tam1138
Member
Registered: 2007-09-10
Posts: 238

Re: Looking for app to see network activity in shell

Er, you can't, directly.  You'd have to write a wrapper around it, or your own little libpcap app.  I don't know of a command-line tool to do precisely what you want.

Offline

#5 2008-08-27 16:26:43

kclive18
Member
From: Columbus, Ohio, USA
Registered: 2008-05-08
Posts: 219

Re: Looking for app to see network activity in shell

I found something here in AUR called "nload":

http://aur.archlinux.org/packages.php?ID=5347


My Rigs:
- Mid-2007 iMac 20", Intel 2GHz Core 2 Duo, 2x1GB DDR2-800, 250GB SATA HDD, and...MIGHTY MOUSE!!! tongue, OSX 10.5 Leopard, ATI Radeon 2400XT 128MB
- HP zv6203cl, AMD Athlon 64 3200 S939, 2x512MB DDR400, 80GB 4200rpm HDD, ATI Radeon Xpress 200M 128MB, Arch i686 cool
- 1986 Gibson SG Junior Cherry Red, Ibanez 15W amp, DigiTech RP250 modeling processor

Offline

#6 2008-08-27 19:29:43

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Looking for app to see network activity in shell

Thanks so much kclive18! That is a wonderful program, exactly what I was looking for!! smile

Offline

#7 2008-08-27 19:33:06

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Looking for app to see network activity in shell

Sounds like you want slurm. There's a PKGBUILD in AUR, but unfortunately the source does not seem to be available anymore. Here's a pacman installable package, I created sometime ago: http://nooms.de/files/slurm-0.3.3-1.pkg.tar.gz

Offline

#8 2008-08-27 19:36:40

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Looking for app to see network activity in shell

I'd love to try that one smoon, but how do I install it? I have saved the contents of the tar to ~/installs/slurm. Thanks smile

Offline

#9 2008-08-27 19:37:47

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Looking for app to see network activity in shell

colbert wrote:

I'd love to try that one smoon, but how do I install it? I have saved the contents of the tar to ~/installs/slurm. Thanks smile

pacman -U http://nooms.de/files/slurm-0.3.3-1.pkg.tar.gz

should work fine.

*Edit*
I just had a look at nload and it looks not too different from slurm.

Last edited by smoon (2008-08-27 19:39:05)

Offline

#10 2008-08-27 19:51:39

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Looking for app to see network activity in shell

Thanks smoon! I have it working and it is excellent! However I can't get the Interface speed set so it knows my bandwidth (as can be set in nload with -u/-U). Haven't seen option with --help either?

Also, how can I have nload include traffic from my server box on the network, or is that not possible? (ie., eth0 on 2nd arch on network).

Last edited by colbert (2008-08-27 19:54:15)

Offline

#11 2008-08-27 20:08:38

smoon
Member
Registered: 2005-08-22
Posts: 468
Website

Re: Looking for app to see network activity in shell

colbert wrote:

Thanks smoon! I have it working and it is excellent! However I can't get the Interface speed set so it knows my bandwidth (as can be set in nload with -u/-U). Haven't seen option with --help either?

I'm not exactly sure what you mean by that. AFAIK there's no equivalent to nloads -u/U options. But slurm should know your bandwidth without something like that.

Also, how can I have nload include traffic from my server box on the network, or is that not possible? (ie., eth0 on 2nd arch on network).

I don't know if nload can do that. But to monitor more boxen in your network you should consider giving something more advanced like ntop or iptraf a try.

Offline

#12 2008-08-27 21:43:30

colbert
Member
Registered: 2007-12-16
Posts: 809

Re: Looking for app to see network activity in shell

I have taken a look at iptraf and ntop.. they are far more than what I require. nload is really fantastic and does the job smile Thanks a lot for your help! big_smile

Offline

#13 2008-09-25 02:57:08

SkonesMickLoud
Arch Linux f@h Team Member
From: The D of C
Registered: 2008-09-20
Posts: 178

Re: Looking for app to see network activity in shell

Sorry to bump a month old thread, but you should check out vnstat.  It's command line driven, but the results can easily be dropped into conky.

Offline

Board footer

Powered by FluxBB