Community discussions

MikroTik App
 
User avatar
ArjanS
just joined
Topic Author
Posts: 17
Joined: Tue Dec 23, 2008 11:10 pm
Location: Canzibe, South Africa
Contact:

AutomatedBilling

Wed Jan 14, 2009 10:42 pm

Anyone who can tell me exactly how to implement AutomatedBilling?
 
User avatar
jordantrx
Long time Member
Long time Member
Posts: 505
Joined: Tue Oct 23, 2007 8:58 pm
Location: WAY upstate NY

Re: AutomatedBilling

Thu Jan 15, 2009 2:17 am

Anyone who can tell me exactly how to implement AutomatedBilling?
Yes, Fairly simple, It is all based on scripts and how you want those scripts to execute. what are you looking to do? You will need a few things first, and SMTP server to send out the e-mails and some scripting knowledge. Put the scripts in the system, and have a scheduler exe them when you would like them to. I can help you if you want. Let me know exactly what your tyring to do. You should probibly use ROS 3.0 Rc7 For this automated billing script.
 
User avatar
ArjanS
just joined
Topic Author
Posts: 17
Joined: Tue Dec 23, 2008 11:10 pm
Location: Canzibe, South Africa
Contact:

Re: AutomatedBilling

Thu Jan 15, 2009 6:13 am

I'm running a network on a hospital compound in South Africa. I work there as a volunteers. It's a remote area and we need to get on Internet via Satellite. I bought A RB411 and went to a course for beginners to learn to understand MT. We have several bridges for long distances and end up with AP's

I run Hotspot and UM in 3.18. I noticed that UM is time-based but I have to pay ISP Telkom the amount of data we use. I notice that I can set time and data limits but adding a user in Userman I want to give the user a amount of data. The RB should then reset the data limit automatically every month. But I also want to allow the admin to increase the datacap of course.

Is it already possible to set the RB like that or do i need scripts. I can understand scripts a bit. AutomatedBilling is advanced and might be usefull. My user already freak-out when they see the login page of MT. So AutomatedBilling will kill them...
 
User avatar
normis
MikroTik Support
MikroTik Support
Posts: 26912
Joined: Fri May 28, 2004 11:04 am
Location: Riga, Latvia
Contact:

Re: AutomatedBilling

Thu Jan 15, 2009 12:16 pm

You should probibly use ROS 3.0 Rc7
huh ???
 
User avatar
ArjanS
just joined
Topic Author
Posts: 17
Joined: Tue Dec 23, 2008 11:10 pm
Location: Canzibe, South Africa
Contact:

Re: AutomatedBilling & RFM

Fri Jan 16, 2009 9:18 am

So i use 3.18. Or is this problem a RFM (Read the Fu&^$% Manual)?
 
User avatar
jordantrx
Long time Member
Long time Member
Posts: 505
Joined: Tue Oct 23, 2007 8:58 pm
Location: WAY upstate NY

Re: AutomatedBilling

Fri Jan 16, 2009 5:12 pm

You should probibly use ROS 3.0 Rc7
huh ???
Normis that was what the script was built on, So it will best work on that. However I guess it is up and working on 3.5 ( in the wikie he says he got it working on 3.5) , and mite work on 3.18 (however I have upgraded and am having issues now) So for simplicity I would say use Rc7 being that is what the script was made on. (no errors). Im on 3.10 (upgraded from 3.0 Rc7 and the billing script part worked fine but the first 2 scripts do not trigger the billing script (haven't had time to see what error it is putting out but when I have time I will try and impliment this billing script onto the latest version of router OS.


So I will re state this to we need 3.5 or up. Exp because the new routerboards dont even support that Version Of ROS, atleast The 433's.
 
User avatar
jordantrx
Long time Member
Long time Member
Posts: 505
Joined: Tue Oct 23, 2007 8:58 pm
Location: WAY upstate NY

Re: AutomatedBilling

Fri Jan 16, 2009 5:20 pm

I'm running a network on a hospital compound in South Africa. I work there as a volunteers. It's a remote area and we need to get on Internet via Satellite. I bought A RB411 and went to a course for beginners to learn to understand MT. We have several bridges for long distances and end up with AP's

I run Hotspot and UM in 3.18. I noticed that UM is time-based but I have to pay ISP Telkom the amount of data we use. I notice that I can set time and data limits but adding a user in Userman I want to give the user a amount of data. The RB should then reset the data limit automatically every month. But I also want to allow the admin to increase the datacap of course.

Is it already possible to set the RB like that or do i need scripts. I can understand scripts a bit. Automated Billing is advanced and might be use full. My user already freak-out when they see the login page of MT. So Automated Billing will kill them...
Ok Well read over the entire automated billing scripts, Then add them in one at a time naming them as they are. Then once you change the scripts to the correct Ip's etc etc try to do a /system script run billing, See if that will shoot out some stuff to you. Make sure you have indication set forth in UM such as 512 in the pool name. We just want to make sure it can purge UM and hook up to it once it is run. If it does Good then we can proceed. If you want need a good amount of help we may need to carry this topic off forum. I can give you one of my edit script that I can re edit for your network and send to you. But I Have learned it is very important that if you really want to do something you have to try very hard your self to learn and understand it that way you yourself Will learn script and this script better. Let me know what you come up with or what you may be shady on, I will post back with what I can help you with. -Jordan
 
User avatar
ArjanS
just joined
Topic Author
Posts: 17
Joined: Tue Dec 23, 2008 11:10 pm
Location: Canzibe, South Africa
Contact:

Re: AutomatedBilling

Fri Feb 06, 2009 8:42 pm

So, to reset the usage counters only at monthly end i use script 1,2 and change script 4(s) in:
 /tool user-manager user
 :foreach i in=[ /tool user-manager user find subscriber=admin ] do={
reset-counters $i
}

Am i right or is there an easier way?
like bringing script 2 and 4(s) together.

Arjan

Who is online

Users browsing this forum: No registered users and 8 guests