How to set download limit in user profile

I am using an RB1000 as hotspot server and User Manager 4.6 and ROS 4.6.

I have created all the hotspot user profiles in winbox based on rate limits,and session times and have created users in User Manager and assigned them to these profiles.Everything is working fine.
However the client wants to also limit the download per user to 100MB per session.I have noticed that this can be done only on each user and not on the user profile with which the user is associated.
The problem is that there are about 100 users assocaited with a single profile,is there a way to change the download limit from the user profile in winbox instead of having to go to each user (which is 100 users) and change the download limit.If the number of users increase then this task becomes too difficult for the client.
Is there any script that can acheive this?I have noticed that there is ‘scripts’ tab in the user profile window in winbox.

Download amount of bytes
Upload amount of bytes
Totat amount of bytes (download + upload)

All these options are configured by Profile in the User Manager.

But these parameters that you mentioned are available in the ‘Limits’ tab under the ‘User’ tab in Hotspot and not under the ‘User Profile’ tab in Winbox.
I couldn’t find the User profile option in User Manager.Only there is option to create a User.I create a user in User Manager and then in the ‘Group’ field I enter the corresponding User Profile that i created in Hotpsot through Winbox.
If want to change the download limit for 100 user with the same user profile,do I have to go to each user and change it then?

I am also interested in this feature…i have several users on my userman and they have different groups attached to profiles created in ip>hotspot>userprofiles. I want to apply a daily download limit and upload limit and was hoping i will be able to apply to all users in a group by just editing the corresponding user profile in ip>hotspot>userprofiles instead of having to edit each user in usermanager. Just like it works with rate limit, how can i get this done with download/upload limit?


Regards

sergejs
please answer

I did a script a while ago to set speed limits per user accounts based on the plan price they were on, perhaps you can modify this to suit your needs.

http://www.mikrotik-routeros.com/?p=177

Thanks a lot, will try to see how this plays out with download/upload limit

Here is what i have tried with no luck,

> tool user-manager user add download-limit=1000000000 group-name=group1 
name: 
subscriber: 
interrupted
           ambiguous value of subscriber, more than one possible value matches input

Anyone know how i could apply download limit to all users within a particular group in userman V 4+ ?

you want to do a loop that catches either

a) all users
or
b) all users that match a search parameter you set.. eg: (find users that currently have no download limit)


Here’s the catch all option:

:local counter
#Loop through all users in user-manager
:foreach counter in=[/tool user-manager user find] do={

/tool user-manager user $counter add download-limit=1000000000 group-name=group1 

}

You could edit this to search for something in the comment.. eg a tag letting you know you’ve already assigned a download limit.. or set a date in the comment so you know when each was updated .. so on and so forth, the possibilities vary :slight_smile:

Thanks, i tried the script but it did not seem to do anything…apologies as i am newbie in scripting, maybe i should explain myself again: i need the script to search through all my users in usermanager and for every user with groupname=group1 apply download limit 1gb. I hope i have explained myself well this time.

Thanks