Execute remote commands prior to patching

BatchPatch Forums Home Forums BatchPatch Support Forum Execute remote commands prior to patching

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #9168
    abbypatch
    Participant

    I have 5 systems which I have to manually run these command prior to patching:

    F:usrsapXXXsysexerunstopsap name=XXX nr=01 sapdiahost=XXX

    timeout /T 60 /nobreak

    net stop SERVICE_01

    net stop SERVICE_02

    Download and install Windows Updates Cycle

    net start SERVICE02

    net start SERVICE01

    F:usrsapXXXsysexerunstartsap name=XXX nr=01 sapdiahost=XXX

    timeout /T 60 /nobreak

    Is it possible to automate these tasks using the Job Cycle? I would want to confirm that SERVICE_01 has been stopped prior to moving to the next step i.e (Download and install updates, reboot force).

    #11123
    doug
    Moderator

    Yes, you should be able to do this.

    First create the custom remote commands (you’ll create the commands under ‘Actions > Execute remote process/command > Create/modify remote commands) :

    Hardcode commands in BatchPatch

    Once the commands have been created and tested, then go ahead and create the job queue. In the job queue after the ‘net stop service_01’ command add the special command called ‘Stop queue execution if previous action fails/errors.’

    That’s pretty much all there is to it. If the service stop command doesn’t return 0 (success), then the queue will terminate.

    -Doug

    #11124
    abbypatch
    Participant

    Thanks again. Worked perfectly. We ended up purchasing your software to patch over 150+ systems. WSUS+BatchPatch has saved me a ton of time.

    #11125
    doug
    Moderator

    Thanks! I’m glad it’s working for you! We really appreciate the support.

    -Doug

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.