Page 1 of 1
Anyone setup a sched that just runs once a month?
Posted: Mon Jan 04, 2016 11:51 am
by brfan
More specifically, I am looking for the syntax in the cli for createsched that would run a task once a month on the first Saturday. The catch is, since the task is tunesys, it cant be manipulated in the GUI to get the frequency like you want.
Open to any suggestions...
Thanks
Re: Anyone setup a sched that just runs once a month?
Posted: Tue Jan 05, 2016 3:45 pm
by Richard Siemers
Have you tested something like this?
"0 0 1-7 * 6"
I believe in standard unix cron, that will run every Sunday, and also on every day 1 thru 7 of the month... which is not what you want. I'm not sure if createsched has the same issue. Worth a test with a simple non-intrusive command like checkhealth or even a bad command like "THISISNOTREAL" just to generate a failed task event in the log to check when it runs. If you try this out, let us know the results please.
If that doesn't work, you may have to use an external task scheduler to run the command. If your company has an enterprise scheduler like CA ESP, or BMC Control-M, you can kick off the command with SSH.
What is driving the need for a tunesys every month? Typically we only run those after making physical changes to the disk layout (adding more disks).