mag
March 10, 2006, 12:58pm
1
i’m going to automate system update within a few mt-router networks and like to ask a few questions, i could not find answers to yet.
there is an undocumented paramter (2.9.x):
/ system upgrade mirror
set enabled=no primary-server=0.0.0.0 secondary-server=0.0.0.0 check-interval=1d user=“”
anyone an explanation? why is not in the manual, neither online, nor pdf. looks like something to automate upgrading?!
otherwise i had probably to use a system script, checking for new available update(s), downloading it and restarting the router by scheduler?
i found one forum-message concerning this: http://forum.mikrotik.com//viewtopic.php?t=4818
BTW which protocol is used for this, ftp, scp?
i’m using scp to copy files from and to the routers with ftp and telnet usually disabled.
TIA
mag
March 13, 2006, 8:07am
2
Hm, am i alone with this problem? How do other people upgrade their large quantities of MT-boxes?
I tried to configure and to use “system upgrade mirror” but it seems to do nothing at all.
any hints?
normis
March 13, 2006, 11:45am
3
this is not used now, we planned to make special upgrade server but this has not been done yet
mag
March 13, 2006, 1:12pm
4
thanks for the information!
i wrote a little script for my purposes:
/ system upgrade upgrade-package-source
add address=<ip-> user="<user>"
password="<password>"
/system scheduler
add name=sched_upgrade on-event=upgrade start-date=jan/01/2006 start-time=02:00:00 interval=1d
/system script
add name=upgrade source={/system upgrade refresh
:if([/system upgrade get [/system upgrade find source=<ip>] status]!="installed")
do={/system upgrade download-all reboot-after-download=yes}
}
btw. system upgrade seems using the winbox port.
kreigh
April 9, 2007, 4:54pm
5
I seem to be having some issues with this script, I can’t get it to run at all. Nothing in the log, and run-count will not increment.
Any ideas?
Thanks,
-Russ
kreigh
April 10, 2007, 11:27am
6
Nevermind, I figured out something else.
Thanks,
-Russ
Care to share it with us?
/system script
add name=upgrade source={/system upgrade refresh
:if([/system upgrade get [/system upgrade find source=] status]!=“installed”)
do={/system upgrade download-all reboot-after-download=yes}
}
My question is the script works fine up to the point to where its suspose to excute the :do Command but it will not start downloading the new package and then reboot and install.
Yes it increments and shows that it ran.
HaPe
March 22, 2014, 2:43pm
9
Hi, any progress with this feature? Is it possible to run own mirror for example on ftp?
/system scheduler
add interval=1d name=update on-event="/system package update\r\
\ncheck-for-updates\r\
\n:delay 1s;\r\
\n:if ( [get current-version] != [get latest-version]) do={ upgrade }" policy=\
ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api start-date=jan/01/2010 start-time=00:00:00
I am using this and works fine for me on ROS version 6.x