4 Replies Latest reply on Mar 30, 2010 12:18 PM by cruiser_csuf

    QueryPerf against ESX 3.5 host connected via a vCenter 4.0 works fine - but not against an ESXi 4.0 host

    Athadu Novice

      Hi,

       

      We are using the VI SDK 2.5 from Windows XP SP3. Also, tried with the latest vi-sdk-4.0.0-161137 SDK - with same results.

      We are using QueryAvailablePerfMetric call to get the metric ids and using them in a subsequent call to QueryPerf to get the perf data.

       

      a. Connection via vCenter 4.0 to ESXi 3.5 - returning back the perf data for host and VMs fine.

       

      b. Connection via vCenter 4.0 to ESXi 4.0 - returning back the perf data for the VMs on the ESXi 4.0 host fine - but not the perf data for the host itself. QueryPerf returns back with an empty array for the call to query the host perf data.

       

      c. Connection directly to the ESXi 4.0 host - QueryPerf returns back data for host and VMs fine.

       

      I verified that the times on my client machine, vcenter server and the ESX hosts are in sync and with no time diff.

       

      I appreciate any insight into why QueryPerf is not returning back the data in case-b above.

       

      I am attaching a sample VS2005 solution where I am able to reproduce it consistently in our environment.

       

      BTW, I checked the following thread - they seem to be discussing the same topic - but none of them seem to conclude a real solution.

       

      http://communities.vmware.com//thread/208587?tstart=15

      http://communities.vmware.com/message/1269593#1269593

      http://communities.vmware.com/message/1492776#1492776

       

      Regards

      -Athadu