User Tools

Site Tools


wiki:check_all_alarm_that_have_email_notification_enabled_eon_vcenter

Use this PowerCLI script to list all alerts that have email notification enabled

$ALLSendis = Get-AlarmAction | where {$_.ActionType -like "SendEmail"} | select @{l="To";e={$_.To -join ","}},ActionType,AlarmDefinition

foreach ($Sendis in $ALLSendis) {

$Output = New-Object psobject

$Output | Add-Member -MemberType NoteProperty -Name TO -Value $Sendis.To

$Output | Add-Member -MemberType NoteProperty -Name ActionType -Value $Sendis.ActionType

$Output | Add-Member -MemberType NoteProperty -Name AlarmDefinition -Value $Sendis.AlarmDefinition

$Output

}
wiki/check_all_alarm_that_have_email_notification_enabled_eon_vcenter.txt · Last modified: by wagner.jer

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki