Community discussions

MikroTik App

Search found 6 matches

by sergios
Thu Mar 19, 2015 9:15 am
Forum: Scripting
Topic: Problem with scheduler
Replies: 8
Views: 4867

Re: Problem with scheduler

I have analyzed execution of function ""check3Gstatus"" more deeper and noticed that "/interface ppp-client monitor 0 once" is not executed. The last question is "Where is an error?"
by sergios
Wed Mar 18, 2015 10:24 pm
Forum: Scripting
Topic: Problem with scheduler
Replies: 8
Views: 4867

Re: Problem with scheduler

I inserted into the test script debug messages. So, the scheduler configuration now looks like: [admin@Branch-Node-Test] /system scheduler> print Flags: X - disabled # NAME START-DATE START-TIME INTERVAL ON-EVENT RUN-COUNT 0 X CHECK-GATEWAY jan/02/1970 00:00:00 5s CHECK-GATEWAY 0 1 X CONTROL-3G-CONN...
by sergios
Mon Mar 16, 2015 3:22 pm
Forum: Scripting
Topic: Problem with scheduler
Replies: 8
Views: 4867

Re: Problem with scheduler

Ok, let's simplify scripts for better understanding situation. I disabled both scripts in scheduler: [admin@Branch-Node-Test] /system scheduler> print Flags: X - disabled # NAME START-DATE START-TIME INTERVAL ON-EVENT RUN-COUNT 0 X CHECK-GATEWAY jan/02/1970 00:00:00 5s CHECK-GATEWAY 0 1 X CONTROL-3G...
by sergios
Wed Mar 11, 2015 6:19 pm
Forum: Scripting
Topic: Problem with scheduler
Replies: 8
Views: 4867

Re: Problem with scheduler

"/system clock print" command displays correct date and time because ntp was configured earlier. I have just tried to reset the whole system configuration and I noticed that default date is 02 jan 1970. Here is an output: [admin@MikroTik] > system clock print time: 00:01:09 date: jan/02/19...
by sergios
Sat Feb 21, 2015 4:15 pm
Forum: Scripting
Topic: Problem with scheduler
Replies: 8
Views: 4867

Re: Problem with scheduler

If I understand correctly, You reboot the device, wait, the script runs automatically and everything works fine. BUT If you reboot the device, and check the scheduler with "/system scheduler print" before it runs for the first time, then it never runs no matter how long you wait? Or is it...
by sergios
Thu Feb 19, 2015 1:51 pm
Forum: Scripting
Topic: Problem with scheduler
Replies: 8
Views: 4867

Problem with scheduler

Hi to All! I'm using Mikrotik RB951Ui-2HnD with firmware version 3.19. I wrote 2 scripts, both are using the same global variables. One script handles those variables and other one, just use the values but not modifying them. Initially, these variables have no value or typeof is set to "nothing...