4 Replies Latest reply on Mar 9, 2013 12:36 PM by bnelson

    Installing multiple packages with a reboot in between

    Rookie

      Is this the best way to deploy multiple packages with a reboot in between, or is there a better way?

       

      http://community.landesk.com/support/docs/DOC-7751

       

      I am finding that a lot of machines are not responding to the sdclient /reboot, or not running the second installation after the reboot.

       

      We are on LD 9.0 SP3 on both clients and the Core.

       

      Thanks.

        • 1. Re: Installing multiple packages with a reboot in between
          mrspike SSMMVPGroup

          We have used the code below many times, it works well.

           

           

          @ECHO ON

          if "%1" == "" goto section1

          if "%1" == "section2" goto section2

          if "%1" == "section3" goto section3

          if "%1" == "alldone" goto alldone

           

           

          :section1

          REM ---------------------------------------------

          REM -- do work here that will require a reboot --

           

          REM ---------------------------------------------

          sdclient.exe /msg="The client has not yet rebooted."

          sdclient.exe /onreboot /bat /p=%0 /cmds=section2

          sdclient.exe /reboot

          goto getout

           

           

           

          :section2

          REM ---------------------------------------------

          REM -- do work here that will require a reboot --

           

          REM ---------------------------------------------

          sdclient.exe /msg="The client has not yet rebooted."

          sdclient.exe /onreboot /bat /p=%0 /cmds=section3

          sdclient.exe /reboot

          goto getout

           

           

          :section3

          REM ---------------------------------------------

          REM -- do work here that will require a reboot --

           

          REM ---------------------------------------------

          sdclient.exe /msg="The client has rebooted twice."

          sdclient.exe /onreboot /bat /p=%0 /cmds=alldone

          sdclient.exe /reboot

          goto getout

           

           

          :alldone

          REM -----------------------------------------

          REM -- Finish up the work after the reboot --

          REM -----------------------------------------

          set errorlevel=0

          sdclient.exe /msg="The client has rebooted three times, we are now done."

          :getout

          • 2. Re: Installing multiple packages with a reboot in between
            Frank Wils ITSMMVPGroup

            If you don't want to rely on sdclient only, I always use Custom Scripts like this:

             

            [MACHINES]

            REMEXEC01=install package

            REMEXEC02=reboot

            SLEEP03=30

            REMPING04=WIN, 1800

            SLEEP05=10

            REMEXEC06=install package 2

            etc...

             

            The sleep after the reboot will guarantee the REMPING won't try to ping windows while it's still active. The REMPING will 'hold' the script until the LANDesk agent replies it is started again. Wait a bit for the device to finish starting and continue with the next installation.

             

            Frank

            • 3. Re: Installing multiple packages with a reboot in between
              jtrently Apprentice

              I find using the "shutdown.exe" command easier and more successful.  I use the command line "shutdown -r -f -t 10"  so it restarts, forces the reboot and does it within 10 seconds.

               

              Good luck,

               

              Jhn

              • 4. Re: Installing multiple packages with a reboot in between
                bnelson Employee

                Provisioning! If the GUI windows is an issue, then you can rename the LDProvisioningGUI.exe before you kick it off and you will be able to string as many installations with reboots that you need.