HPE Storage Users Group
https://3parug.net/

Anyone setup a sched that just runs once a month?
https://3parug.net/viewtopic.php?f=17&t=1853
Page 1 of 1

Author:  brfan [ Mon Jan 04, 2016 11:51 am ]
Post subject:  Anyone setup a sched that just runs once a month?

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

Author:  Richard Siemers [ Tue Jan 05, 2016 3:45 pm ]
Post subject:  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).

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/