Examples of installing patches from a depot

To install all applicable patches in the directory depot /my_depots/depot on the local system, use this command:

For example:

$ swinstall -s /my_depots/depot \

-x autoreboot=true -x patch_match_target=true

======= 05/03/04 14:07:16 MDT BEGIN swinstall SESSION (non-interactive) (jobid=my_system-0856)

*Session started for user "some_user@my_system".

*Beginning Selection

*Target connection succeeded for "my_system:/".

*Source connection succeeded for "my_system:/my_depots/depot".

*Source: /my_depots/depot

*Targets: my_system:/

*Software selections:

PHSS_30501.AGRM,l=/,r=B.11.11.22, a=HP-UX_B.11.11_32/64,v=HP,fr=B.11.11.22, fa=HP-UX_B.11.11_32/64

...

PHSS_30501.XEXT-RECORD,l=/,r=B.11.11.22, a=HP-UX_B.11.11_32/64,v=HP, fr=B.11.11.22,fa=HP-UX_B.11.11_32/64

*Selection succeeded.

*Beginning Analysis

*Session selections have been saved in the file "/.sw/sessions/swinstall.last".

*The analysis phase succeeded for "my_system:/".

*Analysis succeeded.

NOTE: More information may be found in the agent logfile using the command "swjob -a log my_system-0856 @ my_system:/".

======= 05/03/04 14:07:22 MDT END swinstall SESSION (non-interactive) (jobid=my_system-0856)

To select and install specific patches from a depot, use this command:

swinstall -x autoreboot=true -s depot software_selections

Use the software_selections argument to specify which software to install. Using wildcards, you can select multiple products for installation. For example:

\* selects everything from the source depot.

\*,c=patch selects all patches from the source depot.

PHXX_12345 selects patch PHXX_12345 from the source depot.

To install a single patch, PHCO_28175, from directory depot /my_depots/a_depot, use this command:

For example:

$ swinstall -x autoreboot=true -s /my_depots/a_depot PHCO_28175

======= 05/03/04 14:22:52 MDT BEGIN swinstall SESSION (non-interactive) (jobid=my_system-0864)

*Session started for user "some_user@my_system".

*Beginning Selection

*Target connection succeeded for "my_system:/".

*Source connection succeeded for "my_system:/my_depots/a_depot".

Installing patches from a depot

79

Page 79
Image 79
HP UX Patch Management manual Examples of installing patches from a depot, Analysis succeeded