Code:Select all
revision: "MikroTik_CP_2.160.000_v018"
- Mikrotik_CP_2: ?
- 160: ?
- 000_v018: version, I guess.
revision: "MikroTik_CP_2.160.000_v018"
Seems to be fixed, ty!*) fetch - fixed "src-address" usage for SFTP;
:foreach interface in=[/interface list member print as-value where list=WAN] do={:put ($interface->"interface")}
:local interfaces [/interface list member find list=WAN]; :foreach interface in=$interfaces do={ :put [/interface get $interface name] }
:foreach filename in=[/file find name ~ "routeros-mipsbe.*"] do={ /tool fetch mode=ftp ... src-path=[/file get $filename name] }
/tool fetch upload=yes url="sftp://server/path/file" user=example password=example src-path=file src-address=ip failure: only http[s]/sftp supports src-address
:local uptime ([/interface lte info [find name=lte1] once as-value]->"session-uptime")