Operating System - HP-UX
1834822 Members
2194 Online
110070 Solutions
New Discussion

Could not contact host - swinstall

 
SOLVED
Go to solution
pc123_1
Frequent Advisor

Could not contact host - swinstall

Hi.
I need to check the name of a server and possibly change it.
For some reason swinstall utility won't recognize Target host servername, which was assigned during Unix setup. Even though swinstall shows correct name, it gives an error "Could not contact host ***".
Has anyone come across this problem before?
13 REPLIES 13
Pete Randall
Outstanding Contributor

Re: Could not contact host - swinstall

Sounds like a name resolution problem. You might want to search the forums on +swinstall +name and see what you find.

Pete

Pete
Helen French
Honored Contributor

Re: Could not contact host - swinstall

If I understood correctly:

1) Check the server name with 'uname -a' command.

2) Change server name with set_parms or SAM

3) If you get the error while invoking swinstall, then check the permissions. check permission of /etc/hosts file and make it readable to all.
Life is a promise, fulfill it!
James R. Ferguson
Acclaimed Contributor

Re: Could not contact host - swinstall

Hi:

'swinstall' is downright fussy about the network. Try restarting the 'swagentd' daemon:

# /usr/sbin/swagentd -r

Regards!

...JRF...
Sanjay_6
Honored Contributor

Re: Could not contact host - swinstall

Hi,

Do a "nslookup" and see if the system is able to resolve its name correctly,

nslookup
> system_name
> systemn_ip_address

try restaring swagentd,

/usr/sbin/swagentd -r

Hope this helps.

Regds
pc123_1
Frequent Advisor

Re: Could not contact host - swinstall

Have restarted swagent, still no luck. Will try changing the name...
MANOJ SRIVASTAVA
Honored Contributor

Re: Could not contact host - swinstall

Hi PC123


do a nslookup < local hostname > and check whterh it resolves correctly or not . If not then either correct it in the DNS or jsut rename the /etc/resolv.conf ( assuming it is correct in /etc/hosts) , again do a nslookup < local host name > and it should ersolve correclty . After that you will ahve to restart the swagent after killing it .

ps -aef | grep swagent

kill -9 pid

/usr/sbin/swagentd -r


Manoj Srivastava
pc123_1
Frequent Advisor

Re: Could not contact host - swinstall

nslookup cannot resolve host name. Could it be because of domain name in /etc/resolv.conf ?
Martin Johnson
Honored Contributor

Re: Could not contact host - swinstall

It looks like your server has not been defined in DNS. Make sure it is defined in /etc/hosts, then modify /etc/resolv.conf to check files first.

HTH
Marty
pc123_1
Frequent Advisor

Re: Could not contact host - swinstall

I've checked /etc/hosts.
There's an entry for the server. resolv.conf has domain and nameserver entries, so they could cause problems, since nameserver is actually an ISP DNS. So do I have to comment them out?
MANOJ SRIVASTAVA
Honored Contributor
Solution

Re: Could not contact host - swinstall

Yes PC123


Please do like this


rename /etc/resolv.conf to abc.conf

then again do a nslookup < local hostname >

it should resolve it using /etc/hosts if set correctly there

then stop and restart the swagent and you ar good to go.


Manoj Srivastava
George Abraham_1
Regular Advisor

Re: Could not contact host - swinstall

hai

i faced this problem once... stop and restart the swagend... this should make you feel good...

happy installing
george
keep smiling
Hakan Eren
Occasional Advisor

Re: Could not contact host - swinstall

in nsswitch.conf file place files first in hosts line. it should like be this:
hosts: files dns ...

also do this if it is already so
in /etc/hosts file a line should read like this:
ip-address your machine name
hi