:foreach i in=[/ip hotspot active find] do={
local mac [/ip hotspot active get $i mac-address]
local user [ip hotspot active get $i user]
log info "user $user and mac $mac"
}
thank you for reply, but one problem remains.This list only one user.
How to list - output users (mac’s+ip’s) in one line if there are more than one user logged in?
I need also remote login users and mac ,
something like this, but script not execute:
:foreach i in=[/ip hotspot active find] do={
local mac [/ip hotspot active get $i mac-address]
local user [ip hotspot active get $i user]
log info "user $user and mac $mac"
}