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