1825792 Members
2293 Online
109687 Solutions
New Discussion

patch selection

 
SAM_24
Frequent Advisor

patch selection

Hi,

I am writing script to automate installation of patch cluster. Is it possible to specify the option "autoselect_patches=true" on the command line or it is only available in UI?

Is this correct?

swinstall -x autoselect_patches=true server:patchdepot "*"

Thanks.
Never quit
6 REPLIES 6
Patrick Wallek
Honored Contributor

Re: patch selection

Yes you can do that on the command line. Instead of the option you mention I'd use "match_target=true" instead.

#man swinstall

for more information.
Ken Hubnik_2
Honored Contributor

Re: patch selection

Yes, its in the man pages for swinstall
Jeff Schussele
Honored Contributor

Re: patch selection

Hi,

Your command would look something like this

swinstall -x match_target=true -s hostname:/path/to/depot \*

The \* specifies all products in the depot. The -s denotes remote server/depot

HTH,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
John Dvorchak
Honored Contributor

Re: patch selection

I believe that match_target is only in the 10.x version. I know with HPUX 11.x you have to use patch_match_target=true i.e.

swinstall -x patch_match_target=true -x autoreboot=true -s yourserver:/depot/patch/xxx *
On the command line that says install from server yourserver from depot /depot/patch/whater and the *\ says all of them. The options prefaced with -x say only match what the target has and if a reboot is necessary, then reboot it automatically after the kernel is rebuilt.

Good luck.
If it has wheels or a skirt, you can't afford it.
Jeff Schussele
Honored Contributor

Re: patch selection

Hi John,

match_target is still in there thru 11i.
Yes one can & probably should use patch_match_target. But I believe both it & match_target will accomplish the same goal.
And just to show that there's always several ways to do things, there's also autoselect_patches but it's default value is true - the above match params are false by default.

Rgds,
Jeff
PERSEVERANCE -- Remember, whatever does not kill you only makes you stronger!
James R. Ferguson
Acclaimed Contributor

Re: patch selection

Hi:

The SD options seen in the GUI are nothing more than '-x
The selection of patches and software evolved tremendously from 10.x to 11.x.

In 10.x, patch selection and installation was governed by '-x match_target'.

In 11.x, 'autoselect_patches=true' allows the automatic selection of patches that correspond to the *software* in a depot. The default state for this attribute when omitted, is true.

In 11.x, 'match_target' applies only to *non*-patch software.

On 11.x, 'match_target' selects all software in a depot with an ancestor attribute that matches a fileset which currently resides on the server. Thus, it may operate closely to 'patch_match_target', but it is not recommended or preferred.

An excellent, very detailed discussion of patch management is the "HP-UX Patch Management" guide:

http://docs.hp.com/hpux/pdf/5967-3578.pdf

Regards!

...JRF...