cloud-backup: get values into array

This commit is contained in:
Christian Hesse 2019-07-24 11:05:44 +02:00
parent 5f59211168
commit 1020db0b31

View file

@ -13,8 +13,7 @@
:local BoardName [ / system resource get board-name ]; :local BoardName [ / system resource get board-name ];
:local Model [ / system routerboard get model ]; :local Model [ / system routerboard get model ];
:local SerialNumber [ / system routerboard get serial-number ]; :local SerialNumber [ / system routerboard get serial-number ];
:local Channel [ / system package update get channel ]; :local Update [ / system package update get ];
:local InstalledVersion [ / system package update get installed-version ];
:do { :do {
# we are not interested in output, but print without count-only is # we are not interested in output, but print without count-only is
@ -32,8 +31,8 @@
"Model: " . $Model . "\n" . \ "Model: " . $Model . "\n" . \
"Serial number: " . $SerialNumber . "\n" . \ "Serial number: " . $SerialNumber . "\n" . \
"Hostname: " . $Identity . "\n" . \ "Hostname: " . $Identity . "\n" . \
"Channel: " . $Channel . "\n" . \ "Channel: " . $Update->"channel" . "\n" . \
"RouterOS: " . $InstalledVersion . "\n\n" . \ "RouterOS: " . $Update->"installed-version" . "\n\n" . \
"Name: " . $Cloud->"name" . "\n" . \ "Name: " . $Cloud->"name" . "\n" . \
"Size: " . $Cloud->"size" . "\n" . \ "Size: " . $Cloud->"size" . "\n" . \
"Download key: " . $Cloud->"secret-download-key"); "Download key: " . $Cloud->"secret-download-key");