LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-15-2003, 06:00 AM   #1
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Rep: Reputation: 15
ifconfig counter question


Just a quick question about ifconfig...

ifconfig displays counters for total bytes sent and recieved by each interface, but this appears to reset to zero after a set number of bytes or a set amount of time.

Anyone out there know what these values are, and whether there's a way of finding the true stats for the duration that the interface has been up??

Thanks guys...
 
Old 10-15-2003, 08:57 AM   #2
dkloes
Member
 
Registered: Oct 2003
Posts: 66

Rep: Reputation: 15
netstat -i also displays stats but not sure about the resetting to 0 problem or if netstat does the same thing
 
Old 10-15-2003, 09:23 AM   #3
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
netstat -i gives the packet count of each device rather than the byte count.

Found from a little investigation that these stats all come from /proc/net/dev so I guess this is the file that's having it's stats zero'd occasionally... So any idea how to stop it, or is that just something I'm gonna have to put up with?

Thanks...
 
Old 10-15-2003, 09:41 AM   #4
dkloes
Member
 
Registered: Oct 2003
Posts: 66

Rep: Reputation: 15
Also doing some research ...

Have you considered ethereal?
 
Old 10-15-2003, 09:53 AM   #5
masterJ
Member
 
Registered: Jun 2003
Location: London
Distribution: Debian Sarge & Slack 10.0
Posts: 52

Original Poster
Rep: Reputation: 15
Not really thought about it - was more thinking of stats that can just be grabbed straight from the kernel...
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Counter Strike Tweaking, Ethernet question BlackRob Linux - Games 0 01-24-2005 12:03 PM
hi .. im a little bit new and have question about counter New In Linux 11 Linux - Games 4 07-25-2004 06:48 PM
Counter server question Oliv' Linux - Games 8 03-24-2004 07:06 AM
Counter Strike Server Question New 2 The Game Linux - Software 2 08-31-2003 02:31 AM
Counter Strike server - simple question Robert0380 Linux - Software 1 12-24-2002 10:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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