How to setup an AutoSys Agent for SAP jobs email notifications to be sent from the System Agent.
search cancel

How to setup an AutoSys Agent for SAP jobs email notifications to be sent from the System Agent.

book

Article ID: 425326

calendar_today

Updated On:

Products

Autosys Workload Automation Workload Automation Agent

Issue/Introduction

We have set up a SAP Job to send Email notifications and attach the spool file.
We are not getting the emails when the job completes.

How can we test the email configurations?


Environment

AutoSys 12.X 24.X
System Agent 12.X 24.X

Resolution

There are several options for testing the SMTP process from the agent.
These need to be completed on the Agent where the SAP job is running:

Option 1:
Please use the telnet process to validate that you can send an email directly from the agent machine.

Microsoft. test-smtp-telnet

This will work on Windows or Linux as long as the telnet client is installed.

Once this is confirmed using the values parameter values from the agentparmt.txt and the SAP JOB
smtp.server=<SMTP-SERVER>.<DOMAIN>.com
sap.mail.from=<EmailUser>@<DOMAIN>.com
recipient=<EmailUser>@<DOMAIN>.com

 

Option 2:
The SAP Plugin has a mail test utility.
1) Set the JAVA_HOME and PATH 

# below are not needed but might help to set JAVA_HOME and PATH to have Autosys Java stuff:
#Unix
JAVA_HOME=/opt/CA/WorkloadAutomationAE/jre; export JAVA_HOME
PATH=$JAVA_HOME/bin:$PATH; export PATH

#Windows
set JAVA_HOME="C:\Program Files\CA\WorkloadAutomationAE\jre"
set PATH=%JAVA_HOME%\bin;%PATH%

2) From the agent directory, run the following:
java -cp "jars/agent.jar:jars/sap.jar:jars/ext/mail.jar:jars/ext/activation.jar" -Dsmtp.server=<FWDN FOR SMTP SERVER> -Dsap.mail.from=<MAIL FROM EMAIL ADDRESS> -Dmail.debug=true cybermation.plugins.sap.utility.CybMail <SEND TO EMAIL ADDRESS>

Additional Information

The below KB articles provides 
How to send SAP Spool by Email with WA Agent