Portal Home > Knowledgebase > Articles Database > How to get current port speed information ?
How to get current port speed information ?
Posted by Mondo90, 05-09-2012, 04:00 PM |
Hello, I need to get quick info for my script how many of my basic 100 Mbps port speed remain or is in use. I mean how many of my 100 Mbps speed is used by downloading, website (css, jpg, etc), movies watching on my website every second.
Have you got any reliable way to get this info ?
Thanks for help.
|
Posted by TwineDev, 05-09-2012, 04:12 PM |
The following is for linux based servers
For general checking while I was testing streaming videos, I found IPTraf to be pretty decent (basic, but decent)
You can probably google it to find it, but if you are on an OS using yum, you can just do yum install iptraf
Then from shell, just enter iptraf (move around to find the monitoring you need)
-Greg
|
Posted by Mondo90, 05-09-2012, 04:21 PM |
Yes I am on CENTOS, great thanks for help Greg I will check it ;]
|
Posted by ArturasLIX, 05-10-2012, 03:17 AM |
You also can use iftop utility. It shows speed per connection or per ports, depends on filters you use.
|
Posted by Mondo90, 05-10-2012, 08:00 AM |
Thanks guy but I want to use this info to make some calculations in my script so it should be easy and FAST. Which approach is best(fast) here ? ;]
|
Posted by TwineDev, 05-10-2012, 02:06 PM |
With IP Traf, what I did was sit and watched the the network while myself and 4 other people that I know to have decent connections all hit my server to start streaming a video of of it, kept watching it to do a rough guess on an average.
It was very basic and very quick, but gave me a good rough estimate to see how many people at once could stream the video from my server since I had a client interested in getting his own server for videos (In the end, I convinced the customer to use Vimeo, especially once they started their new business plan)
|
Posted by Mondo90, 05-13-2012, 06:14 AM |
IS any cpan module which can give me this information ?
|
Posted by public_html, 05-13-2012, 06:19 AM |
WGET some small file from any other location from ssh and see how much speed it is having.
|
Posted by Mondo90, 05-13-2012, 06:27 AM |
as I said before I don't want only know how speed is port but depending on value of port speed make some calculations, ;]
|
Add to Favourites Print this Article
Also Read