Re: Simple Network Traffic script

2004-11-12 Thread Josh Paetzel
On Friday 12 November 2004 20:56, Tim Traver wrote:
 Hi all,

 ok, this may be a dumb question, but does anyone know where I can
 find a simple script that shows the network traffic to and from
 your local box ?

 using netstat -i 5,  can see the traffic over 5 seconds, but then I
 need to do a bunch of calculations to try and get a reasonable
 number.

 I looked at ntop, but couldn't get it to work...

 there must be a simpler way...

 Thanks,

 Tim.

Well, there's mrtg in the ports tree, it may or not fit your 
definition of simple.

-- 
Thanks,

Josh Paetzel
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simple Network Traffic script

2004-11-12 Thread Tim Traver
mrtg is to collect and graph statistics from local and remote hosts...we 
use it for network info on switches, etc. Which means that I can 
ultimately get that info if I go find the switch port its on, and jump 
through some other hoops.

I just want a command line script that shows me how much bandwidth is 
being sent and received in the last x seconds...

Kind of like top for network bandwidth.
it can't be that hard...
t
Josh Paetzel wrote:
On Friday 12 November 2004 20:56, Tim Traver wrote:
 

Hi all,
ok, this may be a dumb question, but does anyone know where I can
find a simple script that shows the network traffic to and from
your local box ?
using netstat -i 5,  can see the traffic over 5 seconds, but then I
need to do a bunch of calculations to try and get a reasonable
number.
I looked at ntop, but couldn't get it to work...
there must be a simpler way...
Thanks,
Tim.
   

Well, there's mrtg in the ports tree, it may or not fit your 
definition of simple.

 

___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RE: Simple Network Traffic script

2004-11-12 Thread Michael Clark
 
 Hi all,
 
 ok, this may be a dumb question, but does anyone know where I 
 can find a 
 simple script that shows the network traffic to and from your 
 local box ?
 
 using netstat -i 5,  can see the traffic over 5 seconds, but 
 then I need 
 to do a bunch of calculations to try and get a reasonable number.
 
 I looked at ntop, but couldn't get it to work...
 
 there must be a simpler way...
 
 Thanks,
 
 Tim.

Iftop and trafshow are also in ports.  Both work well.

Michael Clark
Nemschoff Chairs Inc
mclark at nemschoff dot com
CompTIA A+, Network+, Server+, MCP
Voice: (920) 457 7726 x294
Fax:  (920) 453 6594


CONFIDENTIALITY NOTE: This electronic transmission, including all
attachments, is directed in confidence solely to the person(s) to whom it is
addressed, or an authorized recipient, and may not otherwise be distributed,
copied or disclosed. The contents of the transmission may also be subject to
intellectual property rights and all such rights are expressly claimed and
are not waived. If you have received this transmission in error, please
notify the sender immediately by return electronic transmission and then
immediately delete this transmission, including all attachments, without
copying, distributing or disclosing same. 


___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simple Network Traffic script

2004-11-12 Thread Aaron Nichols
On Fri, 12 Nov 2004 12:56:57 -0800, Tim Traver [EMAIL PROTECTED] wrote:
 Hi all,
 
 ok, this may be a dumb question, but does anyone know where I can find a
 simple script that shows the network traffic to and from your local box ?
snip
 there must be a simpler way...

If you are running 5.3-RELEASE there is systat

# systat -ifstat

systat exists in 4.x releases but I don't believe it has the -ifstat
option. It's only realtime - if you want long-term logging I would
suggest either mrtg or better, cacti + rrdtool which is much easier
(IMO) to setup (www.raxnet.net) and gives you the flexibility to
monitor just about anything.

Aaron
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simple Network Traffic script

2004-11-12 Thread Dan Nelson
In the last episode (Nov 12), Tim Traver said:
 ok, this may be a dumb question, but does anyone know where I can
 find a simple script that shows the network traffic to and from your
 local box ?
 
 using netstat -i 5,  can see the traffic over 5 seconds, but then I
 need to do a bunch of calculations to try and get a reasonable
 number.

If you're not looking for traffic counts over 5-second periods, what
exactly are you looking for?  trafshow is nice for quickly determining
who is eating your bandwidth, if that's your intent.

-- 
Dan Nelson
[EMAIL PROTECTED]
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: Simple Network Traffic script

2004-11-12 Thread Josh Paetzel
On Friday 12 November 2004 21:40, Aaron Nichols wrote:
 On Fri, 12 Nov 2004 12:56:57 -0800, Tim Traver 
[EMAIL PROTECTED] wrote:
  Hi all,
 
  ok, this may be a dumb question, but does anyone know where I can
  find a simple script that shows the network traffic to and from
  your local box ?

 snip

  there must be a simpler way...

 If you are running 5.3-RELEASE there is systat

 # systat -ifstat

Just for kicks I took a look at systat and noticed something 
interesting.  It appears to be able to show the load on 
multiprocessor systems as a per-CPU value
 Load Average

/0   /10  /20  /30  /40  /50  /60  /70  /80  /90  /100
root idle: cpu0  
root idle: cpu1 

-- 
Thanks,

Josh Paetzel
___
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]