In this recipe, we explore how to use Orchestrator to expand the capabilities of vRealize Operations Manager (vROps).
You will need a vROps installation collecting data from vCenter. You also need to have Orchestrator connected to the same vCenter.
You need to download the vROps plugin from Solution Exchange (see the introduction to this chapter). You may need to create a free account to access the download.
If you are new to vROps, check out the video at: https://www.youtube.com/watch?v=aN85uCtPtJ4 .
This recipe is split into multiple sections. To reduce confusion about what plugin is which, I will talk about the vROps plugin, meaning the plugin that goes into vROps and the vROps package that went into Orchestrator.
After you have downloaded the ZIP folder from Solution Exchange, you need to unzip it. It contains the .package
file from Orchestrator and the .pak
file for vROps. We will now deploy them:
.package
file into Orchestrator (see recipe Working with packages in Chapter 4, Programming skills). This will create a new folder that contains the workflows that vROPS will call..pak
file that comes with the plugin and click on Upload.
We will now use one action in vROps. We will configure an alarm and then trigger it.
vROPS Test Alarm
.
vROPS test
.power
into the filter and pressing Enter.vrops
into the filter and pressing Enter.
The vROpsplugin basically makes use of Orchestrator's REST interface. What happens is that an action triggers a rest call to one of the workflows that comes with the package. As all workflows have a unique ID, this works quite well.
The package contains the following vROps actions:
vROps actions |
Description |
Host: Maintenance Mode |
Puts a host in or out of maintenance mode. |
Host: Decommission Host |
Puts a host in maintenance mode and then removes it from vCenter. |
Host: Power Operation |
Shuts down or reboots a host. |
VM: Migrate |
Moves a VM to a different host and datastore. |
VM: Power Operation |
Reboots, shuts down, or starts a VM. |
VM: Manage Snapshots |
Takes, reverts, or deletes snapshots. |
VM: Reconfigure |
Changes the CPU and memory settings of a VM. |
VM: Upgrade Tools |
Runs the automated VMware Tool upgrade. |
All these action are not assigned to any vROps recommendation.
There is another little post I'd like to point out to you. It's highly unsupported but still a cool way to do it. In this post, a REST outbound is used to start an Orchestrator workflow. For information, refer to:
http://pierrelx.com/new-vrops6-outbound-plugin-alarms-vro-workflows/ .