3 Replies Latest reply on Nov 23, 2016 8:21 AM by Bill Robinson

    Reboot Server's

    Vishal chaudhari

      Hi,

      We have huge infrastructure and on weekly bases we perform the patching on all servers.

      But Its not possible to Reboot each server using BBSA console. So Please suggest us, how to write NSH script so it will help us to create NSH  Script job.

      Please suggest me.

       

      Thanks & Regards,

      Vishal Chaudhari

        • 1. Re: Reboot Server's
          Ashish Vijay

          Hello,

           

          You can create a NSH script which will run reboot command on target servers and then you can use a loop with sleep command. This loop will keep checking if RSCD agent on target server is up. If it is up then reboot is fine and loop can be break else you can keep waiting upto a time. If server is not up is time limit means server failed to start.

          • 2. Re: Reboot Server's
            Jim Wilson

            Vishal chaudhari wrote:

             

            Hi,

            We have huge infrastructure and on weekly bases we perform the patching on all servers.

            How big is "huge".  I'm assuming this is all Windows as you talk about booting after patching.  Why do you patch all servers weekly when Microsoft only release patches monthly?

             

            But Its not possible to Reboot each server using BBSA console.

            The Deploy job should request the target to reboot if any patch finishes with Exit Code 3010. 

            Outside of patch, as Ashish has suggested, you can use an NSH script.

            If you search this community for "reboot script" you should find something to get you started

            • 3. Re: Reboot Server's
              Bill Robinson

              or, you know, use the builtin function for this from a blpackage/bldeploy.  create a blpackage w/ a single external command of "echo hello" or some other dummy command.  set the item-defined reboot setting to reboot.  make sure the deploy job has the option selected to honor the item-defined reboot setting and then run the "deploy".