|
Home > Archive > Red Hat Networking > January 2004 > Getting the number of bytes sent out interface?
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Getting the number of bytes sent out interface?
|
|
| Matthew Hall 2004-01-23, 7:32 pm |
|
FreeBSD has this built into the netstat command,
netstat -bin -I <interface>, and then I awk it out
of the 7th field for use with Cricket.
Is there a similiar way to get the number of bytes
received/sent out of a particular interface with
RedHat linux? I poked around in /proc and found info
on total *packets* and what not, but nothing dealing
with rawsize.
Thanks,
--
It's always September somewhere on the 'net. | http://angui.sh
Another proud member of Eep's killfile. | Unix Sys. Admin.
All projects approach the ghetto, some |
faster than others. | leareth@angui.sh
| |
| Alexander Dalloz 2004-01-23, 7:32 pm |
| Bit Twister <BitTwister@localhost.localdomain> wrote:
quote:
> On Mon, 07 Jul 2003 18:08:11 -0500, Matthew Hall wrote:
>
> have you looked at output from
>
> /sbin/ifconfig
ifconfig is no good reference. It has an overrun at 2/4 GB.
Better use kernels netfilter to count the traffic. iptables -L -n -v -x
prints it out.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| Alexander Dalloz 2004-01-23, 7:32 pm |
| Matthew Hall <leareth@angui.sh> wrote:
quote:
> Alexander Dalloz <alexander.dalloz@uni-bielefeld.de> banged on his keyboard
> and said:
>
> Hm, this assumes I have a firewall up and running ... because
> I guess I have to have a chain (any chain) up in order to inspect
> it.
No, to your view of "firewall up and running". Just loading iptables
does not mean to run a firewall! Standard chains are always there, you
do not have to defines rules for that. Nothing will be blocked or
rerouted. You will just use the counter funktion which is very accurate.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| Alexander Dalloz 2004-01-23, 7:32 pm |
| Matthew Hall <leareth@angui.sh> wrote:
quote:
> Alexander Dalloz <alexander.dalloz@uni-bielefeld.de> banged on his keyboard
> and said:
>
> Hm, this assumes I have a firewall up and running ... because
> I guess I have to have a chain (any chain) up in order to inspect
> it.
No, to your view of "firewall up and running". Just loading iptables
does not mean to run a firewall! Standard chains are always there, you
do not have to defines rules for that. Nothing will be blocked or
rerouted. You will just use the counter funktion which is very accurate.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
| |
| Alexander Dalloz 2004-01-23, 7:32 pm |
| Matthew Hall <leareth@angui.sh> wrote:
quote:
> Alexander Dalloz <alexander.dalloz@uni-bielefeld.de> banged on his keyboard
> and said:
>
> Hm, this assumes I have a firewall up and running ... because
> I guess I have to have a chain (any chain) up in order to inspect
> it.
No, to your view of "firewall up and running". Just loading iptables
does not mean to run a firewall! Standard chains are always there, you
do not have to defines rules for that. Nothing will be blocked or
rerouted. You will just use the counter funktion which is very accurate.
Alexander
--
Alexander Dalloz | Enger, Germany
PGP key valid: made 13.07.1999
PGP fingerprint: 2307 88FD 2D41 038E 7416 14CD E197 6E88 ED69 5653
|
|
|
|
|