VMware {code} Community
rabinnh
Contributor
Contributor

CIM/SMASH has lots of properties that return 'None'

Hope this is the correct place to post.  When I clicked on the "CIM/SMASH SD"K forum link this is where it led.  If there is a better place, please let me know.

I have just installed vSphere on a test system to start developing some management apps.  Using CIM/SMASH, the first thing we were looking for was to get processor load percentage. CIM_Processor (per physical processor) and CIM_ProcessorCore (per core) each have a "LoadPercentage" property.  Perfect.  But the included output is what I get (dual core system).  The 'LoadPercentage' property is None.  If it were '0' I would understand, but it looks like the CIMOM is not providing the value.  I understand if there is not hardware instrumentation provided by the vendor why some values would be missing, but LoadPercentage is an OS (ESXi) function.

Could someone please shed some light on this for me?

Thanks

rabinnh

---------------------------------------------------------------------------------------------

20120203 17:03:25 Connection to https://192.168.0.102:5989
20120203 17:03:25 Check classe CIM_ProcessorCore
----------------------

CIM_ProcessorCore

[(u'RequestedState', 12L), (u'HealthState', 5L), (u'StatusDescriptions', None), (u'TransitioningToState', 12L), (u'LoadPercentage', None), (u'CommunicationStatus', None), (u'DetailedStatus', None), (u'OperationalStatus', [2L]), (u'Status', None), (u'Description', u'CPU 1 Core 1'), (u'InstallDate', None), (u'EnabledDefault', 2L), (u'EnabledState', 2L), (u'TimeOfLastStateChange', None), (u'CoreEnabledState', 2L), (u'PrimaryStatus', None), (u'ElementName', u'CPU 1 Core 1'), (u'Name', None), (u'OtherEnabledState', None), (u'InstanceID', u'2001.0000'), (u'Caption', u'CPU 1 Core 1'), (u'OperatingStatus', None), (u'AvailableRequestedStates', None)]
----------------------

CIM_ProcessorCore

[(u'RequestedState', 12L), (u'HealthState', 5L), (u'StatusDescriptions', None), (u'TransitioningToState', 12L), (u'LoadPercentage', None), (u'CommunicationStatus', None), (u'DetailedStatus', None), (u'OperationalStatus', [2L]), (u'Status', None), (u'Description', u'CPU 1 Core 2'), (u'InstallDate', None), (u'EnabledDefault', 2L), (u'EnabledState', 2L), (u'TimeOfLastStateChange', None), (u'CoreEnabledState', 2L), (u'PrimaryStatus', None), (u'ElementName', u'CPU 1 Core 2'), (u'Name', None), (u'OtherEnabledState', None), (u'InstanceID', u'2001.0001'), (u'Caption', u'CPU 1 Core 2'), (u'OperatingStatus', None), (u'AvailableRequestedStates', None)]
20120203 17:03:25 Check classe CIM_Processor
----------------------

CIM_Processor

[(u'RequestedState', 12L), (u'HealthState', 5L), (u'ModelName', u'Intel(R) Core(TM) i3 CPU         550  @ 3.20GHz'), (u'MaxQuiesceTime', None), (u'StatusDescriptions', None), (u'Family', 198L), (u'TransitioningToState', 12L), (u'Characteristics', [2L, 4L, 5L, 6L, 7L]), (u'LoadPercentage', None), (u'AddressWidth', None), (u'CommunicationStatus', None), (u'SystemName', u'00020003-0004-0005-0006-000700080009'), (u'Stepping', u'5'), (u'CreationClassName', u'OMC_Processor'), (u'NumberOfEnabledCores', 2L), (u'Availability', None), (u'DetailedStatus', None), (u'OtherIdentifyingInfo', [u'0x  ff']), (u'InstanceID', None), (u'PowerManagementSupported', None), (u'IdentifyingDescriptions', [u'Brand ID']), (u'ErrorCleared', None), (u'OtherFamilyDescription', None), (u'OperationalStatus', [2L]), (u'Role', None), (u'OperatingStatus', None), (u'SystemCreationClassName', u'OMC_UnitaryComputerSystem'), (u'Status', None), (u'Description', u'CPU 1'), (u'InstallDate', None), (u'EnabledDefault', 2L), (u'EnabledState', 2L), (u'AdditionalAvailability', None), (u'TimeOfLastStateChange', None), (u'ExternalBusClockSpeed', 133L), (u'StatusInfo', None), (u'DataWidth', 64L), (u'EnabledProcessorCharacteristics', [2L, 2L, 2L, 2L, 2L]), (u'CurrentClockSpeed', 3200L), (u'UniqueID', None), (u'PrimaryStatus', None), (u'Name', None), (u'ElementName', u'CPU 1'), (u'PowerOnHours', None), (u'TotalPowerOnHours', None), (u'OtherEnabledState', None), (u'ErrorDescription', None), (u'AvailableRequestedStates', None), (u'Caption', u'CPU 1'), (u'MaxClockSpeed', 3200L), (u'DeviceID', u'3.0'), (u'PowerManagementCapabilities', None), (u'LastErrorCode', None), (u'UpgradeMethod', 1L), (u'CPUStatus', 1L)]

