Media Flow Controller CLI Commands : email

email
Configure email and event notification via email. See “Email Notification Options” on page 65 for task details.
email
auth
enable
password
username
autosupport enable [event <event_name>]
dead-letter enable [cleanup max-age <duration>]
domain <hostname or IP_address>
mailhub <hostname or IP_address>
malhub-port <port>
notify
event <event_name>
recipient <email_address> [class [failure] [info]] [detail]
return-addr <username>
return-host
send-test
Notes:
enable—Enable SMTP authentication for Media Flow Controller emails; default is disabled. Use no email auth to re-disable.
password—Set a password for SMTP authentication of emails; if no password is set, the user is prompted for the password. Note! As of Release 2.0.2 the only authentication method supported is "LOGIN", which sends the password in the clear (base64); so users should be aware that this involves some security risk.
username—Set a username for SMTP authentication of emails.
autosupport—Sends emails to pre-configured vendor for certain failures.
enable—Enable or disable (with no email autosupport) the sending of email to vendor support when certain failures occur. Default is enable.
event—Specify which events to send autosupport notification emails for. See “email event name," below, for details.
dead-letter—Manage undeliverable emails:
cleanup max-age <duration>—Set a time limit after which undeliverable emails are permanently deleted from the system. The form of <duration> is <number>d<number>h<number>m<number>s, so 5d4h3m2s for 5 days, 4 hours, 3 minutes, 2 seconds.
enable—Allow (default) or stop (with no email dead-letter enable) the saving of undeliverable emails.
domain—Use a hostname or IP address to set the domain name from which emails are to appear to come (provided that the return address is not already fully-qualified). This is used in conjunction with the system hostname to form the full name of the host from which the email appears to come. Use no email domain to reset to default (global settings). The rules are as follows:
a.
If an email domain is specified using this command, it is always used. If the hostname has any dots in it, everything to the right of the first dot is stripped and the email domain is appended.
b.
Otherwise, if the hostname has dots in it, it is used as is.
c.
Otherwise, the currently-active system domain name is used. This can come either from the resolver configuration, or from state dynamically instantiated by DHCP.
mailhub—Use a hostname or IP address to set the mail relay to use to send notification emails. Use no email mailhub to clear the entry. Note! The mailhub option must be sent for notifications to work.
mailhub-port—Set the mail port to be used to send emails. Default is 25. Use no email mailhub-port to reset to default.
notify—Set handling of events and failures via email.
event <event_name>—Enable or disable (with no) sending email notifications for the specified event type. This does not affect autosupport emails. Autosupport can be disabled overall, but if it is enabled, all autosupport events (process-crash, and liveness-failure only, by default) are sent as emails. See “email event name," below, for details. Set thresholds for these events using stats. Set SNMP traps for events using snmp-server.
recipient <email_address>—Add or delete (with no) an email address from the list of addresses to send email notifications of (all enabled) events, and specify:
class—Set event class. Each event type is classified as either info or failure. The specified recipient(s) receives the intersection of the set of events specified by this command, and the set of events specified overall with the email notify event <event_name> command. See “email class," below, for more details.
detail—Specify whether the emails this recipient is sent should be detailed or summarized. Each email potentially has both a detailed and summarized form, where the detailed form has a superset of the information. Default is enabled.
return-addr—Set the username or fully-qualified return address from which email notifications are sent. If the string provided contains an at (@) sign, it is considered fully-qualified and is used as-is. Otherwise, it is considered just the username, and Media Flow Controller appends @<hostname>.<domain>. The default is do-not-reply, but this can be changed to admin or as desired in case something along the line doesn't like fictitious addresses. Use no email return-addr to reset to default.
return-host—Include the hostname in the return address for email notifications. This only takes effect if the return address does not contain an at (@) sign. Default is include. Use no to exclude hostname.
send-test—Send a test email to all of the configured notification email recipients. This is useful to make sure the configuration works without having to wait for an event to occur.

Report an Error
Media Flow Controller Administrator's Guide and CLI Command Reference
Copyright © 2010 Juniper Networks, Inc.