Script to send email of some registration info (ACK)

Hi all!

I want to create a script that send me an email every time that my AP has clients registrated with an ACK-Timeout bigger than 60.

With the script bellow I can disconnect all clients with a poor ack:

:foreach i in=[/interface wireless registration-table find ack-timeout>45] do={ /interface wireless registration-table remove $i;}

But I don’t now how I can send me an email every time that exist some client with the ack bigger than 60.

Thanks in advance

Regards

Fabrício

You may write something like this:

:local text;
:local item;
:foreach i in=[/interface find type=ether] do={
  :set item ([/interface get $i name]);
  :set text ($text . $item);
  :set text ($text . "\n");
};
/tool e-mail send body="$text" to="somebody@inter.net" subject="Your subject";