mirror of
https://github.com/laspavel/mikrotik-scripts.git
synced 2025-06-20 21:35:45 +02:00
Add console output scripts
This commit is contained in:
parent
34f3ddb148
commit
299a944ab9
2 changed files with 4 additions and 2 deletions
|
@ -32,7 +32,6 @@
|
|||
:delay 2s
|
||||
|
||||
#email copies
|
||||
:log info "Emailing backups"
|
||||
:local time [/system clock get time]
|
||||
/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 $backupfilename
|
||||
|
||||
:log info "Backups created."
|
||||
:put "Backups created."
|
||||
|
||||
} on-error={
|
||||
/log error "***** AUTOBACKUP script finished with error ******"
|
||||
}
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
/interface l2tp-client set [find Name=VPN1] connect-to=$vpnhost;
|
||||
/interface l2tp-client enable VPN1;
|
||||
|
||||
:log info "*** Interface l2tp-client modified ***";
|
||||
:log info "Interface l2tp-client modified. New VPN endpoint: $vpnhost";
|
||||
:put "$vpnhost"
|
||||
|
||||
} on-error={
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue