-
1. Re: Batch Job - if non zero return code skip job on that Server
Nitin Maini Jan 28, 2016 10:22 PM (in response to James Donohue)Hi James,
We have a feature in Software Deploy and BLPackage based Deploy Jobs where you can choose the option of Run By Server.
Specifying job options - BMC Server Automation Documentation - BMC Documentation
If you are defining an advanced BLPackage Deploy Job, take the following steps:
- Under Flow Control, select one of the following options:
- By server — The job proceeds as far as it can for each server. When one server fails, the job continues on other servers. When the job completes a phase on one server, the job continues to the next phase on that server. This option is useful when you want the job to complete on as many servers as possible. A failure on one server does not impede the job on other servers.
Hope this is what you are looking for.
Thanks
Nitin
- Under Flow Control, select one of the following options:
-
2. Re: Batch Job - if non zero return code skip job on that Server
James Donohue Jan 29, 2016 11:52 PM (in response to Nitin Maini)Its helpful but I don't think it will help my in my situation. A BLPackage Job and Software Deploy job installs BLPackages and Software Packages respectively. I need to run jobs sequentially, as I mentioned previously:
1 - Stop App Services (Script that runs on the Target)
? Stop if Return Code <> 0
2 - Remediate Server (<- this is an Analysis and Remediation job set to Reboot at the end)
3 - Start Services (Script that runs on the Target)
-
3. Re: Batch Job - if non zero return code skip job on that Server
James Donohue Jan 30, 2016 3:15 PM (in response to James Donohue)Never mind, that won't work either. Even if that could be done and it went to the step 2 (Remediation), it would run a seperate job on each Server and I would need to open the results on each run per Server.
-
4. Re: Batch Job - if non zero return code skip job on that Server
Nitin Maini Jan 31, 2016 10:26 PM (in response to James Donohue)Have you explored the NSH script as an alternative to implement the above process.
You could run an NSH script Job with as per the pseudo algorithm:-
FOR EACH SERVER:
1> NSH script to stop services
2> Check result of step1
3> Create a Patching Job with Remediation and Deploy options - Refer BLCLI Help PatchingJob - BMC Server Automation Command Line Interface 8.6 - BMC Documentation
4> Run the Patching Job created above..
5> Check result of step 4.
6> NSH script to start services.
Thanks
Nitin
-
5. Re: Batch Job - if non zero return code skip job on that Server
Bill RobinsonFeb 3, 2016 3:38 PM (in response to Nitin Maini)
if you set the batch job to run 'by server' and set the 'member jobs must succeed' or whatever so a member job failure stops successive jobs from running will that work ?
also - what does 'remediate server' mean here ?