SteFFun
Contributor
Contributor

Extract alarm from VCenter via PowerCLI

Jump to solution

Good day!

I have a script that collects alarms from VCenter and notify me by email. He collects the alarm from VM,hosts, datacenters with clusters etc. But I got the alarm at the VCenter. I can not find how to extract it using PowerCLI. Prompt, who faced with this problem.

vmware.png

Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership

The alarms at the vCenter level can normally be retrieved via the hidden Datacenters folder.

Use the entity returned by 'Get-Folder -Name Datacenters'


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership

The alarms at the vCenter level can normally be retrieved via the hidden Datacenters folder.

Use the entity returned by 'Get-Folder -Name Datacenters'


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

View solution in original post

0 Kudos
SteFFun
Contributor
Contributor

Yes, this is exactly what you need. Thank you!

0 Kudos