OID/Tools question

Does anyone have any suggestions for how to make this happen:

Device 192.168.254.16 is being polled via a Dude agent with a public IP (say, 1.2.3.4)
Is there an OID to pull the IP of the polling agent, and then a function to convert the device IP’s 4th octet into a 3-digit string to build a URL for the “Browse” tool?

So the “Browse” tool for this device should go to http://1.2.3.4:18016/

Device 192.168.254.17 would be http://1.2.3.4:18017/
Device 192.168.254.9 would be http://1.2.3.4:18009/
etc…

I’m sure a function could pull the Device.Firstaddress() for the pinhole number - but I can’t find any OID to pull the agent’s IP address.

Hello.
Do not make it to complex. Yes it is possible to write many functions and so on…
But, in your case the solution should be
new_type.png
device_settings.png

Thanks for the suggestion. I made a slight modification to your suggestion, and simply made another tool which browses to http://[Device.CustomField1]/ for now.

The thing is - we have hundreds and hundreds of devices, and I would like to avoid having to manually populate CustomField1 with this info every time a device is added.

Is there an OID that returns the IP of the Agent that is responsible for a device? My goal is to have as much of the features be added automatically as possible, given the devices are properly configured out in the field.