Community discussions

MikroTik App
 
tommcadams
just joined
Topic Author
Posts: 1
Joined: Mon Apr 05, 2010 4:43 am

DHCP-Alert email with mac-address

Tue Apr 06, 2010 8:25 am

How would I get the mac-address of a unknown DHCP server to show up in an email. I can get the interface and IP address with $interface and $address - but $mac-address does not work as previously mentioned on the forum.

:local sysname [/system identity get name];
/tool e-mail send to=name@domain.com from=router@domain.com subject="DHCP Server Detected" body="An unknown DHCP server was detected on $interface of $sysname with a ip address of $address"
 
plisken
Forum Guru
Forum Guru
Posts: 2509
Joined: Sun May 15, 2011 12:24 am
Location: Belgium
Contact:

Re: DHCP-Alert email with mac-address

Mon Apr 14, 2014 5:47 pm

Look to this webpages below for the working script

http://www.wirelessinfo.be/index.php/mi ... dhcp-alert
 
User avatar
CyberTod
Long time Member
Long time Member
Posts: 510
Joined: Wed Jan 25, 2012 10:23 am

Re: DHCP-Alert email with mac-address

Wed Apr 16, 2014 12:40 pm

I have just enabled the IP -> DHCP Server -> Alerts
It sends me an email even without typing anything in the 'On Alert' field and the email contains the mac address of the unknown server.

Who is online

Users browsing this forum: No registered users and 12 guests