Operating System - HP-UX
1752689 Members
5165 Online
108789 Solutions
New Discussion юеВ

Re: hang:> netstat -a | grep <service_port>

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

restarting inetd didn't help - but neither did rebooting the box for that matter.. uptime 1 minute.
It works for me (tm)
U.SivaKumar_2
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

Hi,
Bill , I found out the culprit . /etc/resolv.conf

I simulated it in linux. Just move /etc/resolv.conf to /etc/res.conf for sometime . give netstat -a
all problems is gone.

I think the problem is because of unreachable name server in resolv.conf. Even a single server unreachable among say four servers may
cause this.


regards,
U.SivaKumar
Innovations are made when conventions are broken
U.SivaKumar_2
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

Hi,
Bill , Found the real culprit.
/etc/nsswitch.conf
hosts: files dns
If the above setup is there with resolv.conf
our problem persists.
Now,
/etc/nsswitch.conf
hosts: files
Now the problem disappears.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Bill McNAMARA_1
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

Okay, this is strange - it seems the problem has gone -

these are the only things I changed since the last reboot:

in /etc/hosts:
added FQDN as alias:

xx.29.144.167 test02 test02.zko.xx.com

in /etc/rc.config.d/namesvrs

NIS_CLIENT="0"


before this (after reboot) problem occurred.

So I guess Dieter get's the bunny????

Any comments?

Bill
It works for me (tm)
Dirk Wiedemann
Respected Contributor

Re: hang:> netstat -a | grep <service_port>

Hi Bill,

hmmm, don't know what's the real reason. But my suggest with FQDN couldn't be it because it works immediatly or even not. So all I can say, the bunny is not for me.
regards
Dirk
U.SivaKumar_2
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

Hi,
Can you try recreating /etc/hosts. I guess some control characters might have been included in that by mistake.

regards,
U.SivaKumar
Innovations are made when conventions are broken
Bill McNAMARA_1
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

I don't see any unprintable chars from a cat -v /etc/hosts in any case, it works, so I'm not touching it any more - I'll get a bollikin otherwise - due for training a 8:00 EST.

Later,
Bill
It works for me (tm)
Dietmar Konermann
Honored Contributor
Solution

Re: hang:> netstat -a | grep <service_port>

Bill,
to be honest, I have no real idea about the root cause. Probably the running ypbind (due to NIS_CIENT=1) caused problem? Did you check what happens if re-configure NIS_CLIENT=1?

Regards...
Dietmar.
"Logic is the beginning of wisdom; not the end." -- Spock (Star Trek VI: The Undiscovered Country)
Bill McNAMARA_1
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

I can only test this out next week, the server is operational at the mo..
I'll post back the results.

you pointed me to the correct config file in any case so I guess you should get your bunny!


Thanks,
Bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: hang:> netstat -a | grep <service_port>

Hey Dieter!
congrats on the graduate hat!
It works for me (tm)