Community discussions

MikroTik App
 
User avatar
saaremaa
Member Candidate
Member Candidate
Topic Author
Posts: 162
Joined: Tue Feb 02, 2010 7:48 pm
Location: Baltijos šalių miestas

Feature request: Manual defined update server

Fri Nov 20, 2015 9:09 am

We are a company that uses a large amount of equipment Mikrotik. We have problems with the software update. Our Mikrotik SXT / Sextant do not have access to the Internet and can not upgrade to the latest version automatically via the Internet. My colleagues have to update equipment or by hand or with the help of the developed scripts - it is not convenient. We ask that you add "/ system package update check-for-updates" channel "manual server defined". The server address of this channel is assigned manually by the administrator. The server is located within the network operator and the operator itself downloads the updates on this server. Equipment that does not have Internet access can easily check the service pack now offers on the server, download and install it. Download and update we can appoint through scheduler RouterOS.
Upd. We do not use or intend to use The Dude
You do not have the required permissions to view the files attached to this post.
 
andriys
Forum Guru
Forum Guru
Posts: 1526
Joined: Thu Nov 24, 2011 1:59 pm
Location: Kharkiv, Ukraine

Re: Feature request: Manual defined update server

Fri Nov 20, 2015 10:05 am

Please check the '/system upgrade' menu.
Please note that it is completely different from '/system package update'.
 
User avatar
saaremaa
Member Candidate
Member Candidate
Topic Author
Posts: 162
Joined: Tue Feb 02, 2010 7:48 pm
Location: Baltijos šalių miestas

Re: Feature request: Manual defined update server

Fri Nov 20, 2015 1:55 pm

We tried to use it, but the script is not working. "Upgrade Package Source" is configured correctly.
/system upgrade refresh
:if ( [/system upgrade find source=xx.xx.xx.xx]  status !="installed")  do={
  /log info "Start to download latest packages....";
  /system upgrade download-all;
}
if we run the command manually everything works.
/system upgrade refresh
/system upgrade download-all
We have found that within the if block is not processed for some reason, that command "/ system upgrade download-all"
Any ideas?
You do not have the required permissions to view the files attached to this post.
 
User avatar
saaremaa
Member Candidate
Member Candidate
Topic Author
Posts: 162
Joined: Tue Feb 02, 2010 7:48 pm
Location: Baltijos šalių miestas

Re: Feature request: Manual defined update server

Fri Nov 20, 2015 3:44 pm

We decided for this problem as follows:
1. We make a static entry in the DNS on Mikrotik equipment
/ip dns static
add address= "Our web server ip" name=upgrade.mikrotik.com
2. On our web-server raised the mirror repository RouterOS fully coincides with the structure of the original.
3. Ta-daaaaaaa! /system package update work! Our equipment is updated from our domestic network through.
/system package update check-for-updates
:delay 10s;
:if ( [get current-version] != [get latest-version]) do={ 
/sys package update install
};
Thnks, Bigfoot → http://forum.mikrotik.com/viewtopic.php ... 53#p482553

Who is online

Users browsing this forum: Bing [Bot], britgent, rextended, rjuho and 91 guests