Dual SIM failover script

Hello!

Somebody got script for failover script for SXT LTE 2 sim slots?
I need to check whitch slot are active.
I try to check model name without success.

Thanks for any help!
TestScript.txt (507 Bytes)

Yes, but different scenario are doing. What you want to do?
.

I need to check whitch slot are active.

.

[marcin.przysowa@SXTR_LTE6] > put [/system routerboard modem get sim-slot ]
a

.

I try to check model name without success.

Name of what?

[marcin.przysowa@SXTR_LTE6] > put [/system routerboard get model  ]            
RBSXTR
[marcin.przysowa@SXTR_LTE6] > put [/system routerboard get board-name  ]
SXT R
[marcin.przysowa@SXTR_LTE6] > put [/system routerboard get revision   ]    
r2
[marcin.przysowa@SXTR_LTE6] > put [/system resource usb get [find where vendor=MikroTik ] name] 
R11e-LTE6

Thanks!
Later i try to write the script for Dual sim failover.
It must work like this:

If slot a is active and ping doesn’t work schange slot to b and apn to APN_b.
If slot b is active and doesn’t work try to change slot to a and apn to APN_a.
The main slot must be slot a so i must check whitch slot are active and if slot b is active i must change to slot a. /I think this must be in another script/

ZoleeXP

95% is done in: