LucD
Leadership
Leadership

The following script will remove all alarms on al visible entities

$alarmManager = Get-View AlarmManager
$alarms = $alarmManager.GetAlarm($null)
$alarms | %{
	$alarm = Get-View $_
	$alarm.RemoveAlarm()
}

Note that this not remove the alarms on hidden entities like vm, host and datacenters.

And please test in a non-production environment first !

There is no way to get a deleted alarm back.

____________

Blog: LucD notes

Twitter: lucd22


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

View solution in original post

Reply
0 Kudos