Posts

Showing posts from August, 2023
Image
Self Maintaining VM's in vRO In a busy IT world remembering to disable monitoring during ad-hoc system shutdowns or reboots can be challenging.   I thought I’d have a go at making an API call to the vROps (or Aria) from the affected virtual machines so they could call home in the event of a shutdown - set themselves as ‘in maintenance’ and then when they start back up un-do the maintenance and life would continue on as normal.. …no alarms, no grumpy staff (hopefully!) ;) and we all carry on as if nothing had ever happened. I’ve made this as OS agnostic as possible so that you can compile this on the systems you require. Please note that I’ve simply added the API login credentials to the code below, please use your preferred internal security methods to adjust as necessary. This code is a starter for ten - feel free to modify this as you see fit. Here’s a high level description of the codes workflow : Prep the data required. Grab an API auth token. Grab the vRO objectID from the VM