[SOLVED] Logging user's roaming within CAPsMAN

I have CAPsMAN with 15 access points.
I would like to track some user's roaming between AP.
What code should I use in Netwatch UP script to know what AP user is connected to?
I would like to send e-mail from up-script with such information (example)

user is up since mar/28/2017 09:05:33. Now AP-14 is used

My up-script works except determining what AP is used by user.

This is UP-script in Netwatch that allows administrator to track CAPsMAN registration info of certain user by its mac address:

:local devname "Some username "
:local mac "xx:xx:xx:xx:xx:xx";
:local datetime "$[/system clock get date] $[/system clock get time]";
:local mailserver [:resolve "your_smtp_server"];
:local mailto "your_mailbox";
:local uptime [/caps-man registration-table get [/caps-man registration-table find where mac-address=$mac] uptime ];
:local iname [/caps-man registration-table get [/caps-man registration-table find where mac-address=$mac] interface ];
:local rxsignal [/caps-man registration-table get [/caps-man registration-table find where mac-address=$mac] rx-signal ];
:log info "$devname is here at interface $iname with rx-signal $rxsignal";
/tool e-mail send to=$mailto server=$mailserver subject="$devname is here at $iname since $datetime" \
    body="$devname is here since $datetime\r\nInterface: $iname RX-Signal: $rxsignal\r\nUptime: $uptime";

For sending e-mail, make sure you filled your e-mail settings at TOOLS->EMAIL