View Only
  • 1.  Vcenter Alarms - what property?

    Posted Aug 02, 2017 07:40 PM


    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.



  • 2.  RE: Vcenter Alarms - what property?
    Best Answer

    Posted Aug 02, 2017 07:58 PM

    Did you already try the root folder?

    $si = Get-View ServiceInstance

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


  • 3.  RE: Vcenter Alarms - what property?

    Posted Aug 02, 2017 08:07 PM
    I did not, and that is exactly what I needed.  Thanks much Luc!