[SATLUG] netstat help

Bruce Dubbs bruce.dubbs at gmail.com
Fri Jan 11 11:08:45 CST 2008


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?

Try using the -n (numeric) option to see if the delay is due to dns lookups.

  -- Bruce


More information about the SATLUG mailing list