Hi,
I am working on connecting a switch and monitor it using DataMiner. I worked on getting the switches information and it worked, now how do I start sending information to the switch? Or where do I start?
Thank you.
As this question has now been inactive for a long time, I will close it. If you still want more information about this, could you post a new question?
Hi Jana,
There is quite a lot to explain here and depending on your use-case and expertise, I could come up with many different answer 🙂 but let me try to make some assumptions and answer as good as I can. Let me know if that helps.
Communication is typically done via group (defined in the protocol xml). In this case, I see you're referring to HTTP communication so such group will refer to http session within your protocol xml.
For the monitoring part, typically we want to poll data periodically so we typically use a timer which will execute groups which will execute HTTP sessions. Is that how you covered the monitoring part?
For the controlling part, things are a bit different cause you typically don't want those sets to happen on regular base but rather triggered by a use click or a user changing some parameter values. So your starting point will typically be such user-interaction rather than a timer.
Simple school-case (HTTP post has static URL and content): a user clicks a button, you can add a trigger on that button which will execute an action which will execute a group which will execute your http session.
Less simple but more classic use-case (HTTP has some variable parts depending on user input): a user sets a string param, on that string param you could trigger a QAction that will be responsible of preparing the POST command by filling in some parameters, then a trigger on the last parameter set could go off and execute an action which will execute a group which will execute an http session.
I think following DataMiner Docs page would be a good starting point for you: How to create an HTTP connector (CoinMarketCap use case) | DataMiner Docs
Regards,
Simon.
Hi Jana - I presume you are referring to an IP switch, and when you say 'sending information, you refer to controlling the product?
In that case you can open the element in DataMiner and go to the Data Display page. If you have configuration metrics, you will be able to edit those and 'send that information' to the switch to change the config. Below is an example of some metrics on a switch in the Detailed Interface Info. As you can see there is a drop down for me to change the Interface Speed setting on any of the ports,
The control to change a metric can be different of course depending on the type of parameter, you can find more information about that over here: Updating the value of a write parameter | DataMiner Docs
Of course, this is when do manual settings. You could also use the Automation Engine to write up scripts for more comprehensive and bulk settings across devices.
Hope this was the information you were looking for. If not, feel free to circle back.
Regards
Ben
I’ve successfully retrieved data using a GET request API from the switch. Now, I need to send a POST request to perform a set operation. How can I proceed with this?
Hi Jana – sounds like you are talking about a connector that you are building, right? And you have now implemented a GET and you are not sure how to do a POST now. Correct?
Yes, that is correct.
I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer that has been most helpful for you (using the ✓ icon)?