Hi,
What would be the script code for send email every new lease offered by DHCP ?
I want to receive one email with the IP address and MAC Address of every single lease.
thanks
http://wiki.mikrotik.com/wiki/Manual:IP/DHCP_ServerHi,
What would be the script code for send email every new lease offered by DHCP ?
I want to receive one email with the IP address and MAC Address of every single lease.
thanks
Just put where script which sends email with leaseActMAC and leaseActIP by emaillease-script (string; Default: )
Script that will be executed after lease is assigned or de-assigned. Internal "global" variables that can be used in the script:
leaseBound - set to "1" if bound, otherwise set to "0"
leaseServerName - dhcp server name
leaseActMAC - active mac address
leaseActIP - active IP address
If ($leaseBound=1) do={
/tool e-mail send to=me@somethere.com subject="DHCPLIST" body="$leaseActIP - $leaseActMAC"
}