To send email alerts, the switch fi rst opens a connect ion, send s al l th e em ail
alerts waiting in the queue one by one, and finally closes the connection .
To open a connection, the switch first selects the server that successfully sent
mail during the last connection, or the first server configured by this command.
If it fails to send mail, the switch selec ts the n ext s erver in the list an d tries t o
send mail again. If it still fails, the system will repeat the process at a pe riod ic
interval. (A trap will be triggered if the swi tch cannot successf ully open a
connection.)
Example
Console(config)#logging sendmail host 192.168.1.19
Console(config)#
logging sendmail level
This command sets the severity threshold used to trigger aler t me ssage s.
Syntax
logging sendmail level
level
level - One of the system message levels (page 23-27). Messages sent
include the selected level down to level 0. (Range: 0-7; Default: 7)
Default Setting
Level 7
Command Mode
Global Configuration
Command Usage
The specified level indicates an event threshold. All events at this level or
higher will be sent to the configured email recipients. (For example, using
Level 7 will report all events from level 7 to level 0.)
Example
This example will send email alerts for system errors from level 3 through 0.
Console(config)#logging sendmail level 3
Console(config)#
logging sendmail source-email
This command sets the email address used for the “From” field in alert messages.
Syntax
logging sendmail source-email
email-address
email-address - The source email address used in alert messages.
(Range: 1-41 characters)
23-33SMTP Alert Commands
23