send SMS on DHCP request

Hi,

anyone got a script when a new IP is leased in DHCP, then it will send an sms with lease information to a specific phone number

It should be pretty trivial to set up.

At the DHCP server’s settings, in “lease-script” (or “Lease script” at the bottom of the equivalent Winbox window), do:
:if ($leaseBound) {
/tool sms send phone=“0000000000” message=“$leaseServerName gave $leaseActMAC the IP address $leaseActIP”
}(replace “0000000000” with the actual phone number of course)

Hi,
i have been trying this fine script but i cant seem to get it work.
dont you think it needs the right interface. im using USB4.