i am getting two ip in device address element which is pooling ip type. so first need to set only on in this parameter. also need to use this ip in qaction for some logic so tell available methods.
Hi Chirangee,
If you want to know the IP that is configured in the element and use this information in a QAction, first you will need to create a parameter of type pollingip
Example:
More info: Type element | DataMiner Docs
Then you can perform the normal call to get the parameter data (e.g protocol.GetParameter())
Kind regards
Hi Chirangee,
I apologize, but I didn’t fully understand your previous message.
You can use type=”pollingip” or simply type=”ip” if you want to retrieve the configured port as well. The value will be automatically added to the parameter, so there’s no need to assign or set it manually (DataMiner will take care of this).
From the QAction, you can obtain this information like this:
var ipInformation = protocol.GetParameter(1);
With this you can than print the value or use it in other logic.
Kind regards,
hi jose,
thanks for reply i m having all these things now, on a diff param triggers i am getting two same ip from pooling ip param sepreted by “;” . but on startup i want to set only one ip from these ip’s in pooling ip param