swremove [-p]-dpatch_to_remove @ [target_system:] /some_directory/target_depot

A basic description of these swremove arguments follows:

-p

Executes the command in preview mode.

-d

Operates on a depot rather than on installed software.

patch_to_remove

Specifies the patches to be removed.

Replace with a wildcard to remove multiple patches with one command. 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.

@ [target_system:]/some_directory/target_depot

Include target_system if you want to specify a system other than the local one.

Use to specify the directory depot from which the selected patches will be removed.

The success or failure of the command is indicated in the output, which also details how to get more information.

It is good practice to unregister a depot that has been made available for remote use prior to modifying the depot. When you have completed depot modifications, reregister the depot to make it available again.

The following example shows how to remove patch PHCO_27780 from directory depot /my_depots/new_directory_depot on the system named my_system:

For example:

$ swremove -d PHCO_27780 @ my_system:/my_depots/new_directory_depot

======= 05/03/04 13:25:01 MDT BEGIN swremove SESSION (non-interactive) (jobid=my_system-0843)

*Session started for user "some_user@my_system".

*Beginning Selection

*Target connection succeeded for

"my_system:/my_depots/new_directory_depot".

*Software selections:

PHCO_27780.CMDS-AUX,r=1.0,a=HP-UX_B.11.11_32/64, v=HP,fr=1.0, fa=HP-UX_B.11.11_32/64

*Selection succeeded.

*Beginning Analysis

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

*The analysis phase succeeded for

"my_system:/my_depots/new_directory_depot".

*Analysis succeeded.

*Beginning Execution

*The execution phase succeeded for

"my_system:/my_depots/new_directory_depot".

*Execution succeeded.

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

Removing software from a directory depot 75