I have tried to run the mtapi.py script from wiki. I’m trying now to run the command to print OIDs
...
>>>
/interface/wireless/print
=oid=
...
This works fine on pre 3.22 firmwares and does not work in fw 3.22. In 3.22 this prints only the same output like when the command is only “/interface/wireless/print”. Why? What has changed in new firmware? Searching in ChangeLog did not help and here also. The ChangeLog indicates something might changed in API.
Why is there “=.id=*7”??? There should be IMHO “=.id=*0” or “=.id=*1”, but no “7”!! Or this is a feature?
On fw 3.10 commands “interface wireless print” and “interface wireless print oid” work normally as expected. And see the different output from API of 3.10:
In my script I really need this output to know, that interface on index “=.id=*0” has frequency OID = .x.x.x.x.x.5 for example.
Or give me please a hint how can I get OID interface index for certain Mikrotik’s interface ID in other way, than SNMP.
“interface wireless print” and “interface wireless print oid” print the results as expected in 3.21, 3.22, 3.23 and 3.24.
The problem is when you type these commands as API commands - they both print the same output in 3.22+, that bad. In 3.21 this works - the output is quite different.
I seem to have fixed the problem, but I don’t understand why what I did had the effect it did.
We are evaluating a couple of MikroTik routers for use as replacements in our community WISP. All we need is a box that will connect 20 to 30 802.11b clients and pass the traffic into our back haul which is entirely made up of 5Ghz Tranzeo radios. The APs have static IP addresses and use MAC filtering to determine who gets into the system. We have some of our own software which monitors the system using SNMP.
The anomaly I saw went away when I reassigned the default IP address of the first ethernet port to the static address which it would have if we put the box into our system. Prior to that I had just added the static IP address to the interface leaving the default 192.168.x.x address.
Anyway, our software is now properly monitoring the box and I’m ready to put it into service on a test basis.
BTW, one odd thing that I’ve found is that the frequency assigned to the wireless interface seems to change from time to time. I guess that it could be that the radio is being queried at some point when it’s in the process of scanning other frequencies, but it seems odd. Once the radio is in service I will be watching that more closely.