Unix Technical Forum

netstat

This is a discussion on netstat within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> Hello everybody we have a SlackBox without tcpdump. We want to check every hour ho the box is working ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-19-2008, 06:47 PM
trenteldon
 
Posts: n/a
Default netstat

Hello everybody
we have a SlackBox without tcpdump. We want to check every hour ho
the box is working with an Oracle DB (TCP connection on prt 1521). S
every hour we do a 'netstat -an|grep 1521|grep ESTABLISHED'. But w
would like to collect other statistics such as the number of packet
gone through that machine. We don't have tcpdump nor iptables. Is i
possible to extract information about the packets gone through tha
box from/to the port 1521 with netstat or other tools
Thanks a million

Valerio Daell

Message posted via
====================
www.linuxpackages.net/foru
www.linuxpackages.ne
Expanding the world of Slackwar
=====================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-19-2008, 06:49 PM
Jeremiah DeWitt Weiner
 
Posts: n/a
Default Re: netstat

trenteldon <eldontrent@tiscali-dot-it.no-spam.invalid> wrote:
> But we
> would like to collect other statistics such as the number of packets
> gone through that machine. We don't have tcpdump nor iptables. Is it
> possible to extract information about the packets gone through that
> box from/to the port 1521 with netstat or other tools?


Total packets through an interface can be found with ifconfig. For
a particular port, the only thing I can think of offhand is ntop. ntop
seems kind of heavyweight if that's the only information you want, but
it would work. See http://www.ntop.org.

JDW

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-19-2008, 06:51 PM
Maarten
 
Posts: n/a
Default Re: netstat

Jeremiah DeWitt Weiner wrote in news:crk0ki$a3g$1@reader1.panix.com:

> Total packets through an interface can be found with ifconfig. For
> a particular port, the only thing I can think of offhand is ntop. ntop
> seems kind of heavyweight if that's the only information you want, but
> it would work. See http://www.ntop.org.
>
> JDW
>
>


Thnx for the tip on ntop. Great tool, but i found it to be heavy demanding
on sytem mem. Are there any more tools out there that generate nice html
output but are much less demanding to the system ?

Thnx in advance.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-19-2008, 06:52 PM
exlt
 
Posts: n/a
Default Re: netstat

Maarten wrote:
> Thnx for the tip on ntop. Great tool, but i found it to be heavy demanding
> on sytem mem. Are there any more tools out there that generate nice html
> output but are much less demanding to the system ?


I like vnstat - runs as a normal user from cron, as often as you want -
http://humdi.net/vnstat/ - you could periodically dump the output of a
query in a site directory - they have output examples on the page.

Kind Regards,
Michael
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-19-2008, 06:52 PM
Maarten
 
Posts: n/a
Default Re: netstat

exlt wrote in news:SmcEd.12889$by5.9166@newssvr19.news.prodigy.c om:

>
> I like vnstat - runs as a normal user from cron, as often as you want
> - http://humdi.net/vnstat/ - you could periodically dump the output of
> a query in a site directory - they have output examples on the page.
>
> Kind Regards,
> Michael
>


Thank you very much, vnstat looks good.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:48 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com