BatchPatch Forums Home › Forums › BatchPatch Support Forum › Executing jobs in the Multi-Row queue for host 2 and 3 depend on Host1
- This topic has 3 replies, 2 voices, and was last updated 7 years, 2 months ago by doug.
-
AuthorPosts
-
February 1, 2018 at 5:13 pm #10219dougModerator
Hi Marcel –
0. You cannot schedule a basic multi-row queue sequence. You can only execute the basic sequence on-demand. However, you can schedule an advanced multi-row queue sequence, so that is probably what you would want to use in this case.
1. If you want to check for available disk space and then terminate the entire multi-row queue sequence if a threshold is not met, you would need some custom scripting. You would need to write a custom script that checks for disk space and then returns 0 if it meets your threshold or return any non-0 integer if it does not meet your threshold.
Here is an example of integrating this custom script into BatchPatch:
Install Windows Updates Only If Sufficient Space Is Detected On Target C: Drive
Note, in your job queue you would use something like:
Step 1: Your GetDiskSpace custom script deployment (this script can be created following the guidelines in the link above)
Step 2: Abort advanced multi-row sequence if previous action fails/errors
Step 3: Terminate queue if previous action fails/errors
Step 4: Your custom StopService script deployment (this script can be created following the guidelines in the link below)
Step 5: Abort advanced multi-row sequence if previous action fails/errors
Step 6: Terminate queue if previous action fails/errors
Step 7: Your custom ChangeServiceStartupType script deployment (this script can be created following the guidelines in the link below)
Step 8: Abort advanced multi-row sequence if previous action fails/errors
Step 9: Terminate queue if previous action fails/errors
Step 10: Install Windows Updates
Step 11: Your custom StartService script deployment (this script can be created following the guidelines in the link below)
Step 12: Abort advanced multi-row sequence if previous action fails/errors
Step 13: Terminate queue if previous action fails/errors
Step 14: Your custom ChangeServiceStartupType script deployment (this script can be created following the guidelines in the link below)
Step 15: Abort advanced multi-row sequence if previous action fails/errors
Step 16: Terminate queue if previous action fails/errors
2. To start or stop a service inside of a queue in BatchPatch you can follow the same guidelines as mentioned above to create a custom script. We will have a tutorial for this posted in a few days at this link: BatchPatch Custom Script Integration – Install Windows Updates Only After Stopping a Specified Service
3. Same idea as 1 and 2. The above linked tutorial will also show how to set a service to manual/automatic in a custom script.
4. Install Windows Updates
5. Same idea as 1, 2, and 3.
-Doug
February 5, 2018 at 12:48 pm #10215MarcelParticipantHello Doug,
Thank you for your reply.
I indeed wanted to schedule a advanced multi-row queue sequence.
Regarding scripting, no problem, I just wanted to know if it is possible to let batchpatch react on an error from, for example a vbscript. You made this clear with a simple example, thank you.
I’m looking forward to the tutorial you mentioned, which will also show how to set a service to manual/automatic in a custom script.
– Marcel
February 5, 2018 at 3:41 pm #10216dougModeratorIt has been posted. Again please note that you will be using the following two special items in your job queue, in the order specified below. The tutorial does not mention the multi-queue sequence, which is why I highlight it here.
*Abort advanced multi-row sequence if previous action fails/errors
*Terminate queue if previous action fails/errors
Thanks,
Doug
-
AuthorPosts
- You must be logged in to reply to this topic.