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
Anyone setup a sched that just runs once a month?
- Richard Siemers
- Site Admin
- Posts: 1333
- Joined: Tue Aug 18, 2009 10:35 pm
- Location: Dallas, Texas
Re: Anyone setup a sched that just runs once a month?
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).
"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).
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
The views and opinions expressed are my own and do not necessarily reflect those of my employer.