[SATLUG] netstat help

Al Castanoli afcasta at satx.rr.com
Sat Jan 12 13:30:44 CST 2008

On Fri, 2008-01-11 at 16:53 +0000, Kase Saylor wrote:
> Are there any nestat gurus on the list? We use 'netstat -g' a lot for 
> verifying subscription to multicast groups, but we find that if we have 
> a gateway defined in /etc/network/interfaces that the response from 
> netstat is very slow (a few second per line returned). I've looked at 
> the source and it seems that the '-g' option tells netstat to get info 
> from /proc/net/igmp and I can 'cat' that file with no delays, so I 
> assume that maybe the network libraries that netstat uses must do 
> something "behind the scenes" when functions from the library are used. 
> Anyhow, does anyone know what causes the slow response?

I use:
# netstat -nr
a lot, setting up secondary NICs and routing traffic to different
networks.  I never tried out the fancy gui tools, but have been
using netstat, route, and ifconfig to set up networking for years.

Al Castanoli
Computers save time like kudzu prevents soil erosion.

More information about the SATLUG mailing list