Skript kontroly queues a dhcp serveru: Porovnání verzí
Z Wiki UnArt Slavičín
Skočit na navigaciSkočit na vyhledávání
Bez shrnutí editace |
Bez shrnutí editace |
||
Řádek 4: | Řádek 4: | ||
:set ip "10.143.230.125" | :set ip "10.143.230.125" | ||
:foreach i in=[/queue simple find] do={ | :foreach i in=[/queue simple find] do={ | ||
:if ([:find [/queue simple get $i target-addresses] $ip."/32"]!=0) do={ | :if ([:find [/queue simple get $i target-addresses] ($ip."/32")]!=0) do={ | ||
:set found 1 | :set found 1 | ||
} | } | ||
} | } | ||
:put $found | :put $found |
Verze z 10. 2. 2012, 10:49
:global ip :global found :set found 0 :set ip "10.143.230.125" :foreach i in=[/queue simple find] do={ :if ([:find [/queue simple get $i target-addresses] ($ip."/32")]!=0) do={ :set found 1 } } :put $found