LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 06-03-2002, 09:56 PM   #1
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Rep: Reputation: 15
Determining sent/received bytes ?


What is the command for this ?
I'm trying netstat but it only shows the total number of packets received/sent. I need the total bytes sent/received.
Thank you.
 
Old 06-04-2002, 10:03 AM   #2
sewer_monkey
Member
 
Registered: May 2002
Location: Toronto, ON, Canada
Distribution: Ubuntu, Debian, RedHat/CentOS
Posts: 624

Rep: Reputation: 31
/sbin/ifconfig

No parameters.
 
Old 06-04-2002, 11:46 AM   #3
Stingreen
Member
 
Registered: May 2001
Location: Baltimore,MD,USA,Earth,Some Galaxy, We haven't gone that far!
Distribution: Redhat 7.3
Posts: 104

Original Poster
Rep: Reputation: 15
Ok, this shows the sent/received packets.
Does that mean, bytes, kilobytes ? neither ?


UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:290765028 errors:0 dropped:0 overruns:0 frame:0
TX packets:139832767 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
Interrupt:11 Base address:0xc000
 
Old 06-05-2002, 07:11 AM   #4
kahuna
Member
 
Registered: Jun 2002
Location: Grand Rapids, MI
Distribution: Redhat, Slackware
Posts: 78

Rep: Reputation: 15
The only way to get a byte count through ifconfig that I know of is looking at a ppp interface with it.

Packets have nothing to do with bytes or Kilobytes.
 
Old 06-05-2002, 07:30 AM   #5
Nelleh
Member
 
Registered: Apr 2002
Distribution: SuSe/Redhat
Posts: 94

Rep: Reputation: 15
the output from ifconfig would appear to include the information you are looking for on the bottom line. (RH 7.2)

UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:642300 errors:0 dropped:0 overruns:0 frame:131
TX packets:19729 errors:0 dropped:0 overruns:0 carrier:0
collisions:215
RX bytes:51957905 (49.5 Mb) TX bytes:2537068 (2.4 Mb)
 
Old 06-05-2002, 01:28 PM   #6
kahuna
Member
 
Registered: Jun 2002
Location: Grand Rapids, MI
Distribution: Redhat, Slackware
Posts: 78

Rep: Reputation: 15
Quote:
Originally posted by Nelleh
the output from ifconfig would appear to include the information you are looking for on the bottom line. (RH 7.2)

UP BROADCAST NOTRAILERS RUNNING MTU:1500 Metric:1
RX packets:642300 errors:0 dropped:0 overruns:0 frame:131
TX packets:19729 errors:0 dropped:0 overruns:0 carrier:0
collisions:215
RX bytes:51957905 (49.5 Mb) TX bytes:2537068 (2.4 Mb)
As I said, ONLY for a PPP interface! The MTU setting of 1500 gives it away.
 
Old 06-05-2002, 01:33 PM   #7
5amYan
Member
 
Registered: Apr 2002
Location: The District
Distribution: FreeBSD, OBSD maybe Gentoo and Winblech XP
Posts: 291

Rep: Reputation: 30
I have the byte count and connect via ethernet.
No modem PPP or PPPoE here
 
Old 06-06-2002, 06:57 AM   #8
kahuna
Member
 
Registered: Jun 2002
Location: Grand Rapids, MI
Distribution: Redhat, Slackware
Posts: 78

Rep: Reputation: 15
Hmm... I cant seem to get Slackware's ifconfig to give me a byte count. Maybe I will try it on my redhat box when I get home!

Sorry if I seemed like a jerk in my posts above. My perceptions were just skewed!
 
Old 06-06-2002, 07:20 AM   #9
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
also try iptables -L -v
but keep in mind that theese aren't all packets. The fragment packets don't get counted unless additional software installed
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
synaptic bytes mercutio Linux - Software 9 02-10-2006 04:51 PM
TX bytes vs. httpd bytes ovrload Linux - Networking 3 10-12-2005 04:19 PM
[C++] bytes streams Ossar Programming 1 06-17-2005 02:56 PM
How many bytes per inode? theonebeyond Linux - Newbie 2 09-24-2004 02:36 AM
1 block = ? bytes captainstorm Linux - Newbie 2 07-08-2003 10:30 AM

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

All times are GMT -5. The time now is 07:11 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
Open Source Consulting | Domain Registration