3 Replies Latest reply on Jan 10, 2018 9:43 AM by john.lauritzen

    Application shutdown

    lynettemoley Rookie

      Hi, could anyone recommend a way to patch multiple servers that hold one application in the correct order?

       

      Ideally what I'd like to do:

      1 - stop application services across multiple servers

      2 - patch application & database servers

      3 - reboot database server first & ensure its back on line (pre 4)

      4 - reboot application servers.

       

      Any ideas would be greatly welcome.  I believe I can achieve step 1 with the use of a Powershell script (though I can currently only get it to work if each server is running its own individual script) but I can't see a way to reboot/patch the servers in a particular order.

       

      Thanks,

      Lynette.

        • 1. Re: Application shutdown
          john.lauritzen SupportEmployee

          Hello Lynette,

           

          If you are on the latest version of Ivanti Patch for Windows Servers, then the best option would be to use the API commands to create a PowerShell script to handle the process. The API Quick Start Guide, located here, has an example on page 8 of a similar situation of patching servers one at a time. You should be able to setup a similar script to scan, patch, and reboot servers in a particular order.

           

          Thanks,

           

          John

          • 2. Re: Application shutdown
            lynettemoley Rookie

            Hi John,

            Thanks for responding.  That's a good start for me.

             

            I am indeed on the latest version.  I'm having trouble finding any other documents other than the quick start guide you so kindly attached.  If you could recommend any others I'd appreciate it.  I'm new to this so even how to collaborate the two (API's & Protect) things & how to schedule the API's in Protect.

             

            Thanks again for you advice & time.

            • 3. Re: Application shutdown
              john.lauritzen SupportEmployee

              Hello Lynette,

               

              I apologize for the delay in my response. To answer your questions:

               

              Other than the Quick Start guide, the best reference for information regarding the API calls is the Get-Help command in PowerShell, as detailed in the Quick Start guide

               

              Regarding collaborating Ivanti Patch for Windows and the API, the API allows access to the functionality of the console through PowerShell. Actions performed through the API can be monitored through the API, and will also be included in results in the console such as the following:

               

               

              As such, the console cannot schedule API commands, as the API commands are essentially the same as performing the same actions in the console. If you would like to schedule a PowerShell script, which includes API commands, through the console then you can use a custom ITScript if you are licensed for them. Information regarding ITScripts can be found here.

               

              If you would like more specific guidance on using the APIs to automate the patching plan you want, then you can submit a request for our team to create the documentation here: https://ivantisecurity.uservoice.com/forums/602383-patch-for-windows

               

              Thanks,

               

              John