EcoStruxure IT forum
Schneider Electric support forum about installation and configuration for DCIM including EcoStruxure IT Expert, IT Advisor, Data Center Expert, and NetBotz
Posted: 2021-08-14 06:23 AM
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-08-14 06:23 AM
Hello All,
I am trying to use SOAP API to test getting sensor values from DCE using python.
I am using the V2_0 WISDL services
1) Use "initializeSensorService" to initialize the service - This returns true
2) Used getSensorsForDevice to get all the sensors available for a device by giving device id.
Now I want to receive sensor data using getSensordata by providing a corresponding sensor id. But I am getting missing ISXCElement ID.
I tried the python request module:
Does anyone have any Python examples of pulling information via the SOAP API from Expert?
Thanks
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-08-16 01:38 AM . Last Modified: 2021-08-16 01:48 AM
Hi @Anonymous user,
I had a similar problem with zeep - it's something to do with how it's mapping named parameters (in the API) to positional parameters, in this specific example ISXElementID ends up not being the first parameter, locale does. Try:
response=client.service.getSensorData('?', 'SENSOR ID')
Sending the API ? for a locale will request the default locale (there is only one locale on the API last I looked, so I'm happy with the default). Then your sensorID becomes the second positional parameter and it should be much happier.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-08-16 01:38 AM . Last Modified: 2021-08-16 01:48 AM
Hi @Anonymous user,
I had a similar problem with zeep - it's something to do with how it's mapping named parameters (in the API) to positional parameters, in this specific example ISXElementID ends up not being the first parameter, locale does. Try:
response=client.service.getSensorData('?', 'SENSOR ID')
Sending the API ? for a locale will request the default locale (there is only one locale on the API last I looked, so I'm happy with the default). Then your sensorID becomes the second positional parameter and it should be much happier.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-08-16 04:41 AM
Thank you so much Shaun for the solution and correct explanation of the problem.
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-08-16 04:59 AM
Hi Mousumi,
Thank you for your question, I have a customer who is unimpressed with DCE dashboard and want's information displayed in their own format for display at their NOC.
Was just following your trail and wondered if SOAP API could be the solution for my customer problems, if am able to just pick the particular sensors for certain devices to display on their dashboards the way they want it.
Thank you and looking forward to your reply on the same.
Regards,
Felix
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-08-16 07:01 AM
Hi @Angwenyi,
That does sound like something that should be achievable with the web-services API.
You can find documentation on the available methods & a manual of the data model at:
https://www.se.com/ww/en/product/SFWEBSVC/struxureware-data-center-expert-web-services-api/
Link copied. Please paste this link to share this article on your social media post.
Link copied. Please paste this link to share this article on your social media post.
Posted: 2021-08-17 02:27 AM
Hi Shaun,
Thank you for your prompt response.
Probably I should explain what my customer need, they want us to individualize alert display for each equipment.
For example UPS 1 should have it's own portlet showing all alerts showing just for that UPS for instance number of warning and critical alarms for UPS 1.
Same will apply for the other devices of their choice.
I hope my explanation is vivid enough however let me know if I should clarify further.
Thank you.
Regards,
Felix
Link copied. Please paste this link to share this article on your social media post.
Create your free account or log in to subscribe to the board - and gain access to more than 10,000+ support articles along with insights from experts and peers.