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 ip | |||
:global found | :global found | ||
:set found 0 | :set found 0 | ||
: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] " | :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:48
: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