Automation

 View Only
  • 1.  List Host Monitoring Status for Cluster

    Posted Mar 31, 2011 03:57 AM

    Hi,

    I'm writing up a short script to list out all the properties of my clusters in my environment. One of the property that I'm looking for is Host Monitoring Status (should be checked/enabled). Is there anyway that I could query this via PowerCli? I'm just using something like below but missing out the host monitoring status. Thanks!

    get-cluster |fl Name,HAEnabled,DrsEnabled,DrsAutomationLevel,HAAdmissionControlEnabled



  • 2.  RE: List Host Monitoring Status for Cluster
    Best Answer

    Posted Mar 31, 2011 05:51 AM

    That property is located in the Extensiondata, which maps to the HostSystem object.

    Get-Cluster | Select Name, @{N="Host Monitoring Status";E={$_.Extensiondata.Configuration.DasConfig.HostMonitoring}}


  • 3.  RE: List Host Monitoring Status for Cluster

    Posted Mar 31, 2011 03:44 PM

    LucD,

    Many thanks! That's exactly what I'm looking for. Cheers!