How to Send a Notification When a Job Completes on Unix?

Document ID : KB000039386
Last Modified Date : 14/02/2018
Show Technical Document Details

Introduction: 

You can configure CA Workload Automation AE to send email notifications to operators or administrators who resolve problems or attend to emergencies.

 

Question: 

How to Send a Notification When a Job Completes on Unix?

 

Environment:

Workload Automation AE 11.3.5 and 11.3.6+

 

Answer: 

There are TWO stages of configuration to successfully send out Email Notification;

- First configure $AUTOUSER/config.$AUTOSERV file with following parameters:

NotifyMethod=1

NotifySMTPHost

NotifySMTPFromAddress

UseSMTPAuthentication

 

NotifySMTPUse

 

NOTE:By default, the NotifySMTPHost, NotifySMTPFromAddress, UseSMTPAuthentication, and NotifySMTPUser are commented out. Be sure to remove the (#) in front of the parameters before configuring them.

Use this link to Configure CA Workload Automation AE to Send Email Notifications on UNIX.

 

- Then define these attributes in your AE job definition(s):

send_notification

notification_emailaddress

notification_msg

 

Here is an example that specifies that an email notification should be sent to admin@example.com and user1@example.com when the job completes, regardless of its status.

send_notification: 1

notification_emailaddress: admin@example.com; user1@example.com

notification_msg: The server appears to be down.

 

Additional Information:

Visit the CA Workload Automation AE & Workload Control Center DocOps Space for more information about configuring and administrating the Workload Automation AE scheduler.