/build/static/layout/Breadcrumb_cap_w.png

How to schedule patches on the 3rd Saturday of the month

April 2018: A little while ago, we made an update to CRON scheduler so that this functionality is now built into the SMA (K1000) but only for the patching schedules.  This syntax does now work on Dell Update Schedules if needed.

10/2015 Update:  This is not currently supported in the CRON scheduler.  Will update this article when a suitable workaround is released.

Setting a specific ordinal of days (i.e the 3rd Saturday of the month) is not part of the cron scheduling mechanism which is used in the K1000.  But there are some clever things that may work.

Since you can set a schedule to only be active between certain days, and the 3rd Saturday would only ever fall between the 15th and the 21st of the month, we can setup a schedule that only patches on Saturdays between the 15th and the 21st.  

So a schedule to do this might be coded like this:

30 2 15-21 * 6

Translation:  2:30 am between the 15th and 21st ONLY on Saturdays of every month.

The cron custom schedule options are listed here....

*    *    *    *    *
-    -    -    -    -
|    |    |    |    |
|    |    |    |    +--------- day of week (0 - 6) (Sunday=0)
|    |    |    +---------- month (1 - 12)
|    |    +----------- day of month (1 - 31)
|    +------------ hour (0 - 23)
+------------- min (0 - 59)


Comments

  • Awesome!!! - h2opolo25 9 years ago
  • Does this actually work? I thought that would just make it run every day between the 15th and 21st and also every Saturday? I thought Cron did an "or" against the values rather than "and". - Drave 8 years ago
    • After some testing and discussions it appears that the logic while sound, is not going to work in the K1000. Something to do with the CRON scheduler not supporting this exact syntax. I have a note into development to see if they can include this feature in the master scheduler or at least make the Cron function work properly. - jamie_kace 8 years ago
      • I believe the main scheduler actually just uses cron to schedule. When you set the schedule through the drop downs, you'll notice they do exactly what cron does. My guess is that they just translate form those options to cron. - Drave 8 years ago
This post is locked
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