IP HOTSPOT HOST

Friend, if I put this:

:put  [/ip hotspot host print as value]

I only want to print the “MAC ADDRESS”, how do I do it?



EL DONCITO.

Do you want to make an effort to write in more detail?

As usually, is not understandable.

Provide EXAMPLE and a BETTER DESCRIPTION

/ip hotspot host; :foreach item in=[find] do={:put [get $item mac-address]}

Thanks friend REX; How do I copy the mac address in IP BINDING?




EL DONCITO.

First EXPLAIN what you want to achieve in the end, without doing it one piece at a time.

/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
    }
}