1833768 Members
1803 Online
110063 Solutions
New Discussion

Re: netstat -i slow

 
Luk Vandenbussche
Honored Contributor

netstat -i slow

The result op netstat -i takes about 30 seconds? It is a server running hpux 11.00 with MC/Serviceguard A.11.12.



1. /usr/bin/netstat:
netstat.h 8.1
PHNE_17434 netstat.c $Revision: @@/main/r11ros/8$
netstat.c 9.1
NET: Version: B.11.00 $Date: 97/10/15 10:44:23 $
netstat.h 8.1
osstat.c 6.9
netstat.h 8.1
PHNE_17434 osstat.c $Revision: @@/main/r11ros/7$
osstat.c 6.9
vmmap.o $Revision: 82.2 $


2. etc/nsswitch.conf
hosts: files dns

3. /etc/resolv.conf

domain united.vicindo.be
nameserver 10.163.225.12
nameserver 192.168.1.21

4. I added the following enrty to /etc/hosts

0.0.0.0 all-zeros-broadcast


6 REPLIES 6
Bharat Katkar
Honored Contributor

Re: netstat -i slow

Hi,
Just check whether the NIC parameters are configured properly...
Regards,
You need to know a lot to actually know how little you know
RAC_1
Honored Contributor

Re: netstat -i slow

Apart from checking the patches for netstat, did you check the network utilization??

If you have glance, start it. (glance -l)
I am not sure about the entry about broadcast in /etc/hosts. Is it really required or not?? I dont have one and it does'nt need to be there.

Anil
There is no substitute to HARDWORK
Luk Vandenbussche
Honored Contributor

Re: netstat -i slow

Everything is configured 100FD Autoneg off.
NIC and switch port have the same settings.
Muthukumar_5
Honored Contributor

Re: netstat -i slow

netstat -i will display the output that ip-address resolved hostname's in result.

Are you having all entries of IP-Address in /etc/hosts file there?

Else, problem may be with /etc/resolv.conf file there. Try to rearrange as,

domain united.vicindo.be
nameserver 192.168.1.21
nameserver 10.163.225.12

and try there.

There is a possibility network slow there for operation.

Can you say for this,

time netstat -in
time netstat -i

there.
Easy to suggest when don't know about the problem!
rick jones
Honored Contributor

Re: netstat -i slow

are all your local IPs in the /etc/hosts file? if not, then delays or retransmissions to your DNS servers may be the culprit. you could try tusc'ing the netstat command - include timestamps and make it verbose, then look for the creation of the "DGRAM" socket and the timestamps on system calls with that file descriptor.

pinging the DNS servers to make sure they are "there" is a good thing too.
there is no rest for the wicked yet the virtuous have no pillows
Luk Vandenbussche
Honored Contributor

Re: netstat -i slow

We wrote another script to solve our problem