Why do my calls to the PCoIP Agent WMI counters return 0 values?

Rate this Article
No votes yet

Problem

All calls to WMI counters (i.e. PCoIP Session Log and Statistics Viewer) return 0 values.

 

Cause

By default, 32 bit applications accessing WMI gets a handle to a 32 bit WMI provider, and 64 bit applications accessing WMI get a handle to a 64 bit WMI provider. Howerver, you can configure which bit version you want to get the handle to. 

http://msdn.microsoft.com/en-us/library/windows/desktop/aa393067(v=vs.85).aspx

From msdn link above. "By default, an application or script receives data from the corresponding provider when two versions of providers exist. The 32-bit provider returns data to a 32-bit application, including all scripts, and the 64-bit provider returns data to the 64-bit compiled applications. However, an application or script can request data from the nondefault provider, if it exists, by notifying WMI through flags on method calls."

 

Resolution

The workaround is to have your 32 bit application running on a 64 bit host request 32 bit WMI counters.

 

See also:

http://blogs.msdn.com/b/dsadsi/archive/2009/09/18/accessing-a-64-bit-wmi-provider-from-a-32-bit-application-running-on-a-64-bit-client.aspx

 

Pertains to:
  • HP Anyware 2.10.0
  • HP Anyware 2.11.0
  • HP Anyware 2.6.0
  • HP Anyware 2.6.1
  • HP Anyware 2.6.2
  • HP Anyware 2.7.0
  • HP Anyware 2.8.0
  • HP Anyware 2.9.0
  • PCoIP Graphics Agent 2.10.0
  • PCoIP Graphics Agent 2.11.0
  • PCoIP Graphics Agent 2.1.0
  • PCoIP Graphics Agent 2.2.0
  • PCoIP Graphics Agent 2.3.0
  • PCoIP Graphics Agent 2.4.0
  • PCoIP Graphics Agent 2.5.0
  • PCoIP Graphics Agent 2.6.0
  • PCoIP Graphics Agent 2.6.1
  • PCoIP Graphics Agent 2.6.2
  • PCoIP Graphics Agent 2.7.0
  • PCoIP Graphics Agent 2.8.0
  • PCoIP Graphics Agent 2.9.0
  • PCoIP Standard Agent 2.10.0
  • PCoIP Standard Agent 2.11.0
  • PCoIP Standard Agent 2.1.0
  • PCoIP Standard Agent 2.2.0
  • PCoIP Standard Agent 2.3.0
  • PCoIP Standard Agent 2.4.0
  • PCoIP Standard Agent 2.5.0
  • PCoIP Standard Agent 2.6.0
  • PCoIP Standard Agent 2.6.1
  • PCoIP Standard Agent 2.6.2
  • PCoIP Standard Agent 2.7.0
  • PCoIP Standard Agent 2.8.0
  • PCoIP Standard Agent 2.9.0