mirror of
https://github.com/eworm-de/routeros-scripts.git
synced 2024-05-11 05:55:19 +00:00
capsman-rolling-upgrade: log with info, give identity
This commit is contained in:
@@ -12,8 +12,9 @@
|
|||||||
:local Delay (600 / $RemoteCapCount);
|
:local Delay (600 / $RemoteCapCount);
|
||||||
:if ($Delay > 120) do={ :set Delay 120; }
|
:if ($Delay > 120) do={ :set Delay 120; }
|
||||||
:foreach RemoteCap in=[ / caps-man remote-cap find where version!=$InstalledVersion ] do={
|
:foreach RemoteCap in=[ / caps-man remote-cap find where version!=$InstalledVersion ] do={
|
||||||
:local RemoteCapName [ / caps-man remote-cap get $RemoteCap name ];
|
:local RemoteCapVal [ / caps-man remote-cap get $RemoteCap ];
|
||||||
:log debug ("Starting upgrade for CAP " . $RemoteCapName . "...");
|
:log info ("Starting upgrade for " . $RemoteCapVal->"name" . \
|
||||||
|
" (" . $RemoteCapVal->"identity" . ")...");
|
||||||
/ caps-man remote-cap upgrade $RemoteCap;
|
/ caps-man remote-cap upgrade $RemoteCap;
|
||||||
:delay ($Delay . "s");
|
:delay ($Delay . "s");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user