System Schedular Interval parameters

Please update your user manual to include sub command parameters i.e.:
/system schedular interval

For a newby it would save time to know that apart from 00:00:00,
you can specify 1h for 1 hour & 1d for day.

Please tell us the parameter for 1 month as it logically needed.

Need to run a job on the first day of every month & dont want to manually change the run date everytime for the next month on all mikrotik routers.

There is no month settings, you can set only days.
For example,

system scheduler add interval=30d

As a programmer I found it strange that “interval” dont support a monthly parameter.
Days cant be used because the amount of days per month is not the same.

I do need to e-mail statistics & reboot the router on a monthly basis in order to charge my customers.
Cant think that I will be your only customer needing a monthly interval parameter.

Any update regarding monthly scheduler?

I would run the script every day, and the first lines would parse the date. Save the stored month as a global variable, then every day when the script runs, get and parse the current date, then compare the current month to the stored month. If not equal, then it is a new month. Run the monthly update and set the stored month to the current month. Else exit.

I haven’t looked in the wiki. Maybe that would be a good idea.

ADD: If MT added the interval ‘M’ as month, then consider this schedule:

/system scheduler
add name=test start-date=jan/31/2011 on-event=test interval=1M

If you want the last report date to survive a router reboot, then store that last report date in a file.

Hm, I’ve tried Scheduler before with Interval 1M and it doesn’t work…

I have similar idea, I can check every day if it is first day in month.

:local date [/system clock get date];
:local dayYear [:pick $date ([:find $date "/" 0] + 1) [:len $date]];
:local day [:pick $dayYear 0 [:find $dayYear "/" 0]];
:if ($day = "01") do={
:log info "FIRST DAY IN MONTH";
}