Operating System - HP-UX
1833733 Members
2526 Online
110063 Solutions
New Discussion

swinstall failure & backout (10.20)

 

swinstall failure & backout (10.20)

What is the proper way to correct/fix the problem of a HP Patch or P.D.
Software that fails to install. This failure leaves an entry which is seen
using the swlist command even though it never installed. "swremove" refuses to
remove it since it fails analysis there also.

Reason for killing process:
It never got beyond the "preinstall" phase of install analysis. Had to be
killed for running too long and nothing happening. No errors are seen in the
analysis logs. Unable to find the process holding up the install.
Thank You
Rich


3 REPLIES 3
Neil Gast_1
Frequent Advisor

Re: swinstall failure & backout (10.20)

If the product was installed but not properly configured, you'll be able to see
that with the following command:
swlist -l fileset -a state
The product will show either "installed" or "configured". If it shows just
"installed," you'll need to run swconfig to manually configure it, like so:
swconfig

If all else fails, you'll need to hack the directory structure under the
/var/adm/sw directory to "manually" remove the product, then rebuild the main
sd INDEX file, but this absolutely a last resort, and not recommended for the
weak-hearted.

MrNeil
Alan Riggs_1
Regular Advisor

Re: swinstall failure & backout (10.20)

If I understand properly, what you really want to be able to do is install the
product fully. The way to do this is to set the reinstall and reinstall_files
flags to true. This can be done from the command line or through an
interactive session.

Of course, this only helps if you can overcome the swinstall hang you
experienced the first time. Two things you may want to look at are measure and
your swinstall defaults. Measure can definitely interfere with swinstall.
Before any installation you should issue "mwa stop". Restart measurewear after
the installation with "mwa stop" (/opt/perf/bin/mwa if you require the full
path). I have also had installations hang with the out-of-the-box
/var/adm/sw/defaults file. I usually edit this with:

swinstall.rpc_binding_info = ncacn_ip_tcp:[2121] ncadg_ip_udp:[2121]
swinstall.rpc_timeout = 5
swinstall.retry_rpc = 9
swinstall.agent_timeout_minutes = 5
swinstall.polling_interval = 60

You may want to play with these values.

Re: swinstall failure & backout (10.20)

Neal,
I tried your suggestion & got a 'transient' state which verified that the
software didn't install. Good way to check that I never thought of. I do it
the hard way with examining the logs and /tmp location.
Anyhow, looked around for the main sd INDEX file. Looked in /var/adm/sw and
related spots. What's the name of the main Index file?? I could have missed it
somehow.

I seen a note from Alan Riggs here on mwa. Dang, I didn't know that it would
interfer with swinstall. Never thought of that one. Maybe HP would be good
enough to put a WARNING out. Don't install using swinstall while using the
Measureware Product.

I do have a problem with one other machine from quite awhile ago with an
aborted install so the name/location of the INDEX file helps.
Thanks both of you guys..
Rich