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 1: | Řádek 1: | ||
:global parent "none" | |||
:global ip | :global ip | ||
:global found | :global found | ||
:set found 0 | :set found 0 | ||
: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=$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:52
: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