CLI Guide
Security Commands 988
logging email
Use the logging email command in Global Configuration mode to enable e-
mail alerting and set the lowest severity level for which log messages are e-
mailed. Use the no form of the command to disable e-mail alerting.
Syntax
logging email [severity]
no logging email
• severity—If you specify a severity level, log messages at or above the
severity level are e-mailed. The severity level may either be specified by
keyword or as an integer from 0 to 7. The accepted keywords, and the
numeric severity level each represents, are as follows.
– emergency (0)
– alert (1)
– critical (2)
– error (3)
– warning (4)
– notice (5)
– info (6)
– debug (7)
logging email show logging email statistics
logging email urgent clear logging email statistics
logging email message-type to-addr security
logging email from-addr mail-server ip-address | hostname
logging email message-type subject port (Mail Server Configuration Mode)
logging email logtime username (Mail Server Configuration
Mode)
logging email test message-type password (Mail Server Configuration
Mode)
–
show mail-server