Operating System - HP-UX
1833750 Members
2371 Online
110063 Solutions
New Discussion

Re: netstat out takes time to give output

 
A.Vishwanath_2
Advisor

netstat out takes time to give output

Dear Admins,

We have HP server which is being connected by DEV from otherside of the world. As you all know when you execute the "netstat -a" command it will print IP & Socket usage information. In this regard we have "Monitoring software" which uses "netstat -a" command as one of the checks and it times out as there is a delay in "netstat" coammand. I would like to know is there anyway to decrease the time it takes to give the output.

TIA,
Regards, Vishwanath
7 REPLIES 7
Peter Godron
Honored Contributor

Re: netstat out takes time to give output

Hi,
have you tried the suggestions from:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1063501

Your profile indicates you have assigned points to only 2 of 24 responses !
Senthil Prabu.S_1
Trusted Contributor

Re: netstat out takes time to give output

Hi,
I guess the problem may be due to hostname resolution is taking more time. Check your network setting.

HTH,
Prabu.S
One man's "magic" is another man's engineering. "Supernatural" is a null word.
Coolmar
Esteemed Contributor

Re: netstat out takes time to give output

Please see the following thread:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=950648

Looks like it is a DNS issue and it was resolved by added the source IP to the /etc/hosts file.
A.Vishwanath_2
Advisor

Re: netstat out takes time to give output

Hi,

Forgot to add one point the servers IP address which are connecting remotely are from a different network domain. We don't have DNS entries configured for these IP address in our DNS Server.

Vishwanath.
Patrick Wallek
Honored Contributor

Re: netstat out takes time to give output

Perhaps you should try doing a 'netstat -an' instead. That will output just the IP addresses and not try to resolve the IP address to a name.
Peter Godron
Honored Contributor

Re: netstat out takes time to give output

Hi,
get the addresses added to your DNS!

In the meantime you could TRY whether this will work:
netstat -a = slow
netstat -an ? fast

It saves the names lookup to translate ip addresses.

If any of the suggestions were useful,please consider assigning points for the help you have been offered in this and your other threads as listed in your profile.

George Liu_4
Trusted Contributor

Re: netstat out takes time to give output

try netstat -an
which does not resolve host name