Hello,
I'm looking for a way to mass reset a specific alarm on all hosts in a cluster to green. I don't need to acknowledge it I need the equivalent of a right-click reset to green in the GUI.
I have a PowerCLI script and need to reset a specific alarm on a host that does not reset by itself. We have hundreds of hosts that we have to manually reset this host datastore path alarm because it does not reset it self. Any help is appreciated!
Is there a way to achieve this with an API call if not possible in PowerCLI?
Thanks,
Josh
Have a look at Solved: Re: Clear Alarms on all hosts in a cluster - Power... - VMware Technology Network VMTN
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks LucD but I already read through that discussion and found that solution does not work for my application since I only need to clear a specific alarm on a group of hosts. Are there any other ways to do this? Maybe an API call?
Thanks,
Josh
Not possible I'm afraid.
I explained the available options in that thread
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
What a bummer. We have Loss/Degraded Storage Path Redundancy alarm definitions for all hosts in the environment. When there is a storage blip or paths go dead briefly, alarms trigger and there doesn't seem to be an available trigger to set it to reset it back to green automatically.
There is a private API, used by for example the Web Client, named SetAlarmStatus.
Once discussed for an older vSphere version by William, but I don't think that option still exists in more recent vSphere versions.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
A quick (and dirty) work-around is of course to disable/enable that specific Alarm 😉
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference