Page 1 of 1
Scheduled script not running
Posted: Tue Apr 26, 2016 3:05 pm
by valdemirs
Hi,
I have a script installed in my Mikrotik router, but it´s not running in the desired time.
https://snag.gy/a6xq9N.jpg
Can you tell me what´s wrong here ?
Thanks
Re: Scheduled script not running
Posted: Tue Apr 26, 2016 3:16 pm
by mrz
You didn't specify any script to run "on-event"
Re: Scheduled script not running
Posted: Tue Apr 26, 2016 5:01 pm
by valdemirs
Thanks a lot.
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 3:54 pm
by valdemirs
My script didn´t run at the specified time, am I forgetting anything ?
In the field "On Event" I put the script name: "Mac-Change"
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 3:57 pm
by BartoszP
Are you sure that the script is syntactically correct ? Script with errors could not "run".
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 4:08 pm
by valdemirs
The script is working fine, when I run it I get the message in the Log area:
New MAC 602d0cbf1d28
And the router´s MAC addres is changed, but it´s not running in the scheduller.
Need I mark any option in the "Policy" area ?
Are you sure that the script is syntactically correct ? Script with errors could not "run".
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 4:53 pm
by mrz
It doesn't say much
post the code of your script.
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 4:59 pm
by valdemirs
I got the script from this forum:
http://forum.mikrotik.com/viewtopic.php?t=102357
I created a new schedul - Let´s see tomorrow what´s happen...
It doesn't say much
post the code of your script.
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 5:00 pm
by IntrusDave
Your On Event should read
/system script run Mac-Change
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 5:07 pm
by mrz
Your On Event should read
/system script run Mac-Change
No, it is enough to specify valid script name.
Re: Scheduled script not running
Posted: Wed Apr 27, 2016 5:10 pm
by IntrusDave
No, it is enough to specify valid script name.
I have had issues with that in the past, so I have always put the whole command in.
Re: Scheduled script not running
Posted: Thu Apr 28, 2016 3:03 pm
by valdemirs
Unfortunately my scripts didn´t work. The router´s mac addres wasn´t changed, and I can´t see any data about
Mac changes in the log area:
When I run the script by hand I can see the information in the log area:
Re: Scheduled script not running
Posted: Fri Apr 29, 2016 5:56 am
by IntrusDave
Do both the script and the schedule have full permissions?
Re: Scheduled script not running
Posted: Fri Apr 29, 2016 7:50 am
by valdemirs
Can you tell me how enable permissions in the scripts ?
Re: Scheduled script not running
Posted: Fri Apr 29, 2016 5:24 pm
by IntrusDave
In the "Policy" section. Try marking all of the boxes.
Also, if you post the script, we can test it and see what's going on.
Screen Shot 2016-04-29 at 7.22.38 AM.png
Screen Shot 2016-04-29 at 7.22.50 AM.png
Re: Scheduled script not running
Posted: Fri Apr 29, 2016 5:40 pm
by valdemirs
This is the script:
http://forum.mikrotik.com/viewtopic.php?t=102357
I did your recommendation and check all box in the Policy area:
Let´s go to see what´s happen tomorrow...
In the "Policy" section. Try marking all of the boxes.
Also, if you post the script, we can test it and see what's going on.
Screen Shot 2016-04-29 at 7.22.38 AM.png
Screen Shot 2016-04-29 at 7.22.50 AM.png
Re: Scheduled script not running
Posted: Sat Apr 30, 2016 6:52 pm
by valdemirs
Problem solved !
Thanks a lot for your answers .
Re: Scheduled script not running
Posted: Sat Apr 30, 2016 8:03 pm
by IntrusDave
Glad to have helped.