email template for AutoSys via WCC
search cancel

email template for AutoSys via WCC

book

Article ID: 390786

calendar_today

Updated On: 03-24-2025

Products

Autosys Workload Automation

Issue/Introduction

Looking to create an email template for AutoSys jobs via WCC

Resolution

There are no options in WCC's QuickEdit to allow for the creation/modification of an emailtemplate/blob.

Leverage the Enterprise Command Line in WCC if needed.

Example:

Using the section "AutoSys WorkloadAutomation Import/Export"
Selecting your Server from the drop down.
Pasting this in the Contents:

insert_glob: emailexample
blob_mode: t
blob_type: emailtemplate
blob_input: <auto_blobt>
[SUCCESS]
SUBJECT=AutoSys Workload Automation - Job: <<<job_name>>> Status: <<<job_status>>> DO_NOT_REPLY
MESSAGE=[start]
------------------------------------------------------------------------------
 AutoSys Workload Automation - Automated Email Notification
------------------------------------------------------------------------------
 Instance:                                                    <<instance>>
 Scheduler host:                                              <<scheduler_host>>

 Job name:                                                    <<job_name>>
 Box name:                                                    <<box_name>>
 Status:                                                      <<job_status>>
 Job run machine:                                             <<run_machine>>
 Job run identifier:                                          <<run_identifier>>
 Job start time:                                              <<start_time>>
 Job completion time:                                         <<completion_time>>
 Exit code:                                                   <<exit_code>>

------------------------------------------------------------------------------
 Note: This email was automatically generated based on the job definition.
 Please do not reply.
------------------------------------------------------------------------------
[end]
STDOUT=no
STDERR=no
SPOOL=no
JOBLOG=no
LOG_LINES=2000

[FAILURE]
SUBJECT=AutoSys Workload Automation - Job: <<<job_name>>> Status: <<<job_status>>> DO_NOT_REPLY
MESSAGE=[start]
------------------------------------------------------------------------------
 AutoSys Workload Automation - Automated Email Notification
------------------------------------------------------------------------------
 Instance:                                                    <<instance>>
 Scheduler host:                                              <<scheduler_host>>

 Job name:                                                    <<job_name>>
 Box name:                                                    <<box_name>>
 Status:                                                      <<job_status>>
 Job run machine:                                             <<run_machine>>
 Job run identifier:                                          <<run_identifier>>
 Job start time:                                              <<start_time>>
 Job completion time:                                         <<completion_time>>
 Exit code:                                                   <<exit_code>>

------------------------------------------------------------------------------
 Note: This email was automatically generated based on the job definition.
 Please do not reply.
------------------------------------------------------------------------------
[end]
STDOUT=no
STDERR=no
SPOOL=no
JOBLOG=no
LOG_LINES=2000

[TERMINATED]
SUBJECT=AutoSys Workload Automation - Job: <<<job_name>>> Status: <<<job_status>>> DO_NOT_REPLY
MESSAGE=[start]
------------------------------------------------------------------------------
 AutoSys Workload Automation - Automated Email Notification
------------------------------------------------------------------------------
 Instance:                                                    <<instance>>
 Scheduler host:                                              <<scheduler_host>>

 Job name:                                                    <<job_name>>
 Box name:                                                    <<box_name>>
 Status:                                                      <<job_status>>
 Job run machine:                                             <<run_machine>>
 Job run identifier:                                          <<run_identifier>>
 Job start time:                                              <<start_time>>
 Job completion time:                                         <<completion_time>>
 Exit code:                                                   <<exit_code>>

------------------------------------------------------------------------------
 Note: This email was automatically generated based on the job definition.
 Please do not reply.
------------------------------------------------------------------------------
[end]
STDOUT=no
STDERR=no
SPOOL=no
JOBLOG=no
LOG_LINES=2000

[ALARM]
SUBJECT=AutoSys Workload Automation - Job: <<<job_name>>> Alarm: <<<alarm_name>>> DO_NOT_REPLY
MESSAGE=[start]
------------------------------------------------------------------------------
 AutoSys Workload Automation - Automated Email Notification
------------------------------------------------------------------------------
 Instance:                                                    <<instance>>
 Scheduler host:                                              <<scheduler_host>>

 Job name:                                                    <<job_name>>
 Box name:                                                    <<box_name>>
 Status:                                                      <<job_status>>
 Job run machine:                                             <<run_machine>>
 Job run identifier:                                          <<run_identifier>>
 Job start time:                                              <<start_time>>
 Job completion time:                                         <<completion_time>>
 Exit code:                                                   <<exit_code>>
 Alarm Message:                                               <<alarm_message>>

------------------------------------------------------------------------------
 Note: This email was automatically generated based on the job definition.
 Please do not reply.
------------------------------------------------------------------------------
[end]
STDOUT=no
STDERR=no
SPOOL=no
JOBLOG=no
LOG_LINES=2000
</auto_blobt>


Then clicking Import.

NOTE - Another way to create an email template would be to take actions from an AutoSys client host using JIL.