Message Text

There are several "control strings" available in the notice text section of a job.

The control strings are:

SEND_OPCOM="Opcom message here"

SEND_PAGE=<command to invoke third-party paging software>

DO_COMMAND=<any command, batch file, or executable here>

EMAIL=<email address to send mail to>

BROADCAST=<username suitable for net send command>

MESSENGER=<username suitable for use with net send command>

ATTACHMENT=<file path of attachment>

INCLUDE=<schedule job path>

MAIL_SUBJECT=<Subject line text>

SEND_LOG - send job log

SEND_LOG=<full path of another job name>  - to send the log file of another job

SEND_SNMP=message text~target~severity - sends a message to an SNMP trap.

SEND_HPOV=message text~severity - to send a message to HP-OpenView (needs to be installed)

DO_NOT_SEND_MAIL - to disable the sending of the email, other actions might be executed

DO_NOT_SEND_TO_SUBMIT_USER - don't send mail to user submitting job

The following change the format of the notification emails, overriding the default format. Starting with version 7.6.12, the HTML format is the default format for all jobs. The default format can be changed by modifying the notification script.

HTML_FORMAT

TEXT_FORMAT
 

Only implemented on UNIX, Linux and Windows:

NO_HEADER - no job header data included in notification

NO_JOB_STATS - no job statistics included in notification

ATTACHMENT=<full file path>   - attach a file as text

ATTACHMENTB=<full file path> - attach a file as binary

Multiple attachments are possible, UNIX/Linux also allows wildcards in the attachment name

For instance, if you want to have a variable that contains a list of e-mail addresses to send notifications to in a number of jobs, you can put the control phrase

EMAIL="((email_address1))"

And have a variable defined as

my-mail@example.com, your-mail@example.com

The processed message text would be:

EMAIL="my-mail@example.com, your-mail@example.com"

Another example would be if you want to be able to change the name of an attachment based on a variables value in this case the day of the week, you can use a predefined EnterpriseSCHEDULE Expression Variable to

ATTACHMENT="c:\logs\Report_((\sys\Dayoftheweek)).pdf"

The processed message text would be:

ATTACHMENT="c:\logs\Report_Tuesday.pdf"

depending on the day of the week.

Note: \sys\Dayoftheweek is a variable included with EnterpriseSCHEDULE. See the \sys\ directory for many more.