Hi all,
I'm trying to use the following script taken from Mikrotik wiki page https://wiki.mikrotik.com/wiki/Wake_on_ ... te_Desktop :
:foreach A in=[/ip firewall address-list find name=wakeOnLan] do={
if ([/ip firewall address-list get $A list]="wakeOnLan") do={
/system script add name=pinging source={
if ([/ping $A count=2] = 0) do={
:log info "Sending WoL to $[/ip firewall address-list get $A address]"
/tool wol mac=11:22:33:44:55:66:77 interface=ether3
:log info "Removing IP $[/ip firewall address-list get $A address] from list"
/ip firewall address-list remove $A
}
}
}
}
But every time I try to execute it i get the "script error: not enough permissions (9)".
Version of RouterOS is: 6.39.2
Can someone provide some information on what could be causing the fault ?
BR,
Geronimo