Community discussions

MikroTik App
 
MichaelDC
just joined
Topic Author
Posts: 19
Joined: Mon May 22, 2017 2:40 pm

Get LTE SIM Card State

Sun Mar 12, 2023 7:06 pm

Hi everyone,

We are sometimes experiencing issues with R11e-LTE and R11e-LTE6 where the SIM card magically disappears and needs a USB power cycle or reboot of the routerboard

From WinBox I can see what the state of the SIM card is but I can't find anywhere how to call this in a script or terminal.
Can anyone tell me where I could find this ?

Thanks
M.
 
User avatar
krafg
Forum Guru
Forum Guru
Posts: 1020
Joined: Sun Jun 28, 2015 7:36 pm

Re: Get LTE SIM Card State

Mon Mar 13, 2023 12:29 am

Compatible with ROS6. ROS7 not tested.
:local status [/interface lte get lte1 running]
if ($status=false) do={
	/system routerboard usb power-reset;
}
If interface disappears from the interface list, try this;
if ([/interface print count-only where name=lte1]=0) do={
	/system routerboard usb power-reset;
}
Put it on scheduler and that it runs every 5 or 10 minutes (Calculate the typical time to get connected once restarted interface).

Regards.

Who is online

Users browsing this forum: No registered users and 16 guests