How can we help?
Количество портов указывается в 3 строке, для 24 портового выглядит так:
:global showPoeST do={ :put ("Interface\tPoE status "); for i from 1 to 24 step 1 do { :local ethpoest ([/interface ethernet poe monitor [find name=("ether" . $i)] once as-value ]->"poe-out-status"); :set ("$test"->("ether" . $i)) $ethpoest ; :put ("ether" . $i . "\t\t" . $ethpoest) }} :global poeRELOAD do={ for i from 1 to 24 step 1 do { :local ethpoest ([/interface ethernet poe monitor [find name=("ether" . $i)] once as-value ]->"poe-out-status"); if ($ethpoest="powered-on") do= { /interface ethernet poe power-cycle [find name=("ether" . $i)] duration=5s; :put ("Power-reset on interface ether" . $i) }}}