Hi,
In 2.9.x I could do the following:
/system upgrade upgrade-package-source add address=192.168.100.1 user=admin password=XXXXXX
In 3.X (im using 3.4) you can do this from the TERMINAL window:
/system upgrade upgrade-package-source add address=192.168.100.1 user=admin
XXXXXX
And that works fine.
But I need to do it from a SCRIPT, not the terminal, and you cannot do it either way that is stated above. It seems like this may have been missed, unless someone can tell me how to do it another way?
Further to this, the following commands work in the TERMINAL but not in the scripting engine:
:foreach UpdatePackage in=[/system upgrade find] do={:log info
("Firmware Version Found: " . [/system upgrade get $UpdatePackage version ])}
/system upgrade download 0
/system upgrade download-all
All of which you need. Basically this says to me that any support for using the scripting engine in conjunction with the upgrade facility in routerOS has been removed or does not work.
Please, happy if someone proves me wrong.
Please note that this was all tested with a 3.3 router connected to a 3.4 router with the 3.4 router having the 3.4 package uploaded to it, and the 3.3 router doing the scripting.