Clarity Client Automation

Expand all | Collapse all

Upgrading Deployed Software

Jump to Best Answer
  • 1.  Upgrading Deployed Software

    Posted 10-10-2018 01:39 PM

    Hello all, long time away form using this product but I'm back to pester you all with questions!:

     

    Say I build a custom software delivery package called SDPackageA and then an upgrade called SDPackgeB. When I deploy the former I get an entry in the installed software treenode for SDPackageAIn Add/Remove Programs I also get an entry for SDPackageA. I then deploy SDPackageB which updates the target systems and updates SDPackageA at the target and updates Add/Remove Porgrams to only show SDPackageB. However, my installed packages node in DSM explorer now shows SDPackageA  and SDPackageB installed.  e.g.

     

     

    How to handle this? I know there are some CA cmdline utilities I could use at the agent and script this up but is there now way to do this automatically by creating some link between the packages when created that allows software delivery to know this is an upgrade?



  • 2.  Re: Upgrading Deployed Software

    Posted 10-10-2018 02:00 PM

    I wrote and published a script about 18 months ago to create a 'link' between discovered SW and installed packages, which would handle this for you. However it runs as an AM Job and uses the command line tools you mentioned. It would create an 'uninstall' record for PackageA when it is removed from the Add/Remove Programs and/or the software signature scan results.

    It does take a little work to implement initially and requires updating when you need to create a link for a new package. I do wish there were a better way to do this in the GUI, but hopefully this will help.

     

    Mapping Discovered Software to Installed Packages 

     

    Regards

    Steve McCormick



  • 3.  Re: Upgrading Deployed Software

    Posted 10-10-2018 04:18 PM

    Another option would be to create  wrapper around your install package.  The wrapper would detect if the install was an upgrade or fresh install.  If upgrade send an uninstall record for the previous version.

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 4.  Re: Upgrading Deployed Software

    Posted 10-11-2018 06:26 AM

    Why concerned with detected though? these are two packages being deployed form DSM explorer. For example of my Installed Packages view of a target in DSM explorer:

     

    In reality, at the target 7.6 which was also installed by CA is not longer installed and it was upgraded to 7.15. 



  • 5.  Re: Upgrading Deployed Software

    Posted 10-11-2018 08:47 AM

    Exactly all you would do is send an sd unistall command from the agent.  If the machines has an install record it will get unistalled from the installed sd installed table if it does not have a record the command will be ignored.

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 6.  Re: Upgrading Deployed Software

    Posted 10-11-2018 09:31 AM

    Thanks. this seems a bit of a horrible solution to scale though. Surely the ITCM should have a method of linking packages i..e

     

    1. if an admin deploys PackageB and PackageB is an upgrade of PackageA then if the deployment of PackageB is successful, remove the record of PackageA. 


  • 7.  Re: Upgrading Deployed Software
    Best Answer

    Posted 10-11-2018 10:38 AM

    I guess the  question is why do you actually need the record deleted.  The record shows what was installed not what actually exists on the target itself.  Often people need is the history of what was installed and when for compliance and auditing purposes.  When targeting upgrades it would be any machines that does not have version b installed is the target.

     

    But to answer your question there is no built in function.  Let’s say you have 2 different install procedures in the same sd package such as “install” and “install1”  If you used both procedures you will get 2 install records for the same pacakage.

     

    Richard Lechner

    Principal Engineering Services Architect

     

    CA Technologies

    Mobile: +1 703 655 7161 | Richard.Lechner@ca.com

     

    <mailto:Richard.Lechner@ca.com>[CA]<http://www.ca.com/us/default.aspx>[Twitter]<http://twitter.com/CAInc>[Slideshare]<http://www.slideshare.net/cainc>[Facebook]<https://www.facebook.com/CATechnologies>[YouTube]<http://www.youtube.com/user/catechnologies>[LinkedIn]<http://www.linkedin.com/company/1372?goback=.cps_1244823420724_1>[Google]<https://plus.google.com/CATechnologies>[Google+]<http://www.ca.com/us/rss.aspx?intcmp=footernav>



  • 8.  Re: Upgrading Deployed Software

    Posted 10-11-2018 12:11 PM

    I take you point. In effect 'installed Packages' node in DSM explorer is the history of what has been deployed via DSM and what was detected via SCANMSI.