Working with complex Cron Expressions Summary<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Cron Expression Syntax A cron expression consists of 6 fields separated by spaces. Each field represents a different unit of time or a scheduling parameter, and the fields are defined as follows: <second> <minute> <hour> <day of month> <month> <day of week> Fields Breakdown Second (0–59) Range: 0 to 59 The seconds field allows you to specify the exact second (0 to 59) within the minute when the job should run. This is a key difference from the traditional Unix cron, which only allows scheduling based on minutes, hours, and so on. Minute (0–59) Range: 0 to 59 The minutes field represents the minute of the hour when the job will trigger. For example, 30 means the job will trigger at the 30th minute of the hour. Hour (0–23) Range: 0 to 23 The hour field represents the hour of the day (24-hour format) when the job will be triggered. For example, 14 means 2:00 PM, 0 means midnight. Day of Month (1–31) Range: 1 to 31 The day of the month field specifies which day of the month the job should run. For instance, 15 means the job will run on the 15th of the month. Special Characters: ? (question mark) — Used in either the day of the month or day of the week field to indicate "no specific value" or "don't care." This is used when a value is already provided in the opposite field. Our go parser does not support L W Month (1–12 or JAN–DEC) Range: 1 to 12 (or you can use the month's 3-letter abbreviation, e.g., JAN, FEB, MAR, etc.) The month field specifies the month(s) in which the job will run. For example, 5 means May, and * means every month. Day of Week (0–6 or SUN-SAT) Range: 0 to 6 (where 0 represents Sunday, 1 represents Monday, etc.) The day of the week field specifies which day(s) of the week the job should run. For example, 1 means Monday, 2 means Tuesday, etc. Special Characters: ? (question mark) — Used to avoid specifying a value in this field when the day of the month field is already used. Our go parser does not support L/# Examples of Cron Expressions 0 0 12 * * ? Trigger: Every day at 12:00 PM (noon). Explanation: The job will run at 12:00 PM every day, regardless of the day of the week or month. 0 15 10 1 * ? Trigger: At 10:15 AM on the 1st day of every month. Explanation: The job will run at 10:15 AM on the first day of every month, regardless of the day of the week. 0 0 8-18/2 * * ? Trigger: Every 2 hours between 8:00 AM and 6:00 PM. Explanation: The job will run every 2 hours from 8:00 AM to 6:00 PM (i.e., at 8:00, 10:00, 12:00, etc.). 0 0 10-12,14-16 * * ? Trigger: At 10:00, 11:00, 12:00, 2:00, 3:00, and 4:00 PM every day. Explanation: The job will run at specific hours between 10:00 AM and 12:00 PM and 2:00 PM and 4:00 PM every day. 0 0 0 1 1 ? Trigger: At midnight on January 1st. Explanation: This job will trigger exactly at 12:00 AM (midnight) on January 1st. Special Characters in Cron Expressions * (Asterisk): Represents "every" value for the field. For example, * in the minute field means every minute. , (Comma): Separates multiple values. For example, 1,3,5 in the day of the week field means Monday, Wednesday, and Friday. - (Hyphen): Specifies a range of values. For example, 1-5 in the day of the week field means Monday through Friday. / (Slash): Specifies intervals. For example, */5 in the minute field means every 5 minutes (0, 5, 10, 15, etc.). ? (Question Mark): Used in the day of the month or day of the week fields to indicate "no specific value" or "don't care". It is used to avoid conflicts between day-of-month and day-of-week fields. Tool to Generate Cron Expression: Check this https://www.freeformatter.com/cron-expression-generator-quartz.html Note: If you are using the link above to create a cron expression, please use only the first six characters. Our Go parser does not support the Year field.The sites may generate cron expressions with seven characters, including an optional year, such as `0 30 4 ? * * *`. However, our code will only take the first six characters, resulting in a format like `0 30 4 ? * *`. Release<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } } Agent Client Collector Monitoring release noteshttps://www.servicenow.com/docs/r/store-release-notes/store-rn-itom-acc-monitoring.html Related Links<!-- /*NS Branding Styles*/ --> .ns-kb-css-body-editor-container { p { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } span { font-size: 12pt; font-family: Lato; color: var(--now-color--text-primary, #000000); } h2 { font-size: 24pt; font-family: Lato; color: var(--now-color--text-primary, black); } h3 { font-size: 18pt; font-family: Lato; color: var(--now-color--text-primary, black); } h4 { font-size: 14pt; font-family: Lato; color: var(--now-color--text-primary, black); } a { font-size: 12pt; font-family: Lato; color: var(--now-color--link-primary, #00718F); } a:hover { font-size: 12pt; color: var(--now-color--link-primary, #024F69); } a:target { font-size: 12pt; color: var(--now-color--link-primary, #032D42); } a:visited { font-size: 12pt; color: var(--now-color--link-primary, #00718f); } ul { font-size: 12pt; font-family: Lato; } li { font-size: 12pt; font-family: Lato; } img { display: ; max-width: ; width: ; height: ; } }