Community discussions

MikroTik App
 
User avatar
TheWiFiGuy
Member
Member
Topic Author
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

API - SNOOPER

Fri Mar 01, 2013 12:09 pm

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?
 
User avatar
TheWiFiGuy
Member
Member
Topic Author
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

Re: API - SNOOPER

Wed Mar 13, 2013 4:51 pm

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?
 
User avatar
TheWiFiGuy
Member
Member
Topic Author
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

Re: API - SNOOPER

Wed Mar 13, 2013 6:47 pm

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
 
User avatar
boen_robot
Forum Guru
Forum Guru
Posts: 2400
Joined: Thu Aug 31, 2006 4:43 pm
Location: europe://Bulgaria/Plovdiv

Re: API - SNOOPER

Wed Mar 13, 2013 6:52 pm

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?
 
User avatar
TheWiFiGuy
Member
Member
Topic Author
Posts: 351
Joined: Thu Nov 24, 2011 7:26 pm
Location: UK

Re: API - SNOOPER

Wed Mar 13, 2013 10:10 pm

@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)
 
Dmitry
just joined
Posts: 1
Joined: Tue Sep 10, 2013 10:17 pm

Re: API - SNOOPER

Tue Sep 10, 2013 10:20 pm

Did you resolv this problem? I have same problem now
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: API - SNOOPER

Thu Sep 12, 2013 4:27 pm

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?
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
>>> 

Who is online

Users browsing this forum: No registered users and 74 guests