LinuxQuestions.org
Help answer threads with 0 replies.
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-05-2013, 07:39 AM   #1
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Rep: Reputation: 45
How to check Bandwidth of particular IP.


hi,
I am using Centos 6.3 for squid server which is functional.I want to monitor bandwidth of my Samba Server which is configure on 192.168.1.100/24.

Is there any utility or software by which i can monitor the total bandwidth consume within every 5 min.

2nd thing i have a IP based 192.168.1.10/24 camera on my LAN.I also want to check its bandwidth consumption.

Please guide me.
thanks,
gardenair
 
Old 11-05-2013, 09:41 AM   #2
a.cohen
LQ Newbie
 
Registered: Oct 2013
Posts: 16

Rep: Reputation: Disabled
read the interface statistics for example # of bytes
Bw (in bit per sec) - (# of bytes * 8) / (5 * 60)
then clear statistics
 
Old 11-05-2013, 09:58 AM   #3
gardenair
Member
 
Registered: Oct 2004
Location: LH
Posts: 648

Original Poster
Rep: Reputation: 45
Not understand.Well i have google & find ntop utilityReference

http://www.cyberciti.biz/faq/howto-i...-fedora-linux/

In download link i found two ntop categories

ntopng-data-1.1_6932.tgz
ntopng-1.1_6932.tgz

I choose the second one which is 45.1 MB in size. According to the web site i follow the steps but
unable to execute # ./autogen.sh inside the ntop directory !
This is out of sop of my question but if ntop is the solution then please guide me.

thanks

Last edited by gardenair; 11-05-2013 at 10:07 AM.
 
Old 11-05-2013, 10:07 AM   #4
a.cohen
LQ Newbie
 
Registered: Oct 2013
Posts: 16

Rep: Reputation: Disabled
if u type ifconfig in linux shell you get a list of interfaces and their statistics -
for example:
[avi_c@infra-l-avi eth0]$ ifconfig
eth0 Link encap:Ethernet HWaddr 00:0C:29:01:8A:F8
inet addr:172.17.170.28 Bcast:172.17.170.255 Mask:255.255.255.0
inet6 addr: fd00:0:20d2:2570:20c:29ff:fe01:8af8/64 Scope:Global
inet6 addr: fe80::20c:29ff:fe01:8af8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:10286380 errors:0 dropped:0 overruns:0 frame:0
TX packets:9353562 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:3016810193 (2.8 GiB) TX bytes:3380608840 (3.1 GiB)


now take the RX/TX pkts and calculate the downs/uptream-BW
there are linux API's to clear these statistics.
 
Old 11-06-2013, 12:50 PM   #5
hamlindsza
Member
 
Registered: Aug 2012
Distribution: Debian, CentOS
Posts: 74

Rep: Reputation: Disabled
You can monitor the live bandwidth usage with the tool "iftop"
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 check the ISP bandwidth esolve Linux - Networking 2 11-29-2012 06:48 PM
how to check bandwidth in linux madzibabamoses Linux - Newbie 4 08-01-2012 07:44 PM
check which IP using bandwidth qwertyjjj Linux - Newbie 30 11-09-2010 05:38 AM
How to Check Alloted Bandwidth? nirmit Linux - Networking 0 03-16-2009 02:30 AM
How to check internet bandwidth jojojo Linux - Newbie 4 06-07-2006 07:33 PM

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

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