vROPS Python Adapter – A Hidden Treasure
Even more power comes out of VMware vRealize Operations when enabling the vRealize Operations Python Adapter, adding additional intelligent monitoring and action capabilities. To do this, execute the following steps:
Image1:
- Select ‘Solutions’
- Select ‘VMware vSphere’
- Select ‘vCenter Python Adapter’
- Add your vCenters, match what you configured under the ‘vCenter Adapter’ section above #3 in image1.
What does this do for me?
When viewing the default dashboard ‘Recommendations’ you might see something such as the following in your ‘Top Risk Alerts For Descendants’
Image2:
Selecting the alert you will be presented with another dialog to dig into which object we should inspect:
Image3:
After I select ‘View Details’ it will present me with the object details of the VM, ‘av_prov1’.
Image4:
Without python adapters configured you will not see the ‘Set Memory for VM’ button, with it configured it will be visible under the Recommendations section.
Image5:
After selecting ‘Set Memory for VM’ you will presented with a new dialog (Image5). Here we can see what the new memory recommendation would be and adjust or apply it. Additionally, if you want the changes to happen now, you can select Power-Off/Snapshot. Without powering off the VM, vROPS will attempt to hot-add the additional memory if the OS will support it.
Image6:
Once you select ‘Begin Action’ you will see the dialog in Image6.
Note: ENSURE that permissions for users are limited as in the wrong hands the python corrections could create some havoc also ensure you have a good 3-6 months of collected data before using it or u will get bad results.
I have used this python feature many times. Really saves a lot of time.