Operating System - HP-UX
1847169 Members
6388 Online
110263 Solutions
New Discussion

HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

 
SOLVED
Go to solution
David Sutton
Occasional Contributor

HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

I have a Visualize B2000 that I have loaded HP-UX 11.0 on. I then try to load the Core OS options using swinstall. I get an error "could not contact host (hostname of my box)".

Any ideas?
7 REPLIES 7
Sundar_7
Honored Contributor

Re: HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

You need to be able to successfully resolve your hostname for SD-UX to work

If you dont use DNS, add the host entry in /etc/hosts file and configure /etc/nsswitch.conf file to use hosts

Learn What to do ,How to do and more importantly When to do ?
Prashant Zanwar_4
Respected Contributor

Re: HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

Are you able to see target as depot?
swlist -l depot .

swlist -s /cdrom

Prashant
"Intellect distinguishes between the possible and the impossible; reason distinguishes between the sensible and the senseless. Even the possible can be senseless."
David Sutton
Occasional Contributor

Re: HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

My hostname is in my hosts file.

I can ping my hostname successfully (resolve name to IP).

Software that I would like to install is in .depot format.

Robert-Jan Goossens
Honored Contributor
Solution

Re: HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

Hi David,

Check this doc.

Document description: Swinstall could not contact host
Document id: KBRC00014457

Europe
http://www4.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072805512

US
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000072805512

Regards,
Robert-Jan
John Poff
Honored Contributor

Re: HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

Hi,

Does the 'hostname' command return the correct hostname of your system? Does 'nslookup ' return the correct IP address? Does 'nslookup ' return the correct hostname?

I'm sure it sounds like these are picky questions, but swinstall is very particular about everything resolving correctly.

JP
Sundar_7
Honored Contributor

Re: HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

David,

This issue has been discussed couple of times. On 11.0, SD-UX commands are linked to libc.1 whereas most of the other binaries are linked to libc.2

From the man page of nsswitch.conf, the default name resolution behaviour of libc.1 binaries would be.

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

Do you have DNS at all ?

If yes

# vi /etc/nsswitch.conf
hosts: dns [SUCCESS=return NOTFOUND=continue UNAVAIL=continue
TRYAGAIN=continue] files
#

If you dont have DNS

# vi /etc/nsswitch.conf
hosts: files
#

Try this and you might need to restart swagentd. Now I bet it should start working :-)

- Sundar
Learn What to do ,How to do and more importantly When to do ?
David Sutton
Occasional Contributor

Re: HP-UX 11.x - B2000 - Software Depot - swinstall - "Could not contact host"

Thanks for your help everybody. I ended up asking our IT folks to enter my hostname in our DNS server.