Operating System - HP-UX
1838407 Members
3330 Online
110125 Solutions
New Discussion

Re: Problem using swinstall on HPUX 11.0

 
Chris Bidwell
Advisor

Problem using swinstall on HPUX 11.0

I'm attempting to install a program, after going through swinstall, it is constantly telling me that the host can not be reached, make sure hostname is correct. I know the host is correct, I can ping the host with 0% packet loss. Don't know if I need to reconfigure my network as a fresh start or what. But could someone please assist me in this. Thanks.
For every action there is an equal or opposite reaction!
13 REPLIES 13
Joseph C. Denman
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

Try restart swagentd.

cd /sbin/init.d
./swagentd stop
./swagentd start

That will probably fix your problem.

...jcd...
If I had only read the instructions first??
David Navarro
Respected Contributor

Re: Problem using swinstall on HPUX 11.0

Hi,

Try swagentd -r.
If this doesn't works verify if you can ping to your own machine using hostname.
Chris Bidwell
Advisor

Re: Problem using swinstall on HPUX 11.0

Please forgive me as I'm still new to this. I did as described and it still will not allow me to run swinstall. Could you please tell me how to run the network configuration as if from a fresh install? Thanks.
For every action there is an equal or opposite reaction!
MANOJ SRIVASTAVA
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

Hi Christopher

Try this

1. uname -a.
2. Incase you have a resolv.conf in /etc please rename it and run the install again.
3.Also please check enteries for the host in /etc/hosts and try to login using rlogin in case you can then ther sgould be no problem .

Manoj Srivastava
Praveen Bezawada
Respected Contributor

Re: Problem using swinstall on HPUX 11.0

Hi
Check the permissions of /etc/hosts,/etc/resolv.conf and /etc/nsswitch.conf. It should be minimum 444.

..BPK...
melvyn burnard
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

I think you are looking for the command /etc/set_parms

This will do the changes you wish. For more info do set_parms -?

HTH
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Sachin Patel
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

Hi Christopher,
I am assuming that you have install new OS and trying to run Swinstall on that new system.

change your /etc/hosts file
127.0.0.1 hostname loopback

move your /etc/resolv.conf file to /etc/resolv.conf.old

If you have named running stop it.

run swinstall it should work.

Sachin

Is photography a hobby or another way to spend $
Chris Bidwell
Advisor

Re: Problem using swinstall on HPUX 11.0

I think I may have figured the problem out but I'm unsure as to how to remedy the situation. in the /etc directory, I don't have the resolv.conf file.
For every action there is an equal or opposite reaction!
linuxfan
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

Hi Christopher,

Earlier on you said you could ping the host ( were you pinging the IP address or the hostname(FQDN?)) ??

Anyway /etc/resolv.conf is the resolver configuration file, which is consulted when using DNS. You can lookup the mange for resolv.conf.

The entries can have
1. domainname subdomain.company.com
(here you are basically giving your domain name)
1b. search subdomain1.company.com subdomain2.company.com
(here instead of defining your domainname, you are giving the search order of the different domains the machine may belong to)

2. nameserver xxx.xxx.xxx.xxx
nameserver xxx.xxx.xxx.xxx
(here you are defining your DNS name servers, you can define upto 3 nameservers)

HTH
-I am RU
They think they know but don't. At least I know I don't know - Socrates
linuxfan
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

Hi,

Are you trying to install software/patch from a different machine?

Not sure if you already looked at this, but to get more information about how SD-UX works on HP, you might want to look at
http://docs.hp.com/hpux/pdf/B2355-90154.pdf

-HTH
I am RU
They think they know but don't. At least I know I don't know - Socrates
Chris Bidwell
Advisor

Re: Problem using swinstall on HPUX 11.0

Well, I'm not using DNS as I don't have a DNS server to set up. All the I'm attempting to do is install a driver for an IBM printer. The command I'm typing is
swinstall -s /ibmnp/IBMnp IBMnp and it says could not contact host. # swinstall -s /ibmnp/IBMnp IBMnp

======= 08/10/01 11:13:56 MDT BEGIN swinstall SESSION
(non-interactive)

* Session started for user "root@hpux".

* Beginning Selection
ERROR: Could not contact host "hpux". Make sure the hostname is
correct.
* Target connection failed for "hpux:/".
ERROR: More information may be found in the daemon logfile on this
target (default location is hpux:/var/adm/sw/swagentd.log).
* Selection had errors.



======= 08/10/01 11:13:56 MDT END swinstall SESSION (non-interactive)
For every action there is an equal or opposite reaction!
linuxfan
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

Hi Chris,

The error you are getting almost always means that the name resolution is happening correctly. Make sure you can resolve your hostname using nslookup. Also check your /etc/nsswitch.conf file.

-Regards
I am RU
They think they know but don't. At least I know I don't know - Socrates
Sachin Patel
Honored Contributor

Re: Problem using swinstall on HPUX 11.0

Hi Chris,
Don't panic.
I had excetly same error today morning.on my new system called c3po.

Change your /etc/hosts file as I mention before
and run swinstall -s /????

/etc/hosts file should look like this
127.0.0.1 c3po loopback
original_IP c3po

It will work

Sachin
Is photography a hobby or another way to spend $