Community discussions

MikroTik App
 
User avatar
ram
just joined
Topic Author
Posts: 23
Joined: Sun Apr 15, 2007 12:13 pm
Location: iraq

plz urgent need help on basic script

Wed Apr 18, 2007 8:33 am

Dear friends
I need script for this case:
30 user on hotspot(mikrotik version 2.9.27)
7 user should have access to internet from 8 am to 8 pm
6 user should have access to internet from 8 pm to 11 pm
5 user should have access to internet from 11 pm to 11 am
12 user(the rest) have a 24 h access to internet
the script should work in a scheduler for all users at certain times and after disable the specified user should find the block user if active and remove it from the active user list.
I have used a script,but it work for one user at a time
/ip hotspot user disable NAME
/ip hotspot active remove [find user=NAME]
but I need only one script for each group also if there is a better way to do these actions I would be appreciated.
 
User avatar
ram
just joined
Topic Author
Posts: 23
Joined: Sun Apr 15, 2007 12:13 pm
Location: iraq

Mon Apr 23, 2007 9:51 am

44 Views and no Answer ,thanks for all :(
 
User avatar
ram
just joined
Topic Author
Posts: 23
Joined: Sun Apr 15, 2007 12:13 pm
Location: iraq

Mon Apr 23, 2007 9:52 am

44 Views and no Answer ,thanks for all :(
 
User avatar
skillful
Trainer
Trainer
Posts: 552
Joined: Wed Sep 06, 2006 1:42 pm
Location: Abuja, Nigeria
Contact:

Mon Apr 23, 2007 11:38 am

You may find some answers in this post http://forum.mikrotik.com/viewtopic.php?t=15021
 
User avatar
RedHat
newbie
Posts: 42
Joined: Wed Mar 14, 2007 3:23 pm
Location: Earth Planet
Contact:

Re: plz urgent need help on basic script

Mon Apr 23, 2007 4:57 pm

Dear friends
I need script for this case:
30 user on hotspot(mikrotik version 2.9.27)
7 user should have access to internet from 8 am to 8 pm
6 user should have access to internet from 8 pm to 11 pm
5 user should have access to internet from 11 pm to 11 am
12 user(the rest) have a 24 h access to internet
the script should work in a scheduler for all users at certain times and after disable the specified user should find the block user if active and remove it from the active user list.
I have used a script,but it work for one user at a time
/ip hotspot user disable NAME
/ip hotspot active remove [find user=NAME]
but I need only one script for each group also if there is a better way to do these actions I would be appreciated.

hi there ... SKILLFULL is right


http://forum.mikrotik.com/viewtopic.php?t=15021

.. i tryed this script and work nicely but u have to create 3 scripts depend on the profile u want to create

5 user should have access to internet from 11 pm to 11 am those in profile

7 user should have access to internet from 8 am to 8 pm
those in another profile .. and so forth ..

BEST REGARDS
LEO