Client Management Suite

 View Only
  • 1.  Need Job to run tasks on 2 Servers in a sequence

    Posted Jul 06, 2015 11:23 AM

    I need to reboot 2 servers.  But specific services needs to be stopped before the reboot and started after the reboot in a certain order:

    For an example:

    Stop Service A on Server A

    Stop Service A on Server B

    Stop Service B on Server A

    Stop Service B on Server B

    Reboot both servers

    Start Service B on Server B

    Start Service B on Server A

    Start Service A on Server B

    Start Service A on Server A

     

    I need help with writing the jobs to  runnning on 2 servers in a sequence.

    Thanks

     



  • 2.  RE: Need Job to run tasks on 2 Servers in a sequence

    Posted Jul 06, 2015 12:42 PM

    Hi DKTR,

    In order to stop services, create a script task and use the command lines in this article: https://technet.microsoft.com/en-us/library/cc736564(v=ws.10).aspx.

    For rebooting the operating system, use command line "shutdown /r".

    You will have to create two separate jobs with the script tasks you created. Each job designated to each server. So you will have to run both jobs on different servers in order to accomplish that.

    Regards.



  • 3.  RE: Need Job to run tasks on 2 Servers in a sequence

    Posted Jul 06, 2015 01:26 PM
      |   view attached

    Yes I looked at the article, and when I started to create the job in SMP 7.5 console I figured I could do it like this: See attachment

     

    Attachment(s)

    pdf
    Script.pdf   105 KB 1 version


  • 4.  RE: Need Job to run tasks on 2 Servers in a sequence

    Posted Jul 06, 2015 01:57 PM

    Hi DKTR,

    Great!

    Regards.