mirror of
https://git.eworm.de/cgit/routeros-scripts
synced 2025-08-19 00:58:48 +02:00
email-backup: get values into array
This commit is contained in:
parent
21996dfcaf
commit
32cc5d1078
1 changed files with 3 additions and 4 deletions
|
@ -28,8 +28,7 @@
|
||||||
|
|
||||||
# get some system information
|
# get some system information
|
||||||
:local BoardName [ / system resource get board-name ];
|
:local BoardName [ / system resource get board-name ];
|
||||||
:local Model [ / system routerboard get model ];
|
:local RouterBoard [ / system routerboard get ];
|
||||||
:local SerialNumber [ / system routerboard get serial-number ];
|
|
||||||
:local Update [ / system package update get ];
|
:local Update [ / system package update get ];
|
||||||
|
|
||||||
# binary backup
|
# binary backup
|
||||||
|
@ -51,8 +50,8 @@
|
||||||
subject=("[" . $Identity . "] Backup & Config") \
|
subject=("[" . $Identity . "] Backup & Config") \
|
||||||
body=("Backup and config export for " . $Identity . ".\n\n" . \
|
body=("Backup and config export for " . $Identity . ".\n\n" . \
|
||||||
"Board name: " . $BoardName . "\n" . \
|
"Board name: " . $BoardName . "\n" . \
|
||||||
"Model: " . $Model . "\n" . \
|
"Model: " . $RouterBoard->"model" . "\n" . \
|
||||||
"Serial number: " . $SerialNumber . "\n" . \
|
"Serial number: " . $RouterBoard->"serial-number" . "\n" . \
|
||||||
"Hostname: " . $Identity . "\n" . \
|
"Hostname: " . $Identity . "\n" . \
|
||||||
"Channel: " . $Update->"channel" . "\n" . \
|
"Channel: " . $Update->"channel" . "\n" . \
|
||||||
"RouterOS: " . $Update->"installed-version" . "\n\n" . \
|
"RouterOS: " . $Update->"installed-version" . "\n\n" . \
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue