LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
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 03-02-2005, 06:40 PM   #1
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Rep: Reputation: 15
keeping traffic numbers for ppp0 or eth0 interface


Hi folks, is there any way to keep traffic amount which flow through some device maybe using ifconfig tool or some other, so reboot wouldn't influent it?
(I know I could count all traffic through iptables but I thought that there maybe some solution to make interface remeber it's values).
 
Old 03-03-2005, 11:24 AM   #2
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
I use a program called vnstat.

Don't know if it has everything you're looking for. But it keeps stats on how much traffic has gone through my NICs.

http://humdi.net/vnstat/
 
Old 03-09-2005, 10:35 AM   #3
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
thanks! I'll look into it. But I think that need to use iptables anyway since there are a lot of localnet traffic which I don't really interested in.
 
Old 03-09-2005, 11:12 AM   #4
sensovision
Member
 
Registered: Mar 2004
Location: Ukraine
Distribution: Debian "Wheezy"
Posts: 94

Original Poster
Rep: Reputation: 15
update: just installed it and it looks like a nice way to track general data. Thanks for advice!
 
Old 03-09-2005, 09:31 PM   #5
sandgroper
Member
 
Registered: Jul 2004
Location: Perth , Western Australia
Distribution: Fedora Core 5 , Mint 9
Posts: 118

Rep: Reputation: 15
Re: keeping traffic numbers for ppp0 or eth0 interface

Quote:
Originally posted by sensovision
Hi folks, is there any way to keep traffic amount which flow through some device maybe using ifconfig tool or some other, so reboot wouldn't influent it?
(I know I could count all traffic through iptables but I thought that there maybe some solution to make interface remeber it's values).
You could have a look at

iptraf

It has quite a few good things about it.
 
Old 03-10-2005, 10:13 AM   #6
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
iptraf is nice, anyone know of a way to throw the data it gathers in to an sql DB? The problem with iptraf is that it doesn't survive reboots, and doesn't keep long term data.
 
Old 03-10-2005, 02:50 PM   #7
sandgroper
Member
 
Registered: Jul 2004
Location: Perth , Western Australia
Distribution: Fedora Core 5 , Mint 9
Posts: 118

Rep: Reputation: 15
Quote:
Originally posted by Technoslave
iptraf is nice, anyone know of a way to throw the data it gathers in to an sql DB? The problem with iptraf is that it doesn't survive reboots, and doesn't keep long term data.
Have you tried using ethereal ?
You can save all the stats to a file , retrieve it and filter it.
 
Old 03-10-2005, 05:41 PM   #8
Technoslave
Member
 
Registered: Dec 2003
Location: Northern VA
Posts: 493

Rep: Reputation: 30
Ethereal and iptraf aren't the same thing, I'm familiar with both...I've just always wanted what iptraf puts out ( specifically the port stats, how much traffic over http, ssh, etc ), and be able to have that info go to an sql db instead of on to the screen.

I'm lazy, I'm sure I could get that same functionality from ethereal, but have never wanted to put forth the effort of coding my own solution.
 
  


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
Couldn't Find Interface Ppp0: No Such Device orc Linux - Networking 10 09-12-2009 09:56 AM
ppp0 interface setup zsjoska Linux - Networking 1 11-04-2004 02:01 PM
interface PPP0 walker#1 Linux - Hardware 4 08-28-2004 08:39 AM
No interface ppp0 exists Likosin Linux - Networking 3 08-09-2004 03:49 AM
ppp0 uses eth0... but eth0 never activates joshuapurcell Linux - Networking 3 12-17-2003 01:52 AM

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

All times are GMT -5. The time now is 08:21 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration