You have to create a master deploy Job with all the options you need (This will be like a template deploy job and whose options you want to use generated Deploy Job) and use this master job in BLCI while creating remediation job..
master deploy job????... can you guide me making this..???
santosh is talking about a method to use a blcli command to run the Patch Remediation Job and have it look at an existing Deploy job as a template for creating the actual deploy jobs.
i think what you are asking is how to setup all the options for a patch-related deploy?
it's really hard to say - you could use the defaults, or you may want to alter the reboot options (though i'd be careful w/ that for solaris).
i would look in the user guide or the online help and understand what each of those options does and determine what would be best in your env.
Yes correct I am asking about how to setup all the options for a patch-related deploy?
Specially i want to alter following under deploy Job (PAJ) option:
-- Logging Level
-- Schedule Job
Infact I want to make Patching Job automated (in BSA 8.2):
-- Creating patch catalog
-- Patching Job
-- Scheduling Patching Job
you cannot use the blcli to create the patch catalog.
you can use the blcli to create and run the patching job, including scheduling it, and set the PRJ and subsequent deploys to run automatically.
you can set the log levels to whatever you want.
One more thing that we can't i believe is:
Importing Patch Quenumber file (Whitelist) and include/exclude SmartGroup during the creation of Patch Analysis Job in BSA 8.2
To my mind (in 8.2):
-- yes we can create PAJ (but without include/exclude patchquenumber and smartgroup)
-- Set PRJ (but alter Deploy Option like Reboot/Scheduling option while creating PAJ)
Correct me if i am wrong.. and please guide me..
I'm not completely clear on your requirements wali. But here is my best attempt at offering you some best practices.
Create a Patch Catalog
Schedule your Patch Catalog to look for Updates (optional)
Create Patch Catalog Smart Groups (optional)
Once you have a Patch Catalog, you can use it to run Patch Analysis Jobs against your target servers. During the Patch Analysis Job, you have to option to "Create remediation artifacts." If you are learning how to deploy patches to your servers, I would suggest you skip this option at first. Learn first how to manually create the BLPackages, Patch Deployment Jobs and Batch Jobs. Once you do that, the automatic process will make a lot more sense.
1. From the results of the Patch Analysis Job, right click on a patch and select "Add To Depot As > BLPackage." Save the BLPackage in the Depot.
2. Find that BLPackage, right mouse click on it and select "Deploy." Walk through the steps of creating a deployment job keeping in mind the deployment options you have at the end.
3. Create a Batch Job that runs your deployment job. Batch Jobs are used to run multiple Jobs.
Automatic Process 1
From the results of the Patch Analysis Job, right click on a patch and select "Deploy Selected Patches." This will create a new type of BBSA Job that will automatically do the following:
- Takes your selected patch(s) and adds them to the Depot as BLPackage(s)
- Creates deployment job(s) to deploy these BLPackages against your target server(s)
- Creates a batch job to run your deployment job(s)
Automatic Process 2
Once you understand the manual process, and the new type of BBSA Job that will automate and process for you and how it works, you can then go back to your original Patch Analysis Job and select the "Create remediation artifacts" checkbox. You can then walk through the same process I just decribed above and it will make a lot more sense.
10x 4 ur response Joe..
But I want script (BLCLI or NSH) to alter Deploy Option under Patch Analysis Auto Remediation Job.. I want to alter those option (shown in above pic) using nsh script.
Ahh, I understand. I have not personally done this with BLCLI commands. I scanned over the BLCLI Help and I don't see anything under "DeployJob", "PatchRemediationJob" or "PatchingJob" that lets you set those specific properties. Let me see if I can get you an answer on that.
When you run the patching job creation via the blcli one of the versions of the command will let you reference a ‘template’ deploy job key. So what you do is create a deploy job w/ all the options you want set for your prj-created deploy jobs and use that job key in your patching job creation.
I guess it would have helped had I read the title of the thread first. =)
wali your question is better served in our Server Automation Scripting community
If you go there and select the Documents tab at the top, you will find a document entitled "Unreleased blcli commands and documentation" You will find everything you are looking for there. You can also leverage that community for BLCLI or NSH scripting help.
Hi Bill, It sounds interesting, but I am confused about template and applying that in my existing job..
I read PatchingJob : setRemediationWithDeployOptions but it's confusing too.
If you provide me the name space and command.. it would be very helpful.
Ah – so it’s the PatchRemediationJob createRepediationJobWithDeployOpts. So you will need to create and run the PAJ first, then run this. I don’t think there is a way to run a single blcli to create an auto-remediating PAJ.