Home > Blogs > VMware vCenter Orchestrator Blog


A vCO plug-in for vCenter Update Manager example

As posted in this blog vCenter Orchestrator plug-in for vCenter Update Manager is now available.The plugin comes with a set of predefined actions and workflows that abstracts the VUM API and reduce the complexity of using it.

I will show how to implement a common usage scenario inspired from vCenter Update Manager Admin Guide.

  1. Attach an upgrade baseline to the VMs in the datacenter
  2. Scan the datacenter inventory
  3. Get the compliance state
  4. Export the compliance state to a PDF or HTML.
  5. Remediate the datacenter inventory.

Luckily for each of the actions from the list the plugin provides built-in workflows. Our complex workflow will be quite straight-forward:

Wf

The only custom logic in is the the conditional remediation step. Since remediation is potentially disruptive operation I would like to check the compliances before to continue.

The presentation of the workflow is also quite simple. Most of the basic workflows need vCenter server, Baselines and vCenter entities. Specific options for each step are given below this triple.

Pre

If you are familiar with the vCenter Update Manager you will notice that the compliance export functionality is something new for it. The plug-in enables you to generate report in pdf, html or csv format for the compliance status of the selected entities and baselines. Since vCenter Orchestrator client is not able to work with the local file system, the compliance report is stored on the server. Unless there is no other, more convenient way to access the exported report you can access it using the some javascript code:

var fr = new FileReader(file);
fr.open();
content = fr.readAll();
fr.close();

The result of the export looks as pretty as this:

Rep
I hope this will be helpful. In the next post I plan to give some details on how export and import baseline functionality leverages the support for multiple vCenter Update Manager servers in the plug-in.