Mikrotik
0
Вклад в тег
{
:local sysname [/ip dhcp-server network get number=0 gateway];
:local sysversion [/system routerboard get current-firmware];
:local file [system package update check-for-updates file=("$sysname-" . "$sysversion")]
:local files [("$sysname-" . "$sysversion")]
:delay 3s;
:local ftphost "192.168.1.2";
:local ftpuser "User";
:local ftppassword "password";
:local ftppath "/";
/tool fetch address="$ftphost" src-path="$files.txt" user="$ftpuser" mode=ftp password="$ftppassword" dst-path="$ftppath/$files.txt" upload=yes
}