EcoStruxure IT forum
A support forum for Data Center Operation, Data Center Expert, and EcoStruxure IT product users to share knowledge on installation, configuration, and general product use.
Posted: 2022-08-04 03:54 AM
Hi:
I need to get the power consumption from several devices, along with the total for a particular data center.
The problem is I'm not exactly sure how to do that.
Running the "getalldevices Request" I got a list of all our devices, but searching through the Response, the virtual devices
that I need to get the power consumption for returned a state of OFFLINE and a Type of unknown.
For example:
<ns2:ISXCDevice xmlns:ns2="http://www.apc.com/stdws/xsd/ISXCentral/2008/10">
<ns2:ISXCNamedElement>
<ns2:ISXCElement>
<ns2:ISXCElementType>DEVICE</ns2:ISXCElementType>
<ns2:id>Bb8fbf0_nbCustomSensorEncDEE38054</ns2:id>
</ns2:ISXCElement>
<ns2:name>A3 PDM Total</ns2:name>
</ns2:ISXCNamedElement>
<ns2:ISXCCommState>OFFLINE</ns2:ISXCCommState>
<ns2:ISXCDeviceType>UNKNOWN</ns2:ISXCDeviceType>
<ns2:hostName/>
<ns2:ipAddress/>
<ns2:modelName>Virtual Device</ns2:modelName>
<ns2:modelNumber/>
<ns2:parentID>Bb8fbf0</ns2:parentID>
<ns2:serialNumber/>
<ns2:ISXCDeviceState>NONE</ns2:ISXCDeviceState>
</ns2:ISXCDevice>
<ns2:ISXCDevice xmlns:ns2="http://www.apc.com/stdws/xsd/ISXCentral/2008/10">
So the bottom line is that I can't get the virtual sensor's power consumption without its id, and I can't get the id when the device
has OFFLINE in the state and UNKNOWN as the type. The admin says that the device is up and that he sees info on the desktop.
I would appreciate any help with this.
Thanks,
Jerry
Posted: 2022-08-04 04:56 AM
You have the deviceId, its the ns2:id field, the device type as unknown is normal, but not sure why it shows offline
<ns2:ISXCElementType>DEVICE</ns2:ISXCElementType>
<ns2:id>Bb8fbf0_nbCustomSensorEncDEE38054</ns2:id>
You can then use thegetSensorsForDevice request from ISXCentralSensorService wsdls to get the custom sensor id, then you can use the getSensorData request to get the values
Posted: 2022-08-04 04:56 AM
You have the deviceId, its the ns2:id field, the device type as unknown is normal, but not sure why it shows offline
<ns2:ISXCElementType>DEVICE</ns2:ISXCElementType>
<ns2:id>Bb8fbf0_nbCustomSensorEncDEE38054</ns2:id>
You can then use thegetSensorsForDevice request from ISXCentralSensorService wsdls to get the custom sensor id, then you can use the getSensorData request to get the values
Posted: 2022-08-04 06:26 AM
That seems to have worked on the first try.
Thank you very very much,
Jerry
Create your free account or log in to subscribe to the forum - and gain access to more than 10,000+ support articles along with insights from experts and peers.