In the UI this can be done using the Remediaiton options under wwhich we have:
Deploy Job Options
Select to open Deploy Job Options. The options defined here are the same ones defined for any Deploy
Which BLCLI are you using to create the remediaiton job ??
Rohit, I am executing everthing in a script and not through UI.
In My script I am
1) Creating a PAJ for a target:-
blcli_execute PatchingJob createWindowsPatchingJobWithTargetServer
2) Execute the PAJ against a server
blcli_execute PatchingJob executeJobAndWait
3) If Patches are missing then create a remediation job usin last PAJ run for the target
blcli_execute PatchRemediationJob createRemediationJobWithDeployOptsForATarget
I am using a master deplooy job for copying the properties to the deploy job created by remediation job
4) Set a one time schedule on the remediation job to execute at scheduled date and time
blcli_execute Job addOneTimeScheduleWithEMailNotification
so the remediation job creates a Batch and Deploy job for missing patches and I am not able to assign default email notfication on either of these jobs.
I don’t think he is. he’s using the ‘template job’ function of the prj to create a new job based on another job. the notification options do not set on the new jobs, though they are set in the template. You should open a ticket w/ bmc support on this.
You will have to find the job and set the notification on it, then run it.
Using BLCLI that is the only option I have to create a remediate job with deploy option i.e. use the properties of a template job.
I am running a PAJ and if patches are missing then create a remediation Job and schedule it for execution at a later date and time.
So I dont have controll on the remdeiation job as it is executed at schedule time, and deploy job will be created when PRJ is executed.
i wrote a script that will do some of this already here:
once you have the batch job key, you can find all the sub deploy jobs and set the notification options, then run the batch job.
Bill, Thanks for sharing the script, will go through it.
Also I wanted to know when Patch Remediation Job Creates a Batch Job and Deploy Job, how does bladelogic picks the naming convnetion for Batch job ?
In My environment when a Batch job is created from PRJ it has a name something like
batch deploy @2012-02-21 17-00-11-768+1100
some information after @ is date and time, but what is the remaining after date and time how does it picks it. Can we customize it in a meaningful way ?
2012-02-21 - year, month, day
17-00-11-768 - hours, min, sec, ms
1100 - gmt offset
you cannot customize this.