首先在hotspot〉user中给账号加个备注,也就是comment
备注的内容是日期
注意:日期格式非常严格。月/日/年;
月份是英文月份的头三个字母,全部小写
日为两位数字,不够的加补足
如:2011年7月31日写成“jul/31/2011”
添加一个定时运行的脚本,每天运行一次
一月 january
二月 february
三月 march
四月 april
五月 may
六月 june
七月 july
八月 august
九月 september
十月 october
十一月november
十二月december
为方便大家,现将代码附下,
/ip hotspot user
:foreach hotspotuse in [find comment=[/system clock get date]] do={
:local hotspotname [get $hotspotuse name];
disable $hotspotname
/ip hotspot active remove [find name=$hotspotname]
}
把上面代码在system>scheduler中新建一条名字随便起,然后把上面的代码粘贴在on event框中,设置好start date (默认)start time(你想运行此项计划的时间)interval(意思是从开始时较间隔多长时间再次运行此脚本)delay(默认00:00:00)就ok了。