mirror of
https://github.com/eworm-de/routeros-scripts
synced 2024-05-14 08:04:19 +00:00
cloud-backup: get values into array
This commit is contained in:
parent
5f59211168
commit
1020db0b31
1 changed files with 3 additions and 4 deletions
|
@ -13,8 +13,7 @@
|
|||
:local BoardName [ / system resource get board-name ];
|
||||
:local Model [ / system routerboard get model ];
|
||||
:local SerialNumber [ / system routerboard get serial-number ];
|
||||
:local Channel [ / system package update get channel ];
|
||||
:local InstalledVersion [ / system package update get installed-version ];
|
||||
:local Update [ / system package update get ];
|
||||
|
||||
:do {
|
||||
# we are not interested in output, but print without count-only is
|
||||
|
@ -32,8 +31,8 @@
|
|||
"Model: " . $Model . "\n" . \
|
||||
"Serial number: " . $SerialNumber . "\n" . \
|
||||
"Hostname: " . $Identity . "\n" . \
|
||||
"Channel: " . $Channel . "\n" . \
|
||||
"RouterOS: " . $InstalledVersion . "\n\n" . \
|
||||
"Channel: " . $Update->"channel" . "\n" . \
|
||||
"RouterOS: " . $Update->"installed-version" . "\n\n" . \
|
||||
"Name: " . $Cloud->"name" . "\n" . \
|
||||
"Size: " . $Cloud->"size" . "\n" . \
|
||||
"Download key: " . $Cloud->"secret-download-key");
|
||||
|
|
Loading…
Reference in a new issue