VMware {code} Community
r134ss
Contributor
Contributor

CIM numericSensorInfo Baseboard Management Controller (Ver.5.1 WebService SDK)

Hello!!  Everyone.  

I coded the below  by C# on WebService SDK ver.5.1.

But, the C# code cannot get the CIM sensors infomation.

*CIM (Common Information Model)

I found Number of sensors is different between vCenter and ESXi.

Please see attached image.

The below three sensors are maybe CIM sensors.


System Event Log

Baseboard Management Controller

Other

I want to get THE CIM SENSORS  numericSensorInfo by C#.

(especcially Baseboard Management Controller)

Please advice me.

Thanks.

H.N.

//healthstatus
                       
         ArrayList morlist = GetDecendentMoRefs(null, "HostSystem");
         mor = (ManagedObjectReference)((object[])morlist[j])[0];

                        Object cmobj = ecb.getServiceUtilV25().GetDynamicProperty(mor, "configManager");
                        HostRuntimeInfo runtimeInfo2 = (HostRuntimeInfo)getObjectProperty(mor, "runtime");
                        HealthSystemRuntime hrun = runtimeInfo2.healthSystemRuntime;
                        HostNumericSensorInfo[] snm = hrun.systemHealthInfo.numericSensorInfo;

0 Kudos
1 Reply
aka_MAC
Contributor
Contributor

This can help (the PowerCLI way):

[Power Shell] ESXi-CIM-BMC - Pastebin.com

0 Kudos