LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-12-2006, 06:11 PM   #1
NixMaster
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Rep: Reputation: 0
Program for traffic?


I'm creating a php script that will run via crontab on 70+ machines. This script will collect all information about the machine and post to a database. My question is what is the most accurate and efficent way to collect traffic usage information.

I'm looking to get RX & TX in a single format (bytes, mbits, etc) (Must be live information, or an average over 10 minutes (just like 'sar' or sysstat, whatever you want to call it).

Any help on this would be great. I'm not really looking for a script, just a program or the command that has simple outputs.

Thanks.

Last edited by NixMaster; 09-12-2006 at 06:13 PM.
 
Old 09-13-2006, 08:12 AM   #2
hcccc
LQ Newbie
 
Registered: Sep 2006
Posts: 12

Rep: Reputation: 0
Does tcpdump work for you.
 
Old 09-13-2006, 12:58 PM   #3
NixMaster
LQ Newbie
 
Registered: Jun 2006
Posts: 4

Original Poster
Rep: Reputation: 0
Yes tcp dump does work but this doesnt give me much information except for packet information. I need actual usages posted, not packets.

Ideal output would be like sar (sysstat)

Time Inbound Outbound Total
8:30:01 120 873 993


something like that would be great
 
  


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
Any Network Traffic Analysis Program for LINUX? seow_ming Linux - Software 6 12-25-2012 08:04 AM
Traffic shaping (limiting outgoing bandwidth of all TCP-traffic except FTP/HTTP) ffkodd Linux - Networking 3 10-25-2008 01:09 AM
how to find http traffic and mail traffic alone? basbosco Linux - General 1 06-07-2005 11:29 PM
Limiting traffic of a program. fredgt Linux - Networking 1 04-09-2004 09:35 AM
Wireless traffic stomps isdn traffic on gateway machine Radix999 Linux - Wireless Networking 0 11-14-2003 01:54 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:28 AM.

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