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 5: | Řádek 5: | ||
:set found 0 | :set found 0 | ||
:set ip "10.143.230.125" | :set ip "10.143.230.125" | ||
:foreach i in=[/queue simple find=$parent] do={ | :foreach i in=[/queue simple find parent=$parent] 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 |
Verze z 10. 2. 2012, 10:53
:global parent "none" :global ip :global found :set found 0 :set ip "10.143.230.125" :foreach i in=[/queue simple find parent=$parent] do={ :if ([:find [/queue simple get $i target-addresses] ($ip."/32")]!=0) do={ :set found 1 } } :put $found