Automation

 View Only
  • 1.  List vCenter alarms that are set to email out

    Posted Oct 18, 2019 12:50 PM

    Im sure this is going to be a super easy one to fix but its driving me a little crazy... seems there are hundreds of blogs on how to setup email alerts but no one can tell me how to list them. Best i have come up with is:

    PS H:\> Get-AlarmDefinition | Get-AlarmAction -ActionType SendEmail

    ActionType      Trigger
    ----------      -------
    SendEmail       {...
    SendEmail       {...
    SendEmail       {...
    SendEmail       {...

    pretty useless.... Can someone tell me how i can get a list of the Alarm Definition Name, ActionType (Email) & Trigger? Thanks!!!



  • 2.  RE: List vCenter alarms that are set to email out

    Posted Oct 18, 2019 12:52 PM

    Infact i just exported it to csv and it gave me what i wanted :smileycry:



  • 3.  RE: List vCenter alarms that are set to email out

    Posted Mar 08, 2023 04:52 AM

    Use the below command its working fine.

     

    Get-AlarmDefinition | Get-AlarmAction -ActionType SendEmail | Select AlarmDefinition, To, @{Name="Trigger";e={$_.Trigger -join ", "}}