BLPackages have a delete action. You can package KB in blpackage, select delete and it should do what you need.
we can uninstall patches in various way.
if you have installed a specfic patch then you can uninstall the patch by undo/uninstall option.
if BSA is not used to deploy the patches and you are looking to uninstall just create a blpackage of the patch and select remove/delete option in the blpackage. now create a blpackage deploy job and execute. required patch will be uninstalled from the target server.
Thanks! Pls excuse me for asking but i'm not too familiar with packages in BladeLogic. Are you saying that I need to "upload" all of the patches I want to uninstall, into the Depot? All versions? 32- & 64-bit? And then create a deploy job that will uninstall them from my servers?
to uninstall something w/ bsa we need to have a corresponding depot object that contains the uninstall instructions, so that when bsa runs the uninstall, it knows what to run.
At 1st it is not recommended to uninstall anything let it be any application or patches or blah blah specially in case of patch as in this case no. of patches you might need to uninstall could in many.
Yes you need to add all the patches that you need to uninstall as blpackage and select delete/remove option in blpackage and create deploy job.
you can directly add the patch to depot as blpackage. live browse to your patch repository server and navigate to the path where you have kept all the patches. right click and select add to depot as blpackage.
If you live browse the target server and do the uninstall out of ‘applications’ (I think ‘hotfixes’ will also work) it will bring up a wizard to find the corresponding depot object. you don’t need to go through all of that.
Bill - I didn't use BladeLogic to deploy the patches to the server in the first place - so i'll need to upload the original patch first, right?
?yes, though it might be easier to create a patch catalog and let that down the downloading - it will add the uninstall commands. i think you can browse into catalogs and select those depot objects - that's the one thing i'm not sure of.. if that doesn't work, then you would have to upload them patches. but you wouldn't have to create a blpackage w/ the 'remove' or whatever options set.
If you know the patch and how to uninstall it from a command line, you can create an empty BLPackage (with an External Command) or a script and run it against the servers you want to uninstall the patch from. You could also use a Component Template and a Compliance Job to determine which servers to deploy it against.
Thanks, the severforums.com link was helpful. I used the wusa commands from that for a silent uninstall. I needed to uninstall two .Net patches that shouldn't have been installed on over 60 servers. I got the .msu files for the 2 patches from the Transactions folder on an affected server, added them as file copies to a bldeploy job, followed by the appropriate wusa command for each patch.
So far I've tested it on a couple of servers. These are the commands I used:
wusa /uninstall "C:\Temp\Windows8.1-KB3097997-x64.msu" /quiet /norestart /log:C:\Temp\3097997.log
wusa /uninstall "C:\Temp\Windows8.1-KB3098779-x64.msu" /quiet /norestart /log:C:\Temp\3098779.log
del /s /q *.msu
The deletion of the .msu files at the end failed with the following:
Could Not Find C:\temp\stage\7f0825271f9d3f33944f739add450928\*.msu
This is minor, but if anyone knows now I can correct this, I would be grateful.
Ignore that last piece about the del command not working. It didn't find anything in the stage directory because there was nothing there. I believe I just need to put in the full path (del /s /q C:\Temp\*.msu).
I didn't notice before that the full path was absent.