Highlighted
Enthusiast
Enthusiast

PowerCLI: Enable / Disable Alarm Actions on Hosts / Clusters

Jump to solution

Hello All,

I have done some serious googling, and am about to accept that it is not possible through PowerCLI.

But I wanted to make a last effort by asking you guys.

For ESXi host maintenance, I want to use a PowerCLI script which does this:

  1. - disable alarm actions on Cluster
  2. - disable alarm actions on Hosts

  3. - perform maintenance (can be anything, but will include host reboots)

  4. - enable alarm actions on Hosts
  5. - enable alarm actions on Cluster

Because we have 300+ ESXi hosst, you can imagine I want to do this scripted.

Is there any way to disable/enable alarm actions through PowerCLI ?

Thanks and kind regards,

Harold

21 Replies
Highlighted
User Moderator
User Moderator

Since then the cmdlets Get-AlarmDefinition and Set-AlarmDefinition were introduced.
You can easily enable/disable an alarm with those cmdlets.


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
Highlighted
Enthusiast
Enthusiast

Thanks  

0 Kudos