Smtp_Send_Email - Cisco ASR 9000 Serie Configuration Manuals

Aggregation services router system
Table of Contents

Advertisement

Configuring and Managing Embedded Event Manager Policies
the desired e-mail context with the To address, CC address, From address, and Subject line properly configured
using the configured e-mail server.
E-Mail Template
The e-mail template file has the following format:
Mailservername:<space><the list of candidate SMTP server addresses>
From:<space><the e-mail address of sender>
To:<space><the list of e-mail addresses of recipients>
Cc:<space><the list of e-mail addresses that the e-mail will be copied to>
Subject:<subject line>
<a blank line>
<body>
Note
The template normally includes Tcl global variables to be configured.
The following is a sample e-mail template file:
Mailservername: $_email_server
From: $_email_from
To: $_email_to
Cc: $_email_cc
Subject: From router $routername: Process terminated
process name: $process_name
subsystem: $sub_system
exit status: $exit_status
respawn count: $respawn_count
Exported Tcl Command Extensions

smtp_send_email

Given the text of an e-mail template file with all global variables already substituted, sends the e-mail out
using Simple Mail Transfer Protocol (SMTP). The e-mail template specifies the candidate mail server addresses,
To addresses, CC addresses, From address, subject line, and e-mail body.
A list of candidate e-mail servers can be provided so that the library will try to connect the servers on the
Note
list one by one until it can successfully connect to one of them.
Syntax
smtp_send_email text
Arguments
text
Cisco ASR 9000 Series Aggregation Services Router System Monitoring Configuration Guide, Release 4.2.x
SMTP Library Command Extensions
(Mandatory) Text of an e-mail template file with all
global variables already substituted.
179

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents