30.06.2015 Views

8.28 MB - Edge-Core

8.28 MB - Edge-Core

8.28 MB - Edge-Core

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

System Management Commands<br />

4<br />

SMTP Alert Commands<br />

These commands configure SMTP event handling, and forwarding of alert<br />

messages to the specified SMTP servers and email recipients.<br />

Table 4-21 SMTP Alert Commands<br />

Command Function Mode Page<br />

logging sendmail host SMTP servers to receive alert messages GC 4-49<br />

logging sendmail level Severity threshold used to trigger alert messages GC 4-50<br />

logging sendmail<br />

Email address used for “From” field of alert messages GC 4-50<br />

source-email<br />

logging sendmail<br />

Email recipients of alert messages GC 4-51<br />

destination-email<br />

logging sendmail Enables SMTP event handling GC 4-51<br />

show logging sendmail Displays SMTP event handler settings NE, PE 4-51<br />

logging sendmail host<br />

This command specifies SMTP servers that will be sent alert messages. Use the no<br />

form to remove an SMTP server.<br />

Syntax<br />

[no] logging sendmail host ip_address<br />

ip_address - IP address of an SMTP server that will be sent alert<br />

messages for event handling.<br />

Default Setting<br />

None<br />

Command Mode<br />

Global Configuration<br />

Command Usage<br />

• You can specify up to three SMTP servers for event handing. However, you<br />

must enter a separate command to specify each server.<br />

• To send email alerts, the switch first opens a connection, sends all the email<br />

alerts waiting in the queue one by one, and finally closes the connection.<br />

• To open a connection, the switch first selects the server that successfully sent<br />

mail during the last connection, or the first server configured by this command.<br />

If it fails to send mail, the switch selects the next server in the list and tries to<br />

send mail again. If it still fails, the system will repeat the process at a periodic<br />

interval. (A trap will be triggered if the switch cannot successfully open a<br />

connection.)<br />

Example<br />

Console(config)#logging sendmail host 192.168.1.200<br />

Console(config)#<br />

4-49

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!