Operating System - HP-UX
1753604 Members
5986 Online
108797 Solutions
New Discussion юеВ

cleaning up depot w/ swremove

 
SOLVED
Go to solution
Jerry L. Sims
Frequent Advisor

cleaning up depot w/ swremove

**********************
HP-UX B.11.11 9000/800/N4000-75
**********************

Hello All,

I have been trying to remove entries from my depot :
# swlist -l depot
# Initializing...
# Target "it-hp36" has the following depot(s):
/var/opt/mx/depot11
/SD_CDROM
/depot/software/IUX
/depot/patches
/depot/software/Onlinediag
/depot/software/SECURITY_PATCH_CHECK.B.01.05
/depot/software/PDC_FIRMWARE.43.43
/var/spool/sw
/depot/software/IUX/11i
/var/opt/ignite/depots/recovery_cmds
/depot/JAVA-PATCH/depot
/depot/software/SysInfo.A.03.01
/depot/software/OnlineDiag.B.11.11.14.15

When I enter :
swremove -d * @ /depot/software/OnlineDiag.B.11.11.14.15

I receive the following error:
Could not start a management session for "@pvs:" due to an internal Remote Procedure Call binding failure. The calling routine is "IC_TargetSelect".
Could not contact host "dead.letter". Make sure the hostanme is correct and the absolute pathname is specified ( beginning with "/".

Please advised. Thanks.

5 REPLIES 5
Michael Tully
Honored Contributor

Re: cleaning up depot w/ swremove

Is the /depot/blah actually mounted? Is it a NFS mount point?
Anyone for a Mutiny ?
Jerry L. Sims
Frequent Advisor

Re: cleaning up depot w/ swremove

No, it's not an NFS mount point
Jerry L. Sims
Frequent Advisor

Re: cleaning up depot w/ swremove

Hello All,

Problem was corrected by entering the following command :
swremove -d \* @ /depot/software/Onlinediag
instead of
swremove -d * @ /depot/software/Onlinediag
Muthukumar_5
Honored Contributor

Re: cleaning up depot w/ swremove

You have it very correctly. To select all products in the depot we have to use \*. swremove man page is stating the information as,

---- swremove man page ----
The \* software specification selects all products. It is not allowed when removing software from the root directory /.

swremove is started on / and * to select all product(s). It made the problem.
Easy to suggest when don't know about the problem!
Jeff Carlin
Frequent Advisor
Solution

Re: cleaning up depot w/ swremove

Jerry, you can also unregister the depot then delete the directory:

# swreg -u -l depot /depot/software/OnlineDiag.B.11.11.14.15

The depot will no longer list when you do a swlist -l depot but the directory will still be there. I do this to "hide" depots that I no longer want the other admins to install, but I may need it later.
Where wisdom is called for, force is of little use. --Of course, a hammer does wonders for relieving stress.