1829404 Members
1494 Online
109991 Solutions
New Discussion

swinstall fails

 
Dan Copeland_1
Advisor

swinstall fails

I get the following message while running swinstall interactively, setting the root path to /:

Could not contact host xxxxxxxx. Make sure the hostname is correct and an absolute pathname is specified (beginning with "/").

Where is it looking for the hostname? /etc/hosts is correct and I have the correct hosts entered.

Any suggestions?

tia,
dan

10 REPLIES 10
someone_4
Honored Contributor

Re: swinstall fails

Hello
if you are sure that your ect host is right. And that the hostname or the ip is not there twice
try restarting the the swinstall agent.
#swagentd -r
then do swinstall with -s option and the full path
#swinstall -s /path/of/your.depot

Richard
G.Kumar
Frequent Advisor

Re: swinstall fails

Hi;

Check for /etc/nsswitch.conf is searching order.Make files firs for hosts.
Next Try
Stop and start /sbin/init.d/swagentd

Thanks

GK
Sanjay_6
Honored Contributor

Re: swinstall fails

Hi Dan,

Look for the hosts entry in your /etc/nsswitch.conf file. Seems like swinstall is not able to resolve the host name.

your /etc/nsswitch.conf file should have an entry like

hosts files dns

or

hosts dns notfound=continue] files

If you are using NIS and not using DNS make the changes accordingly.

Have a look at this thread for more info

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/9-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/9-toc.html&searchterms=nsswitch.conf&queryid=20010917-112043

hope this helps.

thanks
Jon Mattatall
Esteemed Contributor

Re: swinstall fails

Just a quick thought....

I tend to use the IP rather than hostname- can you connect that way?

Jon
A little knowledge is dangerous - none is absolutely terrifying!!!
Celso Medina Kern
Trusted Contributor

Re: swinstall fails

Could not contact host xxxxxxxx. Make sure the hostname is correct and an absolute pathname is specified (beginning with "/").

Hello,

Look for how system is resolving names, run:
# nslookup `hostname`
If it is /etc/hosts, and it IS consistent with command hostname output, restart your swagentd and the problem should go away. Other problems can come from your network configuration. Test from this system if you are able to telnet to itself.

Good look.
God bless pessimists, they did the backup!
Antonio Rodriguez
New Member

Re: swinstall fails

check the comand "hostname" if it returns xxxxxx, use "hostname real-name" and it should work now.
Christopher McCray_1
Honored Contributor

Re: swinstall fails

In addition to what everyone else has said, can you ping successfully other servers on your network? swinstall will also fail if your network has issues, for example, if you default gateway/subnetmask isn't defined or accessible to your system. do a netstat -rn and look for your default gateway (usually at bottom). run route add default 1 if not.

Good luck,
Chris
It wasn't me!!!!
Carlos Fernandez Riera
Honored Contributor

Re: swinstall fails

I know that many people will say this is a silly.

edit /etc/hosts on put localhost line the first after header file comments.

Next line must be IP for you host:

#/etc/host
#.....
.
.
.
#

127.0.0.1 locahost
xxx.xxx.xxx.xxx servername


unsupported
Sanjay_6
Honored Contributor

Re: swinstall fails

Hi,

see if your system is able to resolve the system name and ip address properly. use nslookup

nslookup
> Server_name
> Server_ip_add

If the replies to these are okay, then your system is able to resolve the name and ip address correctly.

If not you may have to edit /etc/resolv.conf and /etc/nsswitch.conf to adjust their settings.

Have a look at these threads

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/28-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/28-toc.html&searchterms=resolver&queryid=20010918-133629

http://docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90147/B2355-90147_top.html&con=/hpux/onlinedocs/B2355-90147/00/00/9-con.html&toc=/hpux/onlinedocs/B2355-90147/00/00/9-toc.html&searchterms=nsswitch.conf&queryid=20010918-133702

Hope this helps.

thanks
Varghese Mathew
Trusted Contributor

Re: swinstall fails

Hi Dan,

Its a known issue, what you have to do is simply restart your swagentd daemon.

First kill the swagentd daemon /usr/sbin using the command
#/usr/sbin/swagentd -k

Then run the daemon by using
#/usr/sbin/swagentd

Before starting the daemon back, please ensure that all your swagent or swinstall processes are stopped.
Hope this helps ..
Cheers !!!
Mathew

Cheers !!!