LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Testing upload bandwidth from the command line (https://www.linuxquestions.org/questions/linux-software-2/testing-upload-bandwidth-from-the-command-line-4175426057/)

fakie_flip 09-06-2012 11:20 PM

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?

Ygrex 09-06-2012 11:28 PM

if you have bash installed:
Code:

time for i in $(seq 1000) ; do cat out ; done >/dev/udp/1.1.1.1/1

fakie_flip 09-07-2012 11:49 AM

Where is the out file supposed to come from?

Ygrex 09-07-2012 07:50 PM

let it be 100Mib file:
Code:

dd count=204800 of=out if=/dev/zero >out

fakie_flip 11-21-2012 02:32 PM

This will send a 105 mb file 1000 times to (i don't know where)?

Habitual 11-21-2012 04:58 PM

Quote:

Originally Posted by fakie_flip (Post 4834281)
...(i don't know where)?

.out

fakie_flip 11-21-2012 07:13 PM

Quote:

Originally Posted by Habitual (Post 4834365)
.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.


All times are GMT -5. The time now is 02:55 PM.