Operating System - HP-UX
1841565 Members
4292 Online
110182 Solutions
New Discussion

swinstall multiple patches not working

 
SOLVED
Go to solution
Linda Card
Frequent Advisor

swinstall multiple patches not working

I inherited a mess. I have a dozen patches to install on multiple HP-UX B 10.20 machines. I read the man page and the online docs and thought I could script the process but found out that several of the patches want a reboot. I hope I am not getting this confused with SUN or Windows (which will install multiple patches before requiring a reboot.)

First I used :
...lines deleted...
/usr/sbin/swinstall -x match_target=true \
-s /home/patch/tmp/PHKL_14282.depot

/usr/sbin/swinstall -x match_target=true \
-s /home/patch/tmp/PHKL_22701.depot
... lines deleted

The first patch (14282)loaded fine but PHKL_22701 got the error " requires a reboot" and did not install. So, still trying to avoid 6 or 7 reboots, I tried putting -x autoreboot=false. NOGO

So I put in the "-x autoreboot=true" and the patch loads, kernel rebuilds, the system reboots. And I have to do it again for the next patch...

My question is this; Is there a way to install multiple patches without rebooting?



9 REPLIES 9
Sanjay_6
Honored Contributor
Solution

Re: swinstall multiple patches not working

Hi Linda,

You can use swcopt to copy all the patches to a single patch depot and then use the patch depot to install all the patches at the same time. Here is the procedure from itrc on how to do it,

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

the itrc doc id is A5841153.

Hope this helps.

Regds
Steven E. Protter
Exalted Contributor

Re: swinstall multiple patches not working

Try this process

Make a patch depot.

copy all your depot files into a single directory.

say /tmp/patch

cd /tmp/patch

for i in PH*
do
sh $i
done

for i in PH*.depot
do
swcopy -s ${PWD}/$i \* @ /tmp/mydepot.depot

done

Now you have a patch depot.

swinstall -x autoreboot=true -s /tmp/mydepot.depot \*


That will install all of the patches at once and reboot once.

This stuff is covered in more detail in HP's patching guide.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paul F. Carlson
Valued Contributor

Re: swinstall multiple patches not working

The easiest way is to download the patches that you need from ITRC. The patches will be bundled together including any dependant patches that are needed. After you download and untar, run the script "create_depot_hp-ux_11" which comes with the bundle. This will use swcopy and create one depot for you which includes all the patches you want to install. Then just run swinstall -x autoreboot=true -x patch_match_target=true -s /depot.
Link down -- cable problem?
Paul F. Carlson
Valued Contributor

Re: swinstall multiple patches not working

After re-reading your post, I guess I missed the part about this being a 10.20 box. So I would say it's fairly impossible to download the patches from ITRC. :)

You could just use swcopy to cpoy each patch to a specified directory, and use swinstall with that directory as the source.
Link down -- cable problem?
Steven E. Protter
Exalted Contributor

Re: swinstall multiple patches not working

If you figure out what patches you need for 10.20 they are still available in the patch database.

10.20 development and patching stopped, but the assumption here is you know what patches you need and they exist.

I tested this by going to the patch database and pulling down the version tree. Its possible to hunt for 10.20 patches.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Paul F. Carlson
Valued Contributor

Re: swinstall multiple patches not working

Steven:

Interesting...thanks for the info.

Paul
Link down -- cable problem?
Linda Card
Frequent Advisor

Re: swinstall multiple patches not working

Wow,
What a response and so fast. I should have asked this morning before all the frustration.

I saw the create_depot file but just spaced on its purpose. I will definiely try this.

And despite the fact that this is 10./20, hps
"build your own patch package" web-site,
javascript:openExternal("http://www1.itrc.hp.com/service/patch/assessSystemsPage.do?BC=patch.breadcrumb.main|")I was able to get all the patches my system needed. It was slick.

I appreciate all you help.

Linda
Linda Card
Frequent Advisor

Re: swinstall multiple patches not working

OK, I did the multiple patches.

I unzipped the patch file I got from HP. It included the create_depot_hp-ux_10 file.

I ran the create_depot script. It created a "depot" directory where I was standing and a depot.psf file in my current dir.

The next step was the swinstall -s /abc/xyz/depot -x autoreboot=true \ (enter)
-x match_target=true (enter)

It worked great. Afterwards, I could see the swagent.log in the /abc/xyz/depot directory.

Thanks so much for all the help.
Linda
Linda Card
Frequent Advisor

Re: swinstall multiple patches not working

Closed per previous comments.
Thanks to all