Skript kontroly queues a dhcp serveru

Z Wiki UnArt Slavičín
Skočit na navigaciSkočit na vyhledávání
:global parent "none"
:global ip
:global found

:set found 0
:set ip "10.143.230.125"
:foreach i in=[/queue simple find=$parent] do={ 
  :if ([:find [/queue simple get $i target-addresses] ($ip."/32")]!=0) do={
     :set found 1
  }
}
:put $found