Code: Select all
:put [/ip hotspot host print as value]
I only want to print the "MAC ADDRESS", how do I do it?
EL DONCITO.
:put [/ip hotspot host print as value]
/ip hotspot host; :foreach item in=[find] do={:put [get $item mac-address]}
/ip hotspot
:foreach item in=[host find] do={
:local mac [host get $item mac-address]
:local svr [host get $item server]
ip-binding
:if ([:len [find where mac-address=$mac and server=$svr]] = 0) do={
add mac-address=$mac server=$svr type=blocked disabled=yes
}
}