Community discussions

MikroTik App

Search found 2 matches

by erikpakozdi
Wed Jan 31, 2007 9:33 am
Forum: Scripting
Topic: How to limit a user to a given amount of traffic?
Replies: 85
Views: 79714

Here it is what I came up with: /queue simple; :foreach i in=[find] \ do={ \ :set sqName [get $i name]; \ # :set sqTotalAvgRate [get $i total-avg-rate]; \ :set sqTotalBytes [get $i total-bytes]; \ :set sqLevel [:find $sqName "\[LevelA\]"]; \ :if ($sqLevel >= 0) do={ \ set $i limit-at=32000/32000 ma...
by erikpakozdi
Wed Jan 31, 2007 9:33 am
Forum: Scripting
Topic: How to limit a user to a given amount of traffic?
Replies: 85
Views: 79714

Here it is what I came up with: /queue simple; :foreach i in=[find] \ do={ \ :set sqName [get $i name]; \ # :set sqTotalAvgRate [get $i total-avg-rate]; \ :set sqTotalBytes [get $i total-bytes]; \ :set sqLevel [:find $sqName "\[LevelA\]"]; \ :if ($sqLevel >= 0) do={ \ set $i limit-at=32000/32000 ma...