Community discussions

MikroTik App
 
RobertoS
just joined
Topic Author
Posts: 2
Joined: Thu Dec 21, 2023 4:11 pm

Support X script creation. Reboot when sees message „no sim“

Thu Dec 21, 2023 4:20 pm

I have an LTE router at 2500 m altitude . To reach it I have to walk 2 hours.
After 2 years of working perfectly today it came out message no sim and clearly I had to go to the site because it is no longer remotely reachable

I wanted to create a script that when the message "no sim" appears (even if the sim is inserted ) it automatically does a reboot. Can anyone help me ? Thanks
 
RobertoS
just joined
Topic Author
Posts: 2
Joined: Thu Dec 21, 2023 4:11 pm

Re: Support X script creation. Reboot when sees message „no sim“

Thu Dec 21, 2023 5:39 pm

This kam a Solution ?

:local simStatus [/system health get sim-status]
:if ($simStatus="error") do={
/system health restart
}

Who is online

Users browsing this forum: No registered users and 7 guests