Community discussions

MikroTik App
 
n21roadie
Forum Guru
Forum Guru
Topic Author
Posts: 1905
Joined: Fri Aug 07, 2009 10:36 pm
Location: Limerick,Ireland

Wireless Scan - help needed

Sun Nov 22, 2020 4:11 pm

I have a wireless script which is scheduled to run overnight but I need to add traffic detection script to prevent the wireless scan from running, In other words if a customer is streaming or downloading
the wireless scan will not run !

:local sub1
:set sub1 ([/system identity get name])
/interface wireless scan 0 duration=180 save-file="$sub1 wiscan.txt"
 
r00t
Member
Member
Posts: 386
Joined: Tue Nov 28, 2017 2:14 am

Re: Wireless Scan - help needed

Mon Nov 23, 2020 3:06 pm

You can try something like this:
1) read number of packets/bytes from interface stats
2) wait 10 s
3) read it again, compute difference
4) If lower than X (some threshold you will have to choose) run the scan

But if your hardware can do it, use background scan. It can run in the background without affecting the traffic.

Who is online

Users browsing this forum: macrokernel and 30 guests