Need help in Limiting Users' Daily Access

I need help in the following area pls!

I have a campus hotspot of about 3,000 users, The management requested that i limit all students to 3hrs per day each without accumulation. How do I achieve this task?

I am using User Manager 5.4 and 4.17 on a high configuration server systems. I have gone through the entire user manager and manual over and over looking for this solution and found no help!

I need ideas on this urgently.

why you not create scheduler to activated/disable that user just 3 hours/perday.
example, user just can login on 09:00 till 12:00, otherwise disable it, user can login in the same clock but different day.

Siprox,

I thought of that but that was not acceptable as some student might not be free at that time while others will be free, so the best which is their request is to be free to go online anytime of the day,

Also, that will over flood the network as everybody has to go online at a certain time in order to have access to the net.

Need more solutions pls.

Hi,

give all users 3hours uptime, then reset counter by scheduled script every midnight or so ..

/tool user-manager user set [find <condition>] uptime-used=0

EDIT: seemed as good idea, looks it’s not possible in V4 userman:

/tool user-manager user reset-counters [find <condition>]

Interesting, can you pls give more details on how to achieve this? I will concentrate on v5.4 right now, so forget about v4.

I have not gotten any solution oh! Help pls, How do i use the solution above?

Petrn, Can you put more light to the solution as you proffer?

Hi,

here what i have tested in V5.4:

  1. in userman->Profiles->Limitation create limitation with “uptime: 3h”
  2. in userman->Profiles->Profiles create profile and select limitation from step 1
  3. create/update users with profile from step 2
  4. schedule counter reset:
/system schedule 
add disabled=no interval=1d name=hotspot-reset on-event=\
    "/tool user-manager user reset-counters [find]" policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=\
    jun/13/2011 start-time=00:00:01

of course this assumes that all users in userman are students, but you can make script which will reset only selected users. And do your own testing - preferably not on live/production system.
If you need more detailed help/guidance look for MT consultants.

Thanks Petrn,

I have been studying the script above looking for a way of including the profile “students” so that instead of reseting all users, it look for users with profile “students” and then apply the reset command on them. Any one good at MT scripting and schedulling should help pls.