Quantcast
Channel: VMware Communities : Popular Discussions - VMware Server Archives
Viewing all articles
Browse latest Browse all 69891

Anybody using WMI to read GSX perfmon data?

$
0
0

Google says there's not much activity with the WMI interface but here goes.

 

I am trying to read root/cimv2:Win32_Perf[*]Data_VMware_VMware over WBEM/WMI and am being told that there are no instances available (sometimes reported as if the class itself does not exist, even while I'm staring at it). Yet the instances show up fine from inside perfmon itself, even when queried from remote systems.

 

Here is an example, using wbemcli via openpegasus wmi proxy. First query is "get class", second query is "enumerate instances of class":

 

\[ root# ] wbemcli gc -nl 'http://w2k3ee.labs.ntrg.com:5988/rhino/root/cimv2:Win32_PerfRawData_VMware_VMware'

w2k3ee.labs.ntrg.com:5988/rhino/root/cimv2:Win32_PerfRawData_VMware_VMware

-Caption

-Description

-Frequency_Object

-Frequency_PerfTime

-Frequency_Sys100NS

-GuestLockedMemoryBytes

-GuestVirtualPhysicalMemoryBytes

-Name

-NetworkBytesReceivedPersec

-NetworkBytesSentPersec

-NetworkBytesTransferredPersec

-NetworkPacketsReceivedPersec

-NetworkPacketsSentPersec

-NetworkReceiveErrorsPersec

-NetworkSendErrorsPersec

-NetworkTransferErrorsPersec

-NetworkTransfersPersec

-PercentGuestPhysicalMemoryTouched

-Timestamp_Object

-Timestamp_PerfTime

-Timestamp_Sys100NS

-VirtualDiskBytesReadPersec

-VirtualDiskBytesTransferredPersec

-VirtualDiskBytesWrittenPersec

-VirtualDiskReadsPersec

-VirtualDiskTransfersPersec

-VirtualDiskWritesPersec

 

\[ root# ] wbemcli ei -nl 'http://w2k3ee.labs.ntrg.com:5988/rhino/root/cimv2:Win32_PerfRawData_VMware_VMware'

*

\* wbemcli: Cim: (5) CIM_ERR_INVALID_CLASS: The specified class does not exist

*/code

 

I'm a real WMI newbie. Other queries to other perf objects (like physical disk and such) work just fine so I'm kind of stumped. Anybody got any ideas here?

 

PerfRawData and PerfFormattedData have the same behavior

 

update:[/b] I reset all the relevant permissions, and rebuilt the WMI plugin registry (using wmiadap /c and /f), so all obvious fixes to what might be a security related problem have been tossed.

 

However, when examining the logs, I see that there are some errors which indicate that the wrong class is being queried so frankly I am starting to wonder if the VMware vmperfmon.dll is broken.

 

(Sat Feb 04 13:46:29 2006.99871171) : CALL CWbemNamespace::GetObject

   BSTR ObjectPath = Win32_PerfRawData_VMware_VMware

   long lFlags = 0

   IWbemClassObject ** pObj = 0x227F938

(Sat Feb 04 13:46:29 2006.99871171) : Error 80041010 occured executing request for Win32_PerfFormattedData_VMware_VMware

(Sat Feb 04 13:46:29 2006.99871171) : Error 80041002 occured executing request for CancelProvAsyncCall for sink 05596828

(Sat Feb 04 13:46:29 2006.99871171) : CAsyncReq_CancelProvAsyncCall call failed

(Sat Feb 04 13:46:41 2006.99883171) : STOPPING a main queue thread 748 for a total of 1

(Sat Feb 04 13:46:41 2006.99883171) : STOPPING a main queue thread 1284 for a total of 0[/code]

 

Errors 80041010 and 80041002 seem to be related to misspelled object names. If the DLL is using bad names then that might explain the problem.

 

Just guessing here. Very odd problem.


Viewing all articles
Browse latest Browse all 69891

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>