Community discussions

MikroTik App
 
blackspider
just joined
Topic Author
Posts: 3
Joined: Sat Oct 06, 2018 11:39 pm

Script to check connected devices on wifi

Sat Oct 06, 2018 11:55 pm

Hello,

I am new to this forum with MK. I wanted to know how I could make the script to send me email when I connected WIFI device - I know MAC. (for example, when I connect the phone with the MAC address XX: XX: XX: XX: XX: XX, then send me MK email with the text: phone connected and when disconnecting the phone, MK send me email with the text: phone disconnected.

Thank you. Greetings.
 
WeWiNet
Long time Member
Long time Member
Posts: 597
Joined: Thu Sep 27, 2018 4:11 pm

Re: Script to check connected devices on wifi

Tue Oct 09, 2018 6:19 pm

https://wiki.mikrotik.com/wiki/Manual:S ... _log_entry

You can sent email based on whatever you want in the log (Mac address, words like "login" etc.)
You just need to make sure that you actually log those things.

Be aware you might get flooded with emails, as Wifi can connect and disconnect quit often if signal strength is low and changing
 
blackspider
just joined
Topic Author
Posts: 3
Joined: Sat Oct 06, 2018 11:39 pm

Re: Script to check connected devices on wifi

Mon Oct 22, 2018 1:36 pm

https://wiki.mikrotik.com/wiki/Manual:S ... _log_entry

You can sent email based on whatever you want in the log (Mac address, words like "login" etc.)
You just need to make sure that you actually log those things.

Be aware you might get flooded with emails, as Wifi can connect and disconnect quit often if signal strength is low and changing
Hello, thank you for your reply. Please send me URL once again?

Thank you
 
blackspider
just joined
Topic Author
Posts: 3
Joined: Sat Oct 06, 2018 11:39 pm

Re: Script to check connected devices on wifi

Sat Mar 09, 2019 9:41 am

Thank you! But I need to be informed only about one particular mac address. Can I add a filter to script?
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3297
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Script to check connected devices on wifi

Sat Mar 09, 2019 11:33 am

You could setup a log server and use a tool to look at it. I have (in my signatur) setup a project that does send everything to Splunk (free software)
One of the view shows Wifi connection. You can there select periode/user etc and see when someone logs inn and out.

See an example here:
Wifi_connection.jpg
You do not have the required permissions to view the files attached to this post.

Who is online

Users browsing this forum: saied and 27 guests