Quantcast
Channel: VMware Communities: Message List
Viewing all articles
Browse latest Browse all 168455

Re: PowerCLI script for Alarms check

$
0
0

That options disables all alarms for that host.

You can report on those ESXi server with this

 

$toAddr='lucd@lucd.com'

$fromAddr='report@lucd.com'

$smtpServer='mail.lucd.com'

 

Send-MailMessage-To$toAddr-From$fromAddr-Subject'Disabled Alarms'-SmtpServer$smtpServer-BodyAsHtml-Body (

    Get-VMHost|

    where{!$_.ExtensionData.AlarmActionsEnabled} |

    SelectName|

    ConvertTo-Html|

    Out-String

)


Viewing all articles
Browse latest Browse all 168455

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>