0 Kudos
2 Replies
rabinnh
Contributor
Contributor

Here is the result of using the Perl SDK to retrieve CPU metrics from the same machine (viperformance.pl).  Unless a VMware employee answers concretely, I assume CIM/SMASH has bugs.

We are doing an evaluation and this does not give me faith. Either there is really a problem or the documentation is lacking.

Anyone?

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------


Counter: Usage
Instance : 
Description: CPU usage as a percentage during the interval
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 64,338,43,82,280,24,46,13,10,335

Counter: Usage
Instance : 
Description: CPU usage as a percentage during the interval
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 64,338,43,82,280,24,46,13,10,335

Counter: Usage
Instance : 
Description: CPU usage as a percentage during the interval
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 64,338,43,82,280,24,46,13,10,335

Counter: Usage
Instance : 
Description: CPU usage as a percentage during the interval
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 64,338,43,82,280,24,46,13,10,335

Counter: Idle
Instance : 
Description: Total time that the CPU spent in an idle state
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 39660,38490,39739,39617,38791,39845,39754,39903,39922,38541

Counter: Idle
Instance : 
Description: Total time that the CPU spent in an idle state
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 39660,38490,39739,39617,38791,39845,39754,39903,39922,38541

Counter: Idle
Instance : 
Description: Total time that the CPU spent in an idle state
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 39660,38490,39739,39617,38791,39845,39754,39903,39922,38541

Counter: Idle
Instance : 
Description: Total time that the CPU spent in an idle state
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 39660,38490,39739,39617,38791,39845,39754,39903,39922,38541

Counter: Usage
Instance : 
Description: CPU usage as a percentage during the interval
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 64,338,43,82,280,24,46,13,10,335

Counter: Core Utilization
Instance : 
Description: CPU utilization of the corresponding core (if hyper-threading is enabled) as a percentage during the interval (A core is utilized if either or both of its logical CPUs are utilized)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 208,797,168,226,642,115,155,85,74,764

Counter: Core Utilization
Instance : 
Description: CPU utilization of the corresponding core (if hyper-threading is enabled) as a percentage during the interval (A core is utilized if either or both of its logical CPUs are utilized)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 208,797,168,226,642,115,155,85,74,764

Counter: Core Utilization
Instance : 
Description: CPU utilization of the corresponding core (if hyper-threading is enabled) as a percentage during the interval (A core is utilized if either or both of its logical CPUs are utilized)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 208,797,168,226,642,115,155,85,74,764

Counter: Core Utilization
Instance : 
Description: CPU utilization of the corresponding core (if hyper-threading is enabled) as a percentage during the interval (A core is utilized if either or both of its logical CPUs are utilized)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 208,797,168,226,642,115,155,85,74,764

Counter: Utilization
Instance : 
Description: CPU utilization as a percentage during the interval (CPU usage and CPU utilization may be different due to power management technologies or hyper-threading)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 58,211,46,62,167,33,44,26,22,199

Counter: Reserved capacity
Instance : 
Description: Total CPU capacity reserved by virtual machines
Units: MHz
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 0,0,0,0,0,0,0,0,0,0

Counter: Latency
Instance : 
Description: Percent of time the VM is unable to run because it is contending for access to the physical CPU(s)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 0,0,0,0,0,0,0,0,0,0

Counter: Total capacity
Instance : 
Description: Total CPU capacity reserved by and available for virtual machines
Units: MHz
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 4875,4875,4875,4875,4875,4875,4875,4875,4875,4875

Counter: Usage in MHz
Instance : 
Description: CPU usage in megahertz during the interval
Units: MHz
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 42,222,28,54,184,16,30,9,7,220

Counter: Idle
Instance : 
Description: Total time that the CPU spent in an idle state
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 39660,38490,39739,39617,38791,39845,39754,39903,39922,38541

