ifconfig script for monitoring eth0

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
phriday613
Posts: 32
Joined: Thu Aug 15, 2002 10:29 am
Location: ct
Contact:

ifconfig script for monitoring eth0

Post by phriday613 »

ok.. what exactically is involved/needed from eth0 to plot bytes in/out?

it looks like ifconfig accumulates the TX and RX bytes, so how can i use ifconfig to make a script that can output what is needed like everyone elses "Traffic Analysis"

I cant get SNMP to work, so until then, i have to use perl and shell scripts :P

Thanks! :)
yid
Cacti User
Posts: 83
Joined: Sat Apr 20, 2002 8:26 pm

Post by yid »

What OS(s)? If you're using Sun you can use kstat, on *BSD/Linux I would parse netstat output.
phriday613
Posts: 32
Joined: Thu Aug 15, 2002 10:29 am
Location: ct
Contact:

Post by phriday613 »

linux.. i dont know exactically what gets parsed from netstat? and why netstat??

should it come from ifconfig?

ifconfig -a | grep "TX"

right??
Post Reply

Who is online

Users browsing this forum: No registered users and 9 guests