I read settings and do graphing on my backhauls every 5 minutes. I read the signal strength of the PTP link from the PTP450/PTP230 masters with this:
snmpbulkget -v2c -c Canopyro -m ALL 169.254.1.1 22.214.171.124.126.96.36.199.188.8.131.52.35
How can I get the link distance in miles from the master with SNMP?
You can try the parameter ''Air Delay'' from the SNMP with the OID .184.108.40.206.220.127.116.11.18.104.22.168.24 this feature displays the distance of the SM/BHS from the AP/BHM.
This can also be found in the radio GUI under Home >> Session Status >> Session
How do you get the value to now show in actual feet, miles or metric? The OID given says it reads its representation is in "bits"
I would like to know how to convert it as well?
Here is what I did to convert and find the link distance on the Canopy PMP100 series. I suspect that it may be the same for the PTP450. I was really just searching and hunting through the forums for a clue on how to do this. Didn't find anything close however. So I did some digging further and unfortunately had to put on my 'thinking cap' for what we have at hand.
We use Mikrotik Dude to monitor and display information for the Canopy PMP100 series since it does SNMP v2c. So I'll give you the complete formula here in Dude format/syntax and then briefly explain how I arrived at the formula.
So this is the Dude function:-
m.whispSmStatus.airDelay.0")*147.4453125)/5280),0,5)," mi")" <---use everything inside the outer quotes
Here is I derived at that formula (function in Dude). So I take the SNMP value for airDelay which is in units. The SNMP OID for Air Delay is "22.214.171.124.126.96.36.199.188.8.131.52.0" (remember this is for the PMP100 series). Then I found that multiplying by 147.4453125 converts it to a distance (feet) and finally, dividing by 5280 converts it to miles. You will notice on the GUI it shows the AirDelay along with miles and in brackets feet. That is how I derived the formula and confirmed my results.
The picture above shows how I display the results in Mikrotik Dude (using Appearance).
Hope that this helps.