Community discussions

 
gorebell
just joined
Topic Author
Posts: 10
Joined: Thu Sep 01, 2016 1:05 pm

snooper script for station neighbors

Mon Sep 24, 2018 8:46 pm

HI GUYS,

Working with an RB951-2n. I would like to detect connected and not connected wireless stations during certain interval and save/forward this information using Wireless sniffer and I will make a script to automate this.

Actually I can do this manually through the CLI
Gui (Winbox)

[admin@MikroTik102] > interface wireless snooper snoop interface= wlan1


CHANNEL USE BW NET-COUNT NOISE-FLOOR STA-COUNT
2412/20/gn(20dBm) 0.1% 353.9kbps 7 -98 66
2417/20/gn(20dBm) 0.3% 75.4kbps 2 -102 90
2422/20/gn(20dBm) 0.2% 34.8kbps 0 -102 82
2427/20/gn(20dBm) 0% 0bps 1 11—


[Q quit| D dump|C- z pause| n networks| s stations]

Then I have to put “S” to display the stations as follows

# FREQ ADDRESS SIG SNR OF-FREQ OF-TRAF BW SSID
0 E0:1D:3B:37:6B:F8 -29 69 0.1% 0.7% 219.2kbps Globe_Services
1 60:D8:19:24:92:6B -60 38 0% 0.7% 22.5kbps Globe_Services
2 N 70:4F:57:2C:82:8A -89 9 0.5% 4.1% 19.4kbps TP-Link_828A
3 N 1C:49:7B:9B:44:1E -73 25 0.1% 1.1% 22.8kbps ooredoo_9B441E

Starting the snooper function and leave it running for say 30 sec. This gives me exactly the info I like to save. But no saving function here.


I wrote a script but It seems that i wasn't able to specify the duration of delay which is 30 sec and to automate the display of stations
I get file only of channels (first one above)

Does anyone know how to automatically switch wifi snooper into station mode(S) by default and postpone the execution of the file for 30 sec

BEST REGARDS

Who is online

Users browsing this forum: No registered users and 10 guests