We currently use Veeam to backup a few vm's that need to be powered down prior to being backed up. I have a simple script it runs before and after the backup to power the VM down then power it back up after the backup is complete. However, I for the life of me cannot figure out how to script it to "reset to green" without having to log into vcetner and manually do that via the gui. Below is my start script I'd like to add in at the end of it something to reset the status back to green. Has anyone had any experience with this?
Connect-VIServer -Server ************** -User ************** -Password **************
Get-VM ************** | Start-VM
Then whoever defined that Alarm didn't add a condition when it can go back to green.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
"Reset to green" what? An Alarm that was fired?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
We had this question before, there is no public API method available to reset a single Alarm to green.
See PowerCLI Command to reset vSphere alarms to green - VMware Technology Network VMTN
But is that Alarm not cleared automatically after the VM is powered on again?
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
No it is not cleared after the vm is powered back on.
Then whoever defined that Alarm didn't add a condition when it can go back to green.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Simple solution edit the alarm to reset when powered back on.