Looks like miracle happened!*) routerboard - added RouterBOOT "auto-upgrade" after RouterOS upgrade (extra reboot required) (CLI only);
Any docs on this?
Looks like miracle happened!*) routerboard - added RouterBOOT "auto-upgrade" after RouterOS upgrade (extra reboot required) (CLI only);
I don't mind to wait for 2 reboot instead of one, if it'll go automatically. Really, it'll save me another login and issuinfg the same command and then run another reboot.As many other features, also this one is only in rc state and is still work on progress. At the moment it only executes "/system routerboad upgrade" feature after RouterOS upgrade if "auto-upgrade=yes". After reboot latest firmware is applied.
If the second reboot happens automatically before any network connectivity is up, then I don't mind that either. ROS boots rather fast (compared to the likes of Cisco for example).I don't mind to wait for 2 reboot instead of one, if it'll go automatically.
Maybe I'm reading like a lawyer, but I don't see anywhere that says the second reboot will happen automatically. "After reboot the latest firmware is applied" doesn't actually say the new feature actually issues the reboot. I just see a commitment that the upgrade will be scheduled if there is an upgrade outstanding, meaning somebody still has to intervene to reboot the router to apply it. I've had that functionality for years -- an eight-line script, triggered every startup by /system schedule:I don't mind to wait for 2 reboot instead of one, if it'll go automatically. Really, it'll save me another login and issuinfg the same command and then run another reboot.As many other features, also this one is only in rc state and is still work on progress. At the moment it only executes "/system routerboad upgrade" feature after RouterOS upgrade if "auto-upgrade=yes". After reboot latest firmware is applied.
BTW, will PoE port(s) firmware be upgraded as well?
:log info "Checking firmware...";
/system routerboard
:if ([get current-firmware] != [get upgrade-firmware]) do={
:log info "Updating firmware";
upgrade;
} else={
:log info "No update."
}
The same script, just set to restart automatically, so I do not have to click manually.Maybe I'm reading like a lawyer, but I don't see anywhere that says the second reboot will happen automatically. "After reboot the latest firmware is applied" doesn't actually say the new feature actually issues the reboot. I just see a commitment that the upgrade will be scheduled if there is an upgrade outstanding, meaning somebody still has to intervene to reboot the router to apply it. I've had that functionality for years -- an eight-line script, triggered every startup by /system schedule:I don't mind to wait for 2 reboot instead of one, if it'll go automatically. Really, it'll save me another login and issuinfg the same command and then run another reboot.As many other features, also this one is only in rc state and is still work on progress. At the moment it only executes "/system routerboad upgrade" feature after RouterOS upgrade if "auto-upgrade=yes". After reboot latest firmware is applied.
BTW, will PoE port(s) firmware be upgraded as well?
Code: Select all:log info "Checking firmware..."; /system routerboard :if ([get current-firmware] != [get upgrade-firmware]) do={ :log info "Updating firmware"; upgrade; # Automatic restart :delay 2s /system reboot } else={ :log info "No update." }
Yeah, I'm extremely wary of automatically scheduling anything that may result in a boot loop that I can't interrupt.The same script, just set to restart automatically, so I do not have to click manually.
That is true, I agree. It may cause a boot loop.Yeah, I'm extremely wary of automatically scheduling anything that may result in a boot loop that I can't interrupt.The same script, just set to restart automatically, so I do not have to click manually.
For example, just this week or so a change in 6.41 renumbered firmware to match the RouterOS release number. Except on older devices the upgrade firmware field showed up blank! This script would have looped forever, because the current firmware would never have matched the ("blank") upgrade firmware.
This is an eventuality that RouterOS would have to address if this procedure were ever made automatic without requiring a script. It would require some sort of stateful execution cross-reboot.
The command to update firmware is /system routerboard upgradeSorry for the dump question, but where i find this command, on terminal ?
i cant find it
thanks
Sorry, for bad explanation, but how to use the new feature to auto upgrade the firmwareThe command to update firmware is /system routerboard upgradeSorry for the dump question, but where i find this command, on terminal ?
i cant find it
thanks
If you are asking about some other command, please be more specific what command you are asking about.
The way my "bootloader install" script works is by only having it be run by a scheduler set to startup, but the scheduler is only ever enabled right after the "update RouterOS" script is run, then the scheduler disable itself before attempting reboot.For example, just this week or so a change in 6.41 renumbered firmware to match the RouterOS release number. Except on older devices the upgrade firmware field showed up blank! This script would have looped forever, because the current firmware would never have matched the ("blank") upgrade firmware.
I would love this. For RouterOS to automatically reboot and install a new bootloader when detected. Especially if it can do so without starting any network connectivity.If the second reboot happens automatically before any network connectivity is up, then I don't mind that either. ROS boots rather fast (compared to the likes of Cisco for example).I don't mind to wait for 2 reboot instead of one, if it'll go automatically.
@DeantwoFor example, just this week or so a change in 6.41 renumbered firmware to match the RouterOS release number. Except on older devices the upgrade firmware field showed up blank! This script would have looped forever, because the current firmware would never have matched the ("blank") upgrade firmware.