I successfully used this script line with ROS V3.28
V4.0 beta 4 reported me a strange error:
/interface pptp-client monitor 0 once do={:put ciao}
Script Error: attempt to index a function value
I successfully used this script line with ROS V3.28
V4.0 beta 4 reported me a strange error:
/interface pptp-client monitor 0 once do={:put ciao}
Script Error: attempt to index a function value
is ‘0’ your interface name?..
0 is interface array index. anyway … everything works without DO={…}
some terminal test to avoid any dubt about the bug:
> :put [/int find name="vpnArgos"]
*9
/interface pptp-client monitor [/int find name="vpnArgos"] once
status: "connected"
uptime: 11h41m3s
idle-time: 59m57s
encoding: "MPPE128 stateless"
mtu: 1460
mru: 1460
>/interface pptp-client monitor [/int find name="vpnArgos"] once do={:put ciao}
Script Error: attempt to index a function value
this will work in next 4.0beta release.
will look like this:
[admin@MikroTik] > /interface ethernet monitor 0 once do={:put ciao}
ciao
status: link-ok
auto-negotiation: done
rate: 100Mbps
full-duplex: yes
probably this is only a stupid puntualization. I’m looking to catch “idle-time”.
In your example doesn’t compare… but you take an ethernet interface.
Anyway .. theorically .. fixing DO sentence will make everything work …
V4.0 rc1 fixed it.