1834087 Members
2735 Online
110063 Solutions
New Discussion

Re: SWINSTALL ERROR

 
SOLVED
Go to solution
Pinki Meggi
Frequent Advisor

SWINSTALL ERROR

Hello all,

I am working on a HP-UX 11.11, and when i run swinstall there is an error:

ERROR: Could not contact host "jupiter.isctem.ac.mz". Make sure the hostname is correct and an obsolete pathname is specified (beginning with "/").

We have a dns server and initially the swinstall was running successfully, but at this moment the server is down, can this error caused due the dns server?

If yes, what i have to do to run the swinstall without the dns server?

Can anyone help me please; I am new in this environment


Regards

Pinki
6 REPLIES 6
melvyn burnard
Honored Contributor

Re: SWINSTALL ERROR

Yes, if teh DNS is down and you cannot resolve your hostname then this can happen.
verify it is correct in /etc/hosts, and move /etc/resolv.conf out of the way, e.g.:
mv /etc/resolv.conf /etc/resolve.conf
then try to use nslookup to make sure it resolves correctly.

This is one of the reasons it is recommended to have essential addresses set correctly in /etc/hosts and have /etc/nsswitch.conf point at files first and THEN to use DNS.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Robert-Jan Goossens_1
Honored Contributor

Re: SWINSTALL ERROR

Hi,

Check your /etc/nsswitch.conf file

hosts: files dns

add you local host name + ip (jupiter.isctem.ac.mz) to your /etc/hosts file

xxx.x.x.xxx jupiter jupiter.iscmtem.ac.mz
127.0.0.1 localhost loopback

# swagentd -r

and try the swinstall again.

Regards,
Robert-Jan
HGN
Honored Contributor

Re: SWINSTALL ERROR

Hi

You need to check
/etc/nsswitch.conf should be hosts:files dns or other way
/etc/hosts add the server here if it is not in the dns
/etc/resolv.conf may have some issues which needs to be checked like if it can ping the dns server.

Rgds

HGN
asif munir
Advisor
Solution

Re: SWINSTALL ERROR

Hi,

As HGN has mentioned check and see your /etc/nsswitch.conf this is the file which tells the system the search order for resolution, you should have something like the following, "hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]" This tells the system to use the local host file for resolution and then the dns.

I have faced this problem before and have resolved it this way. If you have the dns before the files in the nsswitch.conf file and the dns server cannot be contacted then you will have the type of situation you are mentioning.
Pinki Meggi
Frequent Advisor

Re: SWINSTALL ERROR

Hi,

Thanks to replies

i have solved the problem creating the file /etc/nsswitch.conf with the following information:

hosts: files [NOTFOUND=continue UNAVAIL=continue] dns [NOTFOUND=return UNAVAIL=continue TRYAGAIN=return]

Then i have restarted the swagentd
swagentd -r

And finnaly the swinstall, swlist, swverify all run correctly.

Thank you very much for your kindly help.

Regards

Pinki



Pinki Meggi
Frequent Advisor

Re: SWINSTALL ERROR

im closing the thread

thanks once again

Regards

Pinki