LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-03-2010, 04:22 PM   #1
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Rep: Reputation: 36
CLI speed test


Is there a CLI speed test that I can run in a script?

I'm trying to identify when WAN bandwidth is compromised. I don't want to run this continuously, but would like something that I can put in a script for testing purposes. All the speed tests I've found, while quite adequate otherwise, utilize a GUI interface.

Similarly, is there a linux-based client / server pair that I can use to test out LAN /VLAN issues?

Thanks.
 
Old 11-03-2010, 06:02 PM   #2
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
iperf ?
 
1 members found this post helpful.
Old 11-03-2010, 07:41 PM   #3
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
Downloaded it, and at first blush it is what I need for the LAN.

Is there any kind of a CLI WAN performance (ISP speed test)?
 
Old 11-03-2010, 09:09 PM   #4
kbp
Senior Member
 
Registered: Aug 2009
Posts: 3,790

Rep: Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653Reputation: 653
http://www.speedtest.net ? .. .. not cli I know, but you'd need a hosted server to provide the other end
 
Old 11-03-2010, 10:45 PM   #5
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
I tend to use the speakeasy one. But there might be one without a GUI and a CLI entry. I suppose I could script the GUI, but it's not straightforward.
 
Old 11-03-2010, 11:17 PM   #6
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
Is there any kind of a CLI WAN performance (ISP speed test)?
How about wget or ftp ?


Kind regards
 
Old 11-04-2010, 09:18 AM   #7
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
That's a good option, and I kind of look at those numbers now, but they are highly dependent on not only the network, but the host, and any (unknown) policies that the host may have.

If anyone knows of a way to invoke an ISP speed test from a CLI, I remain interested.
 
Old 11-04-2010, 09:35 AM   #8
ezekieldas
Member
 
Registered: Mar 2010
Posts: 122

Rep: Reputation: 16
There once was something named tcpspray but it's availability (and support) is now limited...

here are some rpms that might work for you:

http://packages.sw.be/tcpspray/
 
Old 11-04-2010, 12:14 PM   #9
repo
LQ 5k Club
 
Registered: May 2001
Location: Belgium
Distribution: Arch
Posts: 8,529

Rep: Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899Reputation: 899
Quote:
That's a good option, and I kind of look at those numbers now, but they are highly dependent on not only the network, but the host, and any (unknown) policies that the host may have.
The best way for a speedtest is the ftpserver from your provider.

Kind regards
 
Old 11-04-2010, 09:01 PM   #10
ezekieldas
Member
 
Registered: Mar 2010
Posts: 122

Rep: Reputation: 16
Another one called bing -- uses icmp

http://fgouget.free.fr/bing/index-en.shtml
 
Old 11-06-2010, 09:20 PM   #11
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
Thank much for all the pointers !!!

I'm good, but I won't close this thread out for a couple more days, in case there continue to be some more good suggestions.
 
Old 11-09-2010, 03:04 AM   #12
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
what is usually adviced is downloading large files from fast servers. usually they are called 10mb.bin/100mb.bin/1000mb.bin you can then use wget to get them, try:
wget http://speedtest.onsbrabantnet.nl/files/1024MByte.bin for example
 
Old 11-24-2010, 10:21 PM   #13
linuxbird
Member
 
Registered: Feb 2006
Distribution: Slackware
Posts: 543

Original Poster
Rep: Reputation: 36
I ended up using the download of the large file from the .nl ISP. It gave me a sort-of metric. Not exactly what I was looking for, but usable.

Someday if I have time, I'll write something like that. No need to read large files, one could simply send a string of pseudorandom numbers.
 
Old 11-25-2010, 08:42 AM   #14
Steviepower
Member
 
Registered: May 2010
Location: Eindhoven
Distribution: ubuntu/debian
Posts: 152

Rep: Reputation: 25
you mean setting up an Iperf server?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to test the RAID speed videoclock Linux - Software 5 08-26-2009 05:35 AM
CLI internet speed test? whiteghetto Linux - Newbie 2 06-13-2008 03:28 PM
Samba transfer speed in KDE vs. CLI. nattflyger Linux - Networking 2 11-17-2006 09:26 AM
speed test daashag Linux - Networking 4 03-30-2006 01:29 PM
speed test Yomaoni Linux - Software 4 07-18-2005 04:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 01:58 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration