Automation

 View Only
  • 1.  reset and clear alarms for vms

    Posted Nov 24, 2011 06:26 PM

    how can I ack and clear the alarm for vms that currently has an alarm on it



  • 2.  RE: reset and clear alarms for vms

    Posted Nov 24, 2011 07:08 PM

    To acknowledge all alarms you can do

    $alarmMgr = Get-View AlarmManager
    Get-VM | where {$_.ExtensionData.TriggeredAlarmState} | %{     $vm = $_
       
    $vm.ExtensionData.TriggeredAlarmState | %{         $alarmMgr.AcknowledgeAlarm($_.Alarm,$vm.ExtensionData.MoRef)     } }

    The "Reset to green" option doesn't exist for all alarms, only for event-based alarms.

    And the SetAlarmStatus method, that is behind this Reset to green option, is not a public API I'm afraid.



  • 3.  RE: reset and clear alarms for vms

    Posted Jul 06, 2015 03:56 PM

    Hello

    Are we still not able to clear the alarms on vms?

    Name                   MemberTyp

    ----                   ---------

    AcknowledgeAlarm       Method

    AreAlarmActionsEnabled Method

    CreateAlarm            Method

    EnableAlarmActions     Method

    Equals                 Method

    GetAlarm               Method

    GetAlarmState          Method

    GetHashCode            Method

    GetType                Method

    SetViewData            Method

    ToString               Method

    UpdateViewData         Method

    WaitForTask            Method

    Client                 Property

    DefaultExpression      Property

    Description            Property

    MoRef                  Property



  • 4.  RE: reset and clear alarms for vms

    Posted Jul 07, 2015 06:02 AM

    No, I'm afraid not