1838219 Members
3329 Online
110125 Solutions
New Discussion

swremove

 
Jaideep Krishnan
Frequent Advisor

swremove


Hi,

How to remove HP-UX depots whose filesets got accidentally erased ?

We tried "swremove", but it does not let the depots be removed as the related filesets are not present on the server.

"swlist" continues to list those depots as installed. Hence we cannot re-install them again through our installer. (PS: we cannot change the install options in the installer).

Is there a way by which such depots can be "force removed" (example, without performing any checks, etc)

Please let us know.

Thanks,
Jaideep
9 REPLIES 9
Steven E. Protter
Exalted Contributor

Re: swremove

reinstall the depot then swremove it.

Thats the reliable way of keeping the sd-ux database from getting corrupt.

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
Robert Salter
Respected Contributor

Re: swremove

Restore them from a backup, then do the swremove.
Time to smoke and joke
erics_1
Honored Contributor

Re: swremove

You may be able to 'unregister' the depot so it doesn't appear in an swlist afterwards.

swreg -u -l

Regards,
Eric

Alex Lavrov.
Honored Contributor

Re: swremove

I thyink what you are looking for can be found here:
http://docs.hp.com/en/B2355-90692/swremove.1M.html

Check the -x options that you can set. I think setting "-x enforce_scripts=false" will do the job, because it won't enforse all the scripts to success. Scripts that check the validity of all kinds of things.

"swreg -u" won't do the job, because it unregisters the depots that are available for installation, not the depots that are already installed. In fact, installed depot, is not a depot anymore.



Alex.
I don't give a damn for a man that can only spell a word one way. (M. Twain)
Denver Osborn
Honored Contributor

Re: swremove

Jaideep,

Can you give a little more detail on this one? Are you working with a egistered depot that had been removed or are you talking about an sd-ux installed product that was deleted / uninstalled from the system without doing swremove?

If it's just a depot, then Eric's fix will do... if it isn't then you need help cleaning up the sd-ux INDEX.


-denver
Jaideep Krishnan
Frequent Advisor

Re: swremove


I need something like "-x enforce_scripts=false" option -- the depot is not a registered one.

The problem is -- the depot has been already installed through our installer (installer uses "swinstall -s" command). Apparently one big volume of files got accidentally deleted. They span around 30 depots.

We tried to over-install the 30 depots back through the installer back, but installation fails claiming that the depots are already existing. Also, "swlist" lists these depots as installed.

Then we tried to remove the existing depots. But removal also fails. I tried swremove with "-x enforce_scripts=false", however its still not letting me remove. However, I think some option similar to that may be probably available.

Any tips shall be appreciated.

Thanks,
Jaideep
Ermin Borovac
Honored Contributor

Re: swremove

Can you please post errors in /var/adm/sw/swagent.log when you attempt to swremove software?
Jaideep Krishnan
Frequent Advisor

Re: swremove


Hi,

I installed all the depots back manually with options

-x reinstall_files=true -x enforce_scripts=false

and "swremove" worked after that.

It was quite laborious process installing depots one-by-one with the above option.

Is there a quicker and better way of doing? For example, does "swremove" directly support options such as above? I tried the above options with "swremove" but they did not seem to work. Any suggestions?

Thanks,
Jaideep
Jaideep Krishnan
Frequent Advisor

Re: swremove


Hi,

Is there a way to OVERRIDE the "is_locatable" flag set in the PSF file at the time of depot installation?

Say for example, if a depot was generated from a PSF that had "is_locatable" set as "false".

Is there a way to relocate that depot with any additional options specified during the installation time?

Please let me know.

Thanks a lot,
Jaideep