VMware Cloud Community
jacosta
Enthusiast
Enthusiast
Jump to solution

Vcenter Alarms - what property?

Hi, 

Vcenter alerts are present in the GUI, but I don't know how to obtain them from CLI.  Anyone know the property / connection?

I'm writing an advanced function to query for the Alarms depicted in the Vsphere 6.2 Web GUI, in the Alarms Pane.  Via PowerShell I can query .ExtensionData.TriggeredAlarms for VMs and ESX hosts and obtain the results required.  What I can't seem to find, is where to find Vcenter Specific alerts.  Worded another way, alerts that apply to the Vcenter itself, not to the VM running the Vcenter.  Example alerts from my lab are Certificate Status, vpxd turned green from yellow, database space is low.  Connecting directly to the Vcenter (Get-VC), doesn't intuitively (to me) reveal where the alarm data is.  Or is it elsewhere?  I'm not searching for definitions - I'm searching for the live alerts.

Thanks

JoeA

0 Kudos
1 Solution

Accepted Solutions
LucD
Leadership
Leadership
Jump to solution

Did you already try the root folder?

$si = Get-View ServiceInstance

$rootFolder = Get-View -Id $si.Content.RootFolder

$rootFolder.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

Did you already try the root folder?

$si = Get-View ServiceInstance

$rootFolder = Get-View -Id $si.Content.RootFolder

$rootFolder.TriggeredAlarmState


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

0 Kudos
jacosta
Enthusiast
Enthusiast
Jump to solution

I did not, and that is exactly what I needed.  Thanks much Luc!
0 Kudos