How to create a Patching Job that will automatically run the remediation and deploy jobs from the blcli

Version 1

    By following the steps noted in the view and below you can create a Patching Job that will automatically deploy missing patches found on the target servers.


    The video details the following steps:

    1. Create a empty blpackage
    2. Create a Deploy Job based on the this blpackage and target the job to a server group that has no targets
    3. Set the 'Execute Now' option in this job and complete the wizard.
    4. Put the below commands into a script and run it, substituing the correct job paths and such.
    5. Run the Patching Job from the gui





    blcli_setoption serviceProfileName defaultProfile

    blcli_setoption roleName BLAdmins



    id=`date +'%Y%m%d-%H%M%S'`





    blcli_execute DeployJob getDBKeyByGroupAndName "${jobFolder}" "TemplateJob"

    blcli_storeenv deployKey

    blcli_execute PatchingJob createWindowsPatchingJobWithTargetServer "${patchJobName}" "${jobFolder}" win03-82 "/Workspace/PatchCatalogs/Windows" "/tmp/include.txt" "" false true false true

    blcli_storeenv patchKey

    blcli_execute PatchingJob setRemediationWithDeployOptions ${patchKey} "test123-" "${jobFolder}" "${jobFolder}" ${deployKey}


    echo "${patchJobName}"