Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 03-17-2003, 04:25 AM   #1
LQ Newbie
Registered: Aug 2002
Posts: 23

Rep: Reputation: 15
counting tool


Im looking for a tool that can count all the outgoing and incoming bytes get through my NIC. I need a summary of every hour(ie. how much data my pc send out and receive in from 1PM to 2PM) and a summary for the whole day and I also need a graph like MRTG does.

Old 03-17-2003, 04:30 AM   #2
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
/sbin/ifconfig shows incoming/outgoing bytes.

about summary of every hour..
i don't know
Old 03-17-2003, 01:09 PM   #3
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
i thought about it..
let cron execute ifconfig
and parse out tx, rx every hour
and substract it from the previous one

cheesy, but it will work..
Old 08-23-2003, 12:54 AM   #4
Senior Member
Registered: Mar 2003
Location: Burke, VA
Distribution: RHEL, Slackware, Ubuntu, Fedora
Posts: 1,418
Blog Entries: 1

Rep: Reputation: 46
How is it cheesy?

Just because it isn't a tool made specifically for that, doesn't mean you can't adapt/write a script to do the work for you and append its result to a file every hour

Displaying it in a graph would be the tough part, but even that can be done with the results from the first little project.



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
Counting Lines ej25 Programming 20 12-06-2004 02:08 PM
Three Years and Counting! trickykid General 9 01-06-2004 06:30 PM
And counting... MasterC General 18 09-24-2003 05:07 AM
counting dummyagain Programming 3 09-24-2003 02:28 AM
counting characters Snake007uk Programming 13 05-10-2002 03:34 PM > Forums > Linux Forums > Linux - Software

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