Add console output scripts

This commit is contained in:
laspavel 2023-05-13 11:14:11 +03:00
parent 34f3ddb148
commit 299a944ab9
2 changed files with 4 additions and 2 deletions

View file

@ -32,7 +32,6 @@
:delay 2s :delay 2s
#email copies #email copies
:log info "Emailing backups"
:local time [/system clock get time] :local time [/system clock get time]
/tool e-mail send to=$"toemail" subject="[$sysname Config Backup] $time $date" file=($"backupfilename",$"textfilename") body="Uptime: $uptime" /tool e-mail send to=$"toemail" subject="[$sysname Config Backup] $time $date" file=($"backupfilename",$"textfilename") body="Uptime: $uptime"
@ -43,6 +42,9 @@
/file remove $textfilename /file remove $textfilename
/file remove $backupfilename /file remove $backupfilename
:log info "Backups created."
:put "Backups created."
} on-error={ } on-error={
/log error "***** AUTOBACKUP script finished with error ******" /log error "***** AUTOBACKUP script finished with error ******"
} }

View file

@ -10,7 +10,7 @@
/interface l2tp-client set [find Name=VPN1] connect-to=$vpnhost; /interface l2tp-client set [find Name=VPN1] connect-to=$vpnhost;
/interface l2tp-client enable VPN1; /interface l2tp-client enable VPN1;
:log info "*** Interface l2tp-client modified ***"; :log info "Interface l2tp-client modified. New VPN endpoint: $vpnhost";
:put "$vpnhost" :put "$vpnhost"
} on-error={ } on-error={