Active User

Hello. I have this in my HotSpot:

tool e-mail send to=myhotspot@miodominio.it subject=[/system identity get name] body=[/ip hotsp
ot active get 0]

Email Response

.id=*10101bb,server=hotspot1,user=exn36,address=1.1.1.187,mac-address=xx:xx:xx:xx:98:C3,login-by=http-chap,uptime=00:15:19,session-time-left=01:27:07,idle-time=00:00:14,idle-timeout=00:10:00,keepalive-timeout=00:05:00,bytes-in=732045,bytes-out=4140727,packets-in=4771,packets-out=5142,radius=true

How is it possible to have only active user?
example:
user=exn36 is active

Tank

tool e-mail send to=myhotspot@miodominio.it subject=[/system identity get name] body=[/ip hotsp
ot active get 0]

That will only get the first active entry, not all active entries. “0” means item 0 in the list.

There are many ways to do this, but

....body=[/ip hotspot active print]

Will quickly get all active hotspot users.

print? in email?