time based classes

4 views
Skip to first unread message

Xander Cage

unread,
Jul 9, 2024, 10:21:32 AMJul 9
to help-cfengine
Hi,

i read marks document about scheduling with time based classes...


i want to use a class expression like this "Hr03.Min00_59"" which translates to "run at hour 3 between minute 0 and 59, correct?

as this expression is not fireing i consulted cf-promises to list the avaiable time_based classes and the mentioned items are not there.

root@aixtest01: /root/cfe_testbed # /var/cfengine/bin/cf-promises --show-classes | grep time_based
Afternoon                                                    time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Day9                                                         time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Afternoon                                                time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Day9                                                     time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Hr14                                                     time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Hr14_Q2                                                  time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_July                                                     time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Lcycle_2                                                 time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Min15_20                                                 time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Min19                                                    time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Q2                                                       time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Tuesday                                                  time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
GMT_Yr2024                                                   time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Hr16                                                         time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Hr16_Q2                                                      time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
July                                                         time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Lcycle_2                                                     time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Min15_20                                                     time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Min19                                                        time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Q2                                                           time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Tuesday                                                      time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass
Yr2024                                                       time_based,cfengine_internal_time_based_autoremove,source=agent,hardclass

what am i missing here (again)?

wbr

chris

Vratislav Podzimek

unread,
Jul 9, 2024, 10:36:44 AMJul 9
to help-c...@googlegroups.com
On Tue, 2024-07-09 at 07:21 -0700, Xander Cage wrote:
> Hi,
>
> i read marks document about scheduling with time based classes...
>
> http://markburgess.org/manuals_files/SpecialTopic_Schedule.pdf
>
> i want to use a class expression like this "Hr03.Min00_59"" which translates to "run at hour 3 between minute 0 and 59, correct?
There's no such class as `Min00_59`. It would be always defined, what would be
its purpose? As you can see, there are classes like `Min19` and `Min15_20` plus
the `_Q2` classes. These should be enough for putting together a proper
expression for a given window of time.

--
Vratislav

> --
> You received this message because you are subscribed to the Google Groups "help-cfengine" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to help-cfengin...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/help-cfengine/3742b85d-156f-4a79-8ba1-5d5d00ac00efn%40googlegroups.com.

signature.asc
Reply all
Reply to author
Forward
0 new messages