CA Service Management

Expand all | Collapse all

Scripted pdm_publish for AA environment

  • 1.  Scripted pdm_publish for AA environment

    Posted Mar 20, 2017 12:53 PM

    Hi Community,

     

    To help reduce errors when modifying the schema for Service Desk Manager, I've scripted the pdm_publish steps in PowerShell.  We deploy changes in our production environment on Saturday mornings, and I've noticed that I'm more error prone in the morning before I've had coffee!  This script will help ensure the steps are followed correctly every time.

     

    Let me know if you have any questions!

     

    Moved content to a document.

    Scripted pdm_publish for AA environment 



  • 2.  Re: Scripted pdm_publish for AA environment

     
    Posted Mar 20, 2017 01:22 PM

    Thank you for sharing this with the community Grant!

    Scripted pdm_publish for AA environment 



  • 3.  Re: Scripted pdm_publish for AA environment

    Broadcom Employee
    Posted Mar 20, 2017 01:59 PM

    Another fantastic contribution gbruneau

     

    Thanks once again for sharing your expertise with the rest of the community.



  • 4.  Re: Scripted pdm_publish for AA environment

    Posted Mar 20, 2017 02:12 PM

    Thank you Chris & Paul!  Hopefully someone will find this useful.



  • 5.  Re: Scripted pdm_publish for AA environment

    Posted Mar 20, 2017 04:05 PM

    Fantastic Grant!!!  This is what communities are all about

    Kudos to gbruneau!



  • 6.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 09:15 AM

    Thank you Jon!



  • 7.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 09:06 AM

    Great Job gbruneau! 

    I like the approach and the sharing spirit 

     

    Just small feedback to add to your work...

    Will be good to have the script catching error from the perl script in order to manage some small error handling  (your release 2 maybe ).

    Maybe also put the application path as a variable so no need to change in multiple place to match the correct one (mine are on e$ drive).

     

    I may be wrong but I think you will need only one dot to execute your script in you r steps 6 if you are already in the directory:

    To execute the script, run the following command " .\<filename>"

     

    I may pursue from yours may i get some time around but I suppose that you will not mind if any others want to contribute extending this script

     

    /J



  • 8.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 09:08 AM

    BTW; will you not squeeze your app servers too after a publish as writen  in CA docs?

    /J



  • 9.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 09:14 AM

    Hi jmayer,

     

    Thank you for the feedback!  I considered adding error handling on the pdm_publish output, but I wasn't sure what errors to catch!  If you have any examples on what to look for I can add that in.

     

    I will update the path to be a variable, that's a good idea.

     

    I left the app servers out of the mix because I figured most environments have methods in place to bounce them already.  For instance, we restart them in batches so our users can still access the tool as we work.



  • 10.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 09:24 AM

    Make sense

    I suppose we must be able to find most of them in the perl script itself

    /J



  • 11.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 10:16 AM

    Updated the script, it now looks for the string "Normal end of pdm_publish" in the pdm_publish output and only continues if it's found.  I can add more error handling later on if necessary. The path now has it's own variable too.



  • 12.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 10:27 AM

    Sound Good

    That what we call fast delivery! 

    /J



  • 13.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 10:49 AM

    Fantastic! Great job!



  • 14.  Re: Scripted pdm_publish for AA environment

    Posted Mar 22, 2017 02:24 PM

    Moved this content to a Document (thought it was originally!)

    Scripted pdm_publish for AA environment