Community discussions

MikroTik App
 
nero773
just joined
Topic Author
Posts: 1
Joined: Sun Nov 08, 2020 1:05 am

Automatic sim switch due to data usage

Sat Nov 14, 2020 1:26 am

Hi all, I am a beginner in this environment and I would like to know if there is a system to automatically change the sim slot from a to b or vice versa depending on the traffic threshold of each sim. I have 2 sims installed, in slot a one with 70GB of bundles per month, in slot b one with 100GB of bundles per month. I would like the mikrotik sxt lte to automatically change the sim when I reach 90% of the monthly bundle of exchanged data, only if the month of the bundle is close to the end and without a SIM switch I would find myself paying extra costs with the operator.
On the forum.mikrotik.com site I found the following script that automatically changes the slot:
if ([interface / lte / settings / get sim-slot] = "a") do = {
  log warning "LTE SIM SLOT will change to B"
  interface / lte / settings / set sim-slot = b
} else = {
  log warning "LTE SIM SLOT will change to A"
  interface / lte / settings / set sim-slot = a
}

, but it is not enough, I also have to do a traffic monitoring and add a threshold to it that executes the script described above, unfortunately my skills do not understand how I could do it. So I'm wondering if anyone can help me? Is it feasible to do that ?
Thanks.

Who is online

Users browsing this forum: No registered users and 20 guests