Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Networking
User Name
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.


  Search this Thread
Old 10-20-2004, 04:47 PM   #1
Registered: Oct 2004
Location: NY
Distribution: Slackware
Posts: 200

Rep: Reputation: 30
How to count amount of data btwn iface and IPAddr

This is a kind of programming/scripting question.
I'd like to count the amount of data in/out between the interface and given IP address.
I could use either shell script or C.

Last edited by krizzz; 10-20-2004 at 04:48 PM.
Old 10-20-2004, 07:11 PM   #2
Registered: Sep 2004
Location: Texas, USA
Distribution: Fedora
Posts: 620

Rep: Reputation: 31
No reason to recreate the wheel by writing your own program of script, try ntop

From the ntop man page:
       ntop  shows the current network usage. It displays a list of hosts that
       are currently using the network and reports information concerning  the
       (IP  and non-IP) traffic generated by each host.  ntop may operate as a
       front-end collector (sFlow and/or netFlow plugins) or as a  stand-alone
       collector/display program. A web browser is needed to access the infor-
       mation captured by the ntop program.
       ntop is a hybrid layer 2 / layer 3 network monitor, that is by  default
       it  uses the layer 2 Media Access Control (MAC) addresses AND the layer
       3 tcp/ip addresses.  ntop is capable of associating the two, so that ip
       and non-ip traffic (e.g. arp, rarp) are combined for a complete picture
       of network activity.


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
HP laserjet 6p stalls with large amount of data simjii Mandriva 2 04-10-2020 08:52 PM
calculate amount of data transferred to certain ip addresses dtra Linux - Software 0 11-07-2005 07:57 PM
How to find the amount of data downloaded connected to a network ananthbv Programming 2 10-30-2005 12:25 AM
how to amount hda1 (win xp pro-ntfs) hda5 (data) and cdrom (cd-rw) yohanes Linux - Hardware 2 08-30-2005 03:45 AM
Bash Scripting - Waiting for a certain amount of data welby Programming 12 05-12-2004 12:40 PM > Forums > Linux Forums > Linux - Networking

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

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration