Community discussions

MikroTik App
 
dima1002
Member Candidate
Member Candidate
Topic Author
Posts: 160
Joined: Fri Jan 26, 2018 8:40 pm

Fetch newest routeros with architecture

Sun Feb 13, 2022 2:48 pm

Hello,

how can I download the latest version of the router on the switch?

that does not work

:global platform [/system resource get architecture-name];
/tool fetch url="sftp://192.168.111.254/routeosVERSION.npk" dst-path="routeosVERSION.npk" user="test" password="test";
 
Rugx
Member Candidate
Member Candidate
Posts: 123
Joined: Thu Jan 02, 2020 1:44 pm

Re: Fetch newest routeros with architecture

Mon Feb 14, 2022 10:15 am

{
:local vers "7.1.2";
:local arc [/system resource get architecture-name];
/tool fetch mode=https url="https://download.mikrotik.com/routeros/$vers/routeros-$vers-$arc.npk"
}
Of course if you don't want to manually set the $vers variable, some other shenanigans will be required
The usual
/system package update install
is not sufficient?
 
Rugx
Member Candidate
Member Candidate
Posts: 123
Joined: Thu Jan 02, 2020 1:44 pm

Re: Fetch newest routeros with architecture

Mon Feb 14, 2022 10:56 am

..mikrotik.com/routeros/$vers/routeros-$vers-$arc.npk"
If you are looking for rOS version 6.x, change places of the $vers and $arc, as for some reason they are reversed there:
.../routeros/$vers/routeros-$arc-$vers.npk"

Who is online

Users browsing this forum: eldoncito2019 and 9 guests