Operating System - HP-UX
1833048 Members
2419 Online
110049 Solutions
New Discussion

swinstall problems and swlist

 
Erik Voelker_3
Contributor

swinstall problems and swlist

When looking at the output of a swlist command, are the products listed
configured correctly as well as just installed? Basically, I had a swinstall
session hang on me while installing patches... I gave the install process
plenty of time to finish in the event it was just a case of a lost acl
connection to my PC controller (see
http://us-support.external.hp.com/cki/bin/doc.pl/sid=e02be1c00c2a11599b/screen=c
kiDisplayDocument?docId=200000046328684). Eventually I had to kill the
swinstall process' but the patches I was installing at the time show up in the
swlist output without errors. So, are the patches I installed configured
properly? Is there another way to verify? Or should I always deinstall then
reinstall everything when the swinstall session hangs?

Thanks
Erik Voelker
evoelker@giv.com
4 REPLIES 4
Dan Hull
Regular Advisor

Re: swinstall problems and swlist

When an swinstall of patches hangs and ends up being killed, do not swremove
it! Reinstall it instead, using the reinstall options. If only part of the
patch was installed and you remove it, swremove could end up deleting the wrong
filesets.

To tell if a fileset is "configured" instead of just "installed", use this
command:

# swlist -l fileset -a state | more

To the right of each entry will be either a blank space or a word. The state
you want is "configured". Other possible states are "installed", "transient",
and "corrupt". If something is installed, use swconfig to configure it.
Transient and Corrupt filesets usually need to be reinstalled.

If you are having problems with swinstall hanging and you have access to the
Electronic Support Center, see the online document A4837047.
Alan Riggs_1
Regular Advisor

Re: swinstall problems and swlist

Erik,
You may want to check out the swinstall failure & backout thread from a
couple of days ago. It contains information you may find helpful. Short
answer:
swlist -l fileset -a state
will show you the status of all registered filesets. "Configured" means
successfully and cpompletely installed.

Re: swinstall problems and swlist

Eric,
In addition to the swlist mentioned (& I tried as suggested by the other
guys). I normally use swverify which gives you more information than just
swlist etc. If it's the output is 'Transient' and you are welcome to the
manual remove and rebuild the main sd INDEX file as Neil Gast suggested.

If you look at HP's white paper on 'patches' included with 10.20. You'll see
you can override & reinstall a patch for example. Tape backup first. I'm
leaning towards Neil's suggestion since I got all this aCC & libraries
affected. I hate to force it and get a worse mess.

No one way is absolute. The more you check with the better you feel. Heck I
even check the /tmp directories.
Kevin Sharpley
New Member

Re: swinstall problems and swlist

The bottom line on if a patch is installed or not:

"cksum" and "what" on the files that the patch is going to or already loaded.
That text should be supplied with every patch.

If the what strings and cksum don't match what the patch text states, then the
patch didn't install.