LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-06-2012, 11:20 PM   #1
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Rep: Reputation: 85
Testing upload bandwidth from the command line


For download bandwidth, I can do

wget --output-document=/dev/null http://speedtest.wdc01.softlayer.com...ds/test500.zip

or the curl equivalent

curl -o /dev/null http://speedtest.wdc01.softlayer.com...ds/test500.zip

But I have a virtual private server vps running on a cloud, no gui installed nor do I want one. So I'm more interested in the up-bandwidth. How can I do that?
 
Old 09-06-2012, 11:28 PM   #2
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
if you have bash installed:
Code:
time for i in $(seq 1000) ; do cat out ; done >/dev/udp/1.1.1.1/1
 
Old 09-07-2012, 11:49 AM   #3
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Where is the out file supposed to come from?
 
Old 09-07-2012, 07:50 PM   #4
Ygrex
Member
 
Registered: Nov 2004
Location: Russia (St.Petersburg)
Distribution: Debian
Posts: 666

Rep: Reputation: 68
let it be 100Mib file:
Code:
dd count=204800 of=out if=/dev/zero >out
 
Old 11-21-2012, 02:32 PM   #5
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
This will send a 105 mb file 1000 times to (i don't know where)?
 
Old 11-21-2012, 04:58 PM   #6
Habitual
LQ Veteran
 
Registered: Jan 2011
Location: Abingdon, VA
Distribution: Catalina
Posts: 9,374
Blog Entries: 37

Rep: Reputation: Disabled
Quote:
Originally Posted by fakie_flip View Post
...(i don't know where)?
.out
 
Old 11-21-2012, 07:13 PM   #7
fakie_flip
Senior Member
 
Registered: Feb 2005
Location: San Antonio, Texas
Distribution: Gentoo Hardened using OpenRC not Systemd
Posts: 1,495

Original Poster
Rep: Reputation: 85
Quote:
Originally Posted by Habitual View Post
.out
No, it's:

/dev/udp/1.1.1.1/1

Not sure what that is

I left this for loop running for hours, and it's just hung. I know my connection on the VPS is not that slow.
 
  


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
Command Line Bandwidth test? vonedaddy Linux - Newbie 8 09-22-2014 06:34 PM
How can I limit upload ftp speed via the command line? toben Linux - Software 2 02-29-2008 05:51 PM
command Line SSH download-upload mirat46 Linux - Newbie 1 05-11-2006 04:12 PM
Vsftpd - how to limit download bandwidth but unlimited upload bandwidth? mpls mikeg Linux - Software 3 08-13-2005 01:52 PM
Best way to upload (FTP) something via the command line... obelxi Linux - Networking 2 03-17-2005 06:15 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 05:50 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