Page 1 of 1

plz urgent need help on basic script

Posted: Wed Apr 18, 2007 8:33 am
by ram
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.

Posted: Mon Apr 23, 2007 9:51 am
by ram
44 Views and no Answer ,thanks for all :(

Posted: Mon Apr 23, 2007 9:52 am
by ram
44 Views and no Answer ,thanks for all :(

Posted: Mon Apr 23, 2007 11:38 am
by skillful
You may find some answers in this post http://forum.mikrotik.com/viewtopic.php?t=15021

Re: plz urgent need help on basic script

Posted: Mon Apr 23, 2007 4:57 pm
by RedHat
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