Notices


Reply
Thread Tools
bluesubaru's Avatar
Posts: 197 | Thanked: 39 times | Joined on Jan 2008 @ Long Island
#1
Is there an app to measure network throughput? I have IPhome and it will show how much data has been transfered, but it does not show it as a rate, i.e (64Kbps). When viewing streams and optimizing my UPnP server, seeing the actual transfer rate is helpful. It doesn't even have to show a graph.
__________________
Paul <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Linux newbie with a N810 OS2008 >>>>>>>>>>>>>>>>>> Art is the lie that shows us the Truth
Don't let a suitcase full of cheese be your big fork & spoon
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#2
Well, a script that loops delaying one second and subtracts the total should be trivial. Probably will have substantial jitter though. Coming right up!
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#3
Code:
#!/bin/sh
olddata=`/sbin/ifconfig wlan0|awk -F: '/TX bytes/ {print $3}'|cut -f1 -d' '`
while true; do
  sleep 1
  data=`/sbin/ifconfig wlan0|awk -F: '/TX bytes/ {print $3}'|cut -f1 -d' '`
  echo `expr \( $data - $olddata \) / 128` Kib/s
  olddata=$data
done
Why is there no setterm? Grrr...
 

The Following User Says Thank You to Benson For This Useful Post:
bluesubaru's Avatar
Posts: 197 | Thanked: 39 times | Joined on Jan 2008 @ Long Island
#4
Ok I copied the script to /usr/bin/rate.sh, changed execute permission, type "usr/bin/rate.sh" and I get: /bin/sh: /usr/bin/rate.sh: not found

What am I missing?
__________________
Paul <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Linux newbie with a N810 OS2008 >>>>>>>>>>>>>>>>>> Art is the lie that shows us the Truth
Don't let a suitcase full of cheese be your big fork & spoon
 
Posts: 474 | Thanked: 30 times | Joined on Jan 2006
#5
ntop, anyone?
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#6
I would normally install it under my home directory, like in /home/user/apps/, thus avoiding permissions issues. You sure it is both readable and executable by all users?
You said you ran "usr/bin/rate.sh", which is missing a / at the beginning. I assume that was a typo when posting, as your error implies that the / was present; but just checking...
 
bluesubaru's Avatar
Posts: 197 | Thanked: 39 times | Joined on Jan 2008 @ Long Island
#7
weird, I did everything over again at home using WinSCP and it worked. Can't see anything different from the first file except different name.

anyway... the script work great. 20Kbs when streaming MobiTV. There is a lot of jitter, but it's close enough to see the difference between 64K and 24K. Thanks.
__________________
Paul <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Linux newbie with a N810 OS2008 >>>>>>>>>>>>>>>>>> Art is the lie that shows us the Truth
Don't let a suitcase full of cheese be your big fork & spoon
 
Benson's Avatar
Posts: 4,930 | Thanked: 2,272 times | Joined on Oct 2007
#8
mobiTV? I thought I heard that was down again... <shrug>
Glad it worked.
 

The Following User Says Thank You to Benson For This Useful Post:
bluesubaru's Avatar
Posts: 197 | Thanked: 39 times | Joined on Jan 2008 @ Long Island
#9
Originally Posted by Benson View Post
mobiTV? I thought I heard that was down again... <shrug>
Glad it worked.
no, it's down. I was just watching the ad that pops up in it's place.
__________________
Paul <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Linux newbie with a N810 OS2008 >>>>>>>>>>>>>>>>>> Art is the lie that shows us the Truth
Don't let a suitcase full of cheese be your big fork & spoon
 
Reply


 
Forum Jump


All times are GMT. The time now is 08:29.