Counter: Co-stop
Instance : 
Description: Time the VM is ready to run, but is unable to due to co-scheduling constraints
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 0,0,0,0,0,0,0,0,0,0

Counter: Wait
Instance : 
Description: Total CPU time spent in wait state
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 0,0,0,0,0,0,0,0,0,0

Counter: Swap wait
Instance : 
Description: CPU time spent waiting for swap-in
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 0,0,0,0,0,0,0,0,0,0

Counter: Used
Instance : 
Description: Total CPU usage
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 258,1353,173,331,1122,98,186,55,43,1340

Counter: Demand
Instance : 
Description: The amount of CPU resources a VM would use if there were no CPU contention or CPU limit
Units: MHz
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 0,0,0,0,0,0,0,0,0,0

Counter: Ready
Instance : 
Description: Percentage of time that the virtual machine was ready, but could not get scheduled to run on the physical CPU
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 0,0,0,0,0,0,0,0,0,0

Counter: Core Utilization
Instance : 
Description: CPU utilization of the corresponding core (if hyper-threading is enabled) as a percentage during the interval (A core is utilized if either or both of its logical CPUs are utilized)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 208,797,168,226,642,115,155,85,74,764

Counter: Used
Instance : 
Description: Total CPU usage
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 258,1353,173,331,1122,98,186,55,43,1340

Counter: Used
Instance : 
Description: Total CPU usage
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 258,1353,173,331,1122,98,186,55,43,1340

Counter: Used
Instance : 
Description: Total CPU usage
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 258,1353,173,331,1122,98,186,55,43,1340

Counter: Used
Instance : 
Description: Total CPU usage
Units: Millisecond
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 258,1353,173,331,1122,98,186,55,43,1340

Counter: Utilization
Instance : 
Description: CPU utilization as a percentage during the interval (CPU usage and CPU utilization may be different due to power management technologies or hyper-threading)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 58,211,46,62,167,33,44,26,22,199

Counter: Utilization
Instance : 
Description: CPU utilization as a percentage during the interval (CPU usage and CPU utilization may be different due to power management technologies or hyper-threading)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 58,211,46,62,167,33,44,26,22,199

Counter: Utilization
Instance : 
Description: CPU utilization as a percentage during the interval (CPU usage and CPU utilization may be different due to power management technologies or hyper-threading)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 58,211,46,62,167,33,44,26,22,199

Counter: Utilization
Instance : 
Description: CPU utilization as a percentage during the interval (CPU usage and CPU utilization may be different due to power management technologies or hyper-threading)
Units: Percent
Sample info : 20,2012-02-07T23:25:40Z,20,2012-02-07T23:26:00Z,20,2012-02-07T23:26:20Z,20,2012-02-07T23:26:40Z,20,2012-02-07T23:27:00Z,20,2012-02-07T23:27:20Z,20,2012-02-07T23:27:40Z,20,2012-02-07T23:28:00Z,20,2012-02-07T23:28:20Z,20,2012-02-07T23:28:40Z
Value: 58,211,46,62,167,33,44,26,22,199

0 Kudos
rabinnh
Contributor
Contributor

Not sure anyone cares, but further testing has revealed the following.  I created a 2 core VM on a 4 core host and ran code so each CPU was 100% utilized.  The vSphere client correctly showed cpu "Usage" (all cores) as around 50% as expected.

  • The SNMP values from hrProcessorLoad in the HOST-RESOURCES-MIB are inaccurate.  http://sourceforge.net/tracker/index.php?func=detail&aid=635348&group_id=12694&atid=112694 It appears that this has been a bug for 10 years that is never going to be addressed.
  • I have verified that the CIM/SMASH API does not support the CIM_RegisteredProfile profiles that the documentation says it does, and that can be enumerated with a WBEM client.  As seen in my first post, over half the properties are empty, making VMware's claim that vSphere 5 is CIM/SMASH a bit of a joke.
  • Which leaves the SOAP API.  Yes, it works.  But it's very slow and very heavy if all you want to is pull a couple of resource metrics from the host.

We are running an evaluation of vSphere and I have spent days reading and following the vSphere management SDK documentation.  I am not very happy with the complex SOAP API, but at least if I had known that the other published and documented APIs were dead-ends I wouldn't have wasted 3 days.

I tend to read docs and dig in, and I don't mind doing it.  But I expect the documentation to be accurate.

I hope this isn't indicative of the level of documentation and support for VMware's product portfolio.

Obviously, I am not expecting a response on this forum.

0 Kudos