Community discussions

MikroTik App
 
eslamzadeh
just joined
Topic Author
Posts: 3
Joined: Sat Jan 16, 2021 7:07 am
Location: Turkey

Aoutomatic Upgrade router Firmwarewith scripting

Sun Apr 03, 2022 2:15 pm

Hi,
I have an RB2011UiAS router and I want Upgrade that router firmware Automatically I use this script on my router but it's not working correctly
:global Var1
:global Var2
:set Var1 \"\$[/system package get system version]"
:set Var2 \"\$[/system routerboard get current-firmware]"
:if (\$Var1>\$Var2) do={/system routerboard upgrade:
/system reboot;
}
 
User avatar
Jotne
Forum Guru
Forum Guru
Posts: 3291
Joined: Sat Dec 24, 2016 11:17 am
Location: Magrathean

Re: Aoutomatic Upgrade router Firmwarewith scripting

Sun Apr 03, 2022 2:25 pm

Read this post:
viewtopic.php?p=788771#p788771

Never, ever let the system auto upgrade without having a hold trigger.

After new firmware comes out, wait 2-3 weeks and read all post to see if any serious bug arrive. Test new software on a local test router with same hardware and config and see if it works fine.
If no problem are seen, then you can do an upgrade, if its needed. No need to upgrade if there are noe new function added that you need, or a bug that are connected to your hardware/config.

Who is online

Users browsing this forum: marcelofares and 21 guests