Operating System - HP-UX
1771005 Members
2807 Online
109003 Solutions
New Discussion юеВ

netstat command hangs on HP-UX 11.00

 
Donald Smith_6
New Member

netstat command hangs on HP-UX 11.00

I am having a problem. One of our applications checks to see if a previous
incarnation is still using a port on the current machine using netstat. If it
is still in use, the program loops, checking for the port in netstat prior to
returning. Unfortunately, when we moved this application from HP-UX 10.20 to
11.00, the netstat command now hangs. Since it fails to return, our application
never starts. Can anyone either 1) tell me how to fix this, or at least if
they've experienced it as well, or 2) identify another command that will let me
check to see if a port is available?

Thanks in advance.
Ciao!
Don
3 REPLIES 3
user not active
Frequent Advisor

Re: netstat command hangs on HP-UX 11.00

I am having a problem with netstat -a hanging, but netstat -an doesn't.
Looking up names with nslookup works fine. The problem only occurs on our
HP-UX 11.0 boxes; it doesn't occur on our
10.20 boxes. Is this the problem ?

What is causing this problem?

Configuration Info

Operating System - HP-UX
Version - 11.0
Hardware System - HP9000
Series - K-series

Solution

rfc1122 defines the all-zeros-broadcast for 0.0.0.0 to be able to ping all
hosts within a subnet. 11.0 is compliant with the rfc.

Solve the problem by preventing the server from continuing to lookup 0.0.0.0 by
defining it in /etc/hosts or namespace in DNS.
Randy Mather
Frequent Advisor

Re: netstat command hangs on HP-UX 11.00

rfc1122 defines the all-zeros-broadcast for 0.0.0.0 to be able to ping all
hosts within a subnet. 11.0 is compliant with the rfc.


Your other option is to turn OFF the broadcast of the address in the kernel.
You have to remember to do this everytime the kernel is rebuilt, but not
rebootrd.

/usr/bin/ndd -set /dev/ip ip_check_subnet_addr 0

You can also have this run as a startup script
Chris Anoruo_1
Frequent Advisor

Re: netstat command hangs on HP-UX 11.00

Add the following lines in your /etc/hosts file

0.0.0.0 anyhost
127.0.0.1 localhost

if both are not there.

regards