VMware Cloud Community
LHBL2003
Contributor
Contributor
Jump to solution

vCenter warnings and alarms (NO DataDenter warnings and alarms) via Powershell

With such a command it is possible to query all warnings and alarms of the Data Center from a vCenter.

 

(Get-DataCenter).ExtensionData.TriggeredAlarmState

 

However, this does not include, for example, the alarm that the vcenter root password has expired.

How to query the warnings and alarms of the vCenter level?

Screen from vCenter Level
LHBL2003_0-1706203892734.png

 

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

You have to start from the hidden Datacenters folder.

(Get-Folder -Name Datacenters).ExtensionData.TriggeredAlarmState


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

View solution in original post

0 Kudos
2 Replies
LucD
Leadership
Leadership
Jump to solution

You have to start from the hidden Datacenters folder.

(Get-Folder -Name Datacenters).ExtensionData.TriggeredAlarmState


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

0 Kudos
LHBL2003
Contributor
Contributor
Jump to solution

Thank you, that was helpful.

0 Kudos