I have this script, but it doesn't delete it.
Code: Select all
:local Maddress [/ip hotspot cookie get [find where user="test"] mac-address]
/ip dhcp-server lease remove $Maddress
Thank you for your valuable help.
:local Maddress [/ip hotspot cookie get [find where user="test"] mac-address]
/ip dhcp-server lease remove $Maddress
:local Maddress [/ip hotspot cookie get [find where user="test"] mac-address]
/ip dhcp-server lease remove [find where=$Maddress]
{
{... :local Maddress [/ip hotspot cookie get [find where user="test"] mac-address]
{... :put $Maddress
{... /ip dhcp-server lease remove $Maddress
{... }
EE:03:76:97:AF:8A
no such item
loosely means:[/ip hotspot cookie get [find where user="test"] mac-address]
can be written as:/ip dhcp-server lease remove [find where=$Maddress]