|
楼主 |
发表于 2008-1-25 23:22:29
|
显示全部楼层
##当流量监视上行大于360K时的动作(单机96K上行)
add name="360K" source=":delay 3
\n
\n:set m 0
\n
\n:foreach b in=\[/queue \
simple find max-limit=1536000/128000 \] do={:set m \(\$m+1\)}
\n:foreach b \
in=\[/queue simple find max-limit=1024000/128000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=512000/128000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=256000/128000 \] do={:set m \(\$m+1\)}
\n
\n
\n:if \(\$m>0\) \
do={:for ip from 2 to 254 do={/queue simple set \(SYZX . \$ip\) \
max-limit=/96000 } }" \
policy=ftp,reboot,read,write,policy,test,winbox,password
##当流量监视上行大于410K时的动作(单机80K上行)
add name="410K" source=":delay 3
\n
\n:set m 0
\n
\n:foreach b in=\[/queue \
simple find max-limit=1536000/128000 \] do={:set m \(\$m+1\)}
\n:foreach b \
in=\[/queue simple find max-limit=1024000/128000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=512000/128000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=256000/128000 \] do={:set m \(\$m+1\)}
\n
\n:foreach b \
in=\[/queue simple find max-limit=1536000/96000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/96000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/96000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/96000 \] do={:set m \(\$m+1\)}
\n
\n
\n:if \
\(\$m>0\) do={:for ip from 2 to 254 do={/queue simple set \(SYZX . \$ip\) \
max-limit=/80000 } }" \
policy=ftp,reboot,read,write,policy,test,winbox,password
##当流量监视上行大于450K时的动作(单机64K上行)
add name="450K" source=":delay 3
\n
\n:set m 0
\n
\n:foreach b in=\[/queue \
simple find max-limit=1536000/128000 \] do={:set m \(\$m+1\)}
\n:foreach b \
in=\[/queue simple find max-limit=1024000/128000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=512000/128000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=256000/128000 \] do={:set m \(\$m+1\)}
\n
\n:foreach b \
in=\[/queue simple find max-limit=1536000/96000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/96000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/96000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/96000 \] do={:set m \(\$m+1\)}
\n
\n:foreach \
b in=\[/queue simple find max-limit=1536000/80000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/80000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/80000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/80000 \] do={:set m \(\$m+1\)}
\n
\n:if \
\(\$m>0\) do={:for ip from 2 to 254 do={/queue simple set \(SYZX . \$ip\) \
max-limit=/64000 } }" \
policy=ftp,reboot,read,write,policy,test,winbox,password
##当流量监视上行大于480K时的动作(单机32K上行)
add name="480K" source=":delay 3
\n
\n:set m 0
\n
\n:foreach b in=\[/queue \
simple find max-limit=1536000/128000 \] do={:set m \(\$m+1\)}
\n:foreach b \
in=\[/queue simple find max-limit=1024000/128000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=512000/128000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=256000/128000 \] do={:set m \(\$m+1\)}
\n
\n:foreach b \
in=\[/queue simple find max-limit=1536000/96000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/96000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/96000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/96000 \] do={:set m \(\$m+1\)}
\n
\n:foreach \
b in=\[/queue simple find max-limit=1536000/80000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/80000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/80000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/80000 \] do={:set m \(\$m+1\)}
\n
\n:foreach \
b in=\[/queue simple find max-limit=1536000/64000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/64000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/64000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/64000 \] do={:set m \(\$m+1\)}
\n
\n
\n:if \
\(\$m>0\) do={:for ip from 2 to 254 do={/queue simple set \(SYZX . \$ip\) \
max-limit=/32000 } }" \
policy=ftp,reboot,read,write,policy,test,winbox,password
##当流量监视上行小于50K时的动作(恢复单机128K上行)
add name="check2" source=":delay 3
\n
\n:set m 0
\n
\n:foreach b in=\[/queue \
simple find max-limit=1536000/96000 \] do={:set m \(\$m+1\)}
\n:foreach b \
in=\[/queue simple find max-limit=1024000/96000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=512000/96000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=256000/96000 \] do={:set m \(\$m+1\)}
\n
\n:foreach b \
in=\[/queue simple find max-limit=1536000/80000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/80000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/80000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/80000 \] do={:set m \(\$m+1\)}
\n
\n:foreach \
b in=\[/queue simple find max-limit=1536000/64000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1024000/64000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/64000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/64000 \] do={:set m \(\$m+1\)}
\n
\n:foreach \
b in=\[/queue simple find max-limit=1536000/32000 \] do={:set m \
\(\$m+1\)}
\n:foreach b in=\[/queue simple find max-limit=1032000/32000 \] \
do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue simple find \
max-limit=512000/32000 \] do={:set m \(\$m+1\)}
\n:foreach b in=\[/queue \
simple find max-limit=256000/32000 \] do={:set m \(\$m+1\)}
\n
\n
\n:if \
\(\$m>0\) do={:for ip from 2 to 254 do={/queue simple set \(SYZX . \$ip\) \
max-limit=/128000 } }" policy=ftp,reboot,read,write,test,winbox,password |
|