How To
Summary
It would be great if we could run PowerCLI scripts directly from Turbonomic as part of an action, either before or after the action is executed. In our scenario, we are using Turbonomic to manage physical hosts with a host policy that fully automates 'Start' and 'Suspend' of a physical host. This works great, except for one problem: suspending a host in our environment triggers a high priority event to our Hyper-Visor team because the host is no longer responding. What should be an easy problem to resolve with our monitoring team, i.e. creating an action script to notify BMC Patrol that the host being suspended is in fact OK and to not create a Priority-2 ServiceNow incident, turned out to be very difficult because their version of BMC Patrol doesn't support API integration. So, our options were really limited on what we could do to prevent unnecessary high priority incidents. Initially, I had thought about writing a bash script to just have Turbonomic call API's to the vCenter and put the host in maintenance mode, as opposed to having it suspended. However, I couldn't find a way to do this with vCenter API directly, but I did find a way to do it with PowerCLI. Here I will describe how I use Azure Automation with PowerCLI to accomplish this. This is a rare use case, but it might be useful for other functions that PowerCLI is capable of and hopefully will help.
Document Location
Worldwide
Log InLog in to view more of this document
Was this topic helpful?
Document Information
Modified date:
11 January 2023
UID
ibm16854643