VMware Cloud Community
SteFFun
Contributor
Contributor
Jump to solution

Extract alarm from VCenter via PowerCLI

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)
Reply
0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

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

Reply
0 Kudos
SteFFun
Contributor
Contributor
Jump to solution

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

Reply
0 Kudos