Anyone setup a sched that just runs once a month?

Post Reply
brfan
Posts: 4
Joined: Wed Nov 07, 2012 3:39 pm

Anyone setup a sched that just runs once a month?

Post 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
User avatar
Richard Siemers
Site Admin
Posts: 1331
Joined: Tue Aug 18, 2009 10:35 pm
Location: Dallas, Texas

Re: Anyone setup a sched that just runs once a month?

Post 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).
Richard Siemers
The views and opinions expressed are my own and do not necessarily reflect those of my employer.
Post Reply