API - SNOOPER

Hi All

Im trying to use the Snooper functionality to see MAC addresses of clients (like you see if you snoop in Winbox)

However, the API or Command Line only appears to show each channel, not the devices on each channel. Any idea how to print the actional stations?

Anyone ?

As snoop does not have a duration variable, i cant seem to make use of the API to read the results.

Has anyone ever got snoop working via API?

Ok, got that working, it times out after 10 seconds or so automatically.

However, it defaults to showing networks, and I need it to provide client stations. On the CLI you press ‘S’ whilst its running to get that display, any idea how you would do that via API?

Thanks

Interactive commands are not available in the API. This also includes modifiers such as “print follow” or in this case, a runtime modifier like “s”.

@MikroTik
any chance this could be moved to a CLI argument, so that it could also be potentially implemented with the API?

@boen_robot : Thanks for the info.

That is a real shame, command is totally pointless now and totally f***s up a business idea I was working on.

It can clearly be accomplished, as Winbox has access to the data, so why hide it behind interactive commands.

Mikrotik, please add this feature , and others as stated by boen_robot.

(Ive emailed this to Mikrotik support too)

Did you resolv this problem? I have same problem now

btw, print follow works via API

/ip/address/print
=follow=

<<< /ip/address/print
<<< =follow=
<<< 
>>> !re
>>> =.id=*1
>>> =address=10.5.8.155/24
>>> =network=10.5.8.0
>>> =interface=ether1
>>> =actual-interface=ether1
>>> =invalid=false
>>> =dynamic=false
>>> =disabled=false
>>> 
>>> !re
>>> =.id=*2
>>> =address=10.5.113.1/24
>>> =network=10.5.113.0
>>> =interface=ether2
>>> =actual-interface=ether2
>>> =invalid=false
>>> =dynamic=false
>>> =disabled=false
>>> 
>>> !re
>>> =.id=*3
>>> =address=10.5.50.1/24
>>> =network=10.5.50.0
>>> =interface=ether6
>>> =actual-interface=ether6
>>> =invalid=false
>>> =dynamic=false
>>> =disabled=false
>>>

after initial list of items i add new ip

<<< 
>>> !re
>>> =.id=*4
>>> =address=1.1.1.1/32
>>> =network=1.1.1.1
>>> =interface=sfp1
>>> =actual-interface=ether2
>>> =invalid=false
>>> =dynamic=false
>>> =disabled=false

and this is when i remove newly added address

>>> 
>>> !re
>>> =.id=*4
>>> =.dead=true
>>>