wdhqwe520 发表于 2017-6-6 21:29

ROS 脚本。


/system clock
:global currenttime
:set currenttime [ get time]

:local hotspotcount 0
:local hotspotcounthotspotcount 200
:local nl 4

/system license
:set nl

:if ($nl=4) do={:set hotspotcount 200}
:if ($nl=5) do={:set hotspotcount 420}
:if ($nl=6) do={:set hotspotcount 840}

/ip hotspot active
:foreach i in=[ /ip hotspot active find] do={:set hotspotcount (hotspotcount+1);}

:if (($currenttime>"1:00:00" && $currenttime <"5:30:00")|| $hotspotcount >$hotspotcount) do={

/ip hotspot active
:foreach i in=[ /ip hotspot active findidle-time > 1800] do={ :log info message=[ get $i ] ;remove $i;:delay delay-time=1;};

/ip hotspot host
:foreach i in=[ /ip hotspot host findidle-time > 1800] do={:log info message=[ get $i ] ;remove $i;:delay delay-time=1;};
:log info message=($currenttime." hotspot clear");

:if ($hotspotcount >$hotspotcount) do={

}
}

sjirene5 发表于 2021-1-7 12:35

感谢分享
页: [1]
查看完整版本: ROS 脚本。