Previous Topic

Next Topic

Book Contents

Email Alerting and Mail Server Commands

This section describes the commands you use for configure email alerting and settings.

logging email urgent

This command sets the lowest severity level at which log messages are emailed immediately in a single email message. Specify the <severitylevel> value as either an integer from 0 to 7 or symbolically through one of the following keywords: emergency(0), alert (1), critical(2), error(3), warning (4), notice (5), info (6), or debug (7). Specify none to indicate that log messages are collected and sent in a batch email at a specified interval.

no logging email urgent

This command resets the urgent severity level to the default value.

logging email message-type to-addr

This command configures the email address to which messages are sent. The message types supported are urgent, non-urgent, and both. For each supported severity level, multiple email addresses can be configured. The <to-email-addr> variable is a standard email address, for example admin@yourcompany.com.

no logging email message-type to-addr

This command removes the configured to-addr field of email.

logging email from-addr

This command configures the email address of the sender (the switch).

no logging email from-addr

This command removes the configured email source address.

logging email message-type subject

This command configures the subject line of the email for the specified type.

no logging email message-type subject

This command removes the configured email subject for the specified message type and restores it to the default email subject.

logging email logtime

This command configures how frequently non-urgent email messages are sent. Non-urgent messages are collected and sent in a batch email at the specified interval. The valid range is every 30 - 1440 minutes.

no logging email logtime

This command resets the non-urgent log time to the default value.

logging traps

This command sets the severity at which SNMP traps are logged and sent in an email. Specify the <severitylevel> value as either an integer from 0 to 7 or symbolically through one of the following keywords: emergency(0), alert (1), critical(2), error(3), warning (4), notice (5), info (6), or debug (7).

no logging traps

This command resets the SNMP trap logging severity level to the default value.

logging email test message-type

This command sends an email to the SMTP server to test the email alerting function.

show logging email config

This command displays information about the email alert configuration.

The display parameters for above command are:

show logging email statistics

This command displays email alerting statistics.

The display parameters for above command are:

clear logging email statistics

This command resets the email alerting statistics.

mail-server

This command configures the SMTP server to which the switch sends email alert messages and changes the mode to Mail Server Configuration mode. The server address can be in the IPv4, IPv6, or DNS name format.

no mail-server

This command removes the specified SMTP server from the configuration.

security

This command sets the email alerting security protocol by enabling the switch to use TLS authentication with the SMTP Server. If the TLS mode is enabled on the switch but the SMTP sever does not support TLS mode, no email is sent to the SMTP server.

port

This command configures the TCP port to use for communication with the SMTP server. The recommended port for TLSv1 is 465, and for no security (i.e. none) it is 25. However, any nonstandard port in the range 1 to 65535 is also allowed.

username (Mail Server Config)

This command configures the login ID the switch uses to authenticate with the SMTP server.

password

This command configures the password the switch uses to authenticate with the SMTP server.

show mail-server config

This command displays information about the email alert configuration.

The display parameters for above command are:

See also

Utility Commands

System Information and Statistics Commands

Logging Commands

System Utility and Clear Commands

Simple Network Time Protocol (SNTP) Commands

DHCP Server Commands

DNS Client Commands

IP Address Conflict Commands

Serviceability Packet Tracing Commands

Cable Test Command

sFlow Commands

Switch Database Management Template Commands