must_complete_times & must_start_times Notifications Setup for 11.3.5 command jobs???

1,202 views
Skip to first unread message

John NYAKOE-NYASANI

unread,
Jan 22, 2014, 12:48:36 PM1/22/14
to aut...@googlegroups.com, see...@icloud.com
Hi,
 
I am trying to utilize the notifications functionality in 11.3.5 to send out emails when jobs are running late or dont start on time.
 
I have the command job below that I need to send notificaiton for if it is NOT started by 20:30 or complete by 21:15. I set up the job according to the JIL below. However, I got success emails which I was not expecting. I dont want success emails, just notifications when the two criteria i have explained before are met. Any help will be appreciated. Thanks.
 
a. If job does NOT start by 20:35
b. If job does NOT complete by 21:15
 
- Basically, I need to send an email notification when the job is NOT completed running successfully by 21:15
 
 
 
BOX JOB:
- starts running at 20:30, mon,tues,wed,fri
insert_job: p.ba_b_c_bondedge_daily_feed_d1   job_type: BOX
owner: svcautosys@us
permission:
date_conditions: 1
days_of_week: mo,tu,we,th,fr

exclude_calendar: bondedge_exclude_fri_LBDOM
start_times: "20:30"
description: "SCH BondEdge Daily Feed CA Autosys Batch Process"
alarm_if_fail: 0
 

COMMAND JOB:
insert_job: p.ba_c_c_bondedge_daily_update_d1    job_type: cmd
description: SCH - BondEdge Daily Feed - UpdateBE.bat
machine: mil-be-01
condition: s(p.ba_c_c_bondedge_daily_cmslog_filewatcher_d1)
owner: svcautosys@us
box_name: p.ba_b_c_bondedge_daily_feed_d1
permission: wx
max_run_alarm: 0
alarm_if_fail: y
must_start_times: "20:35"
must_complete_times: "21:15"

days_of_week: mo,tu,we,th,fr
start_times: "20:30"
send_notification: y

notification_msg: *WARNING** CA Bondedge Daily Job is running unusually long.Please investigate BondEdge Daily Process for ANY issues.
notification_emailaddress: email addresses are in this area
std_out_file: \\calogs\ascentraljoblogs\%auto_job_name%.%autorun%.OUT.txt
std_err_file: \\calogs\ascentraljoblogs\%auto_job_name%.%autorun%.ERR.txt
command: ""D:\cms\BENET\dailyUpdateBE.bat""
 

Chandru

unread,
Jan 25, 2014, 8:24:11 PM1/25/14
to aut...@googlegroups.com, see...@icloud.com
hi John,
Doubt send_notification can handle must_complete_times and must_start_times. I believe send_notifications only works when either the job completes (send_notification: 1) or job fails (send_notification: F).
If you have Event Management (CA Common Components) installed and configured, then it is easier to write message action records to handle MUST_COMPLETE_ALARM and MUST_START_ALARM alarms well.

Regards,
Chandru


On Thursday, January 23, 2014 4:48:36 AM UTC+11, John NYAKOE-NYASANI wrote:
Hi,
 
I am trying to utilize the notifications functionality in 11.3.5 to send out emails when jobs are running late or dont start on time.
 
I have the command job below that I need to send notificaiton for if it is NOT started by 20:30 or complete by 21:15. I set up the job according to the JIL below. However, I got success emails which I was not expecting. I dont want success emails, just notifications when the two criteria i have explained before are met. Any help will be appreciated. Thanks.
 
a. If job does NOT start by 20:35
b. If job does NOT complete by 21:15
 
- Basically, I need to send an email notification when the job is NOT completed running successfully by 21:15
 
 
 
BOX JOB:
- starts running at 20:30, mon,tues,wed,fri
insert_job: p.ba_b_c_bondedge_daily_feed_d1   job_type: BOX
owner: svcau...@us

permission:
date_conditions: 1
days_of_week: mo,tu,we,th,fr

exclude_calendar: bondedge_exclude_fri_LBDOM
start_times: "20:30"
description: "SCH BondEdge Daily Feed CA Autosys Batch Process"
alarm_if_fail: 0

COMMAND JOB:
insert_job: p.ba_c_c_bondedge_daily_update_d1    job_type: cmd
description: SCH - BondEdge Daily Feed - UpdateBE.bat
machine: mil-be-01
condition: s(p.ba_c_c_bondedge_daily_cmslog_filewatcher_d1)

Ramon.F...@bbh.com

unread,
Jan 26, 2014, 7:44:02 PM1/26/14
to aut...@googlegroups.com, see...@icloud.com
I also have not see any information on the alarms, since alarms are not physical actions, they are logical actions, a failure or change of status is a physical action


Thanks
Ramon

--
You received this message because you are subscribed to the Google Groups "AutoSys" group.
To unsubscribe from this group and stop receiving emails from it, send an email to autosys+u...@googlegroups.com.
To post to this group, send email to aut...@googlegroups.com.
Visit this group at
http://groups.google.com/group/autosys.
For more options, visit
https://groups.google.com/groups/opt_out.


*************************** IMPORTANT NOTE*****************************-- The opinions expressed in this message and/or any attachments are those of the author and not necessarily those of Brown Brothers Harriman & Co., its subsidiaries and affiliates ("BBH"). There is no guarantee that this message is either private or confidential, and it may have been altered by unauthorized sources without your or our knowledge. Nothing in the message is capable or intended to create any legally binding obligations on either party and it is not intended to provide legal advice. BBH accepts no responsibility for loss or damage from its use, including damage from virus. ********************************************************************************

John NYAKOE-NYASANI

unread,
Jan 27, 2014, 11:09:15 AM1/27/14
to aut...@googlegroups.com, see...@icloud.com
Thanks for the feedback Chandru

John NYAKOE-NYASANI

unread,
Jan 27, 2014, 11:09:49 AM1/27/14
to aut...@googlegroups.com, see...@icloud.com
Thanks for your input Ramon.
Reply all
Reply to author
Forward
0 new messages