DGS-1210/ME Metro Ethernet Switch CLI Reference Guide
39
Example usage:
To disable STMP feature on the Switch:
DGS-1210-28MP/ME:5# disable smtp
Command: disable smtp
Success.
DGS-1210-28MP/ME:5#
config smtp
Purpose
To configure the fields to set up the SMTP server for the switch,
along with setting e-mail addresses to which switch log files can be
sent when a problem arises on the Switch.
Syntax
config smtp [self_mail_addr <mail_addr 64> | server [<ipaddr> |
<ipv6addr>] | server_port <tcp_port_number 1-65535>] [{add
mail_receiver <mail_addr 64>| delete mail_receiver <index 1-
8>}]
Description
The
config smtp
command is used to configure the fields to set up
the SMTP server for the switch, along with setting e-mail addresses
to which switch log files can be sent when a problem arises on the
Switch.
Parameters
self_mail_addr <mail_addr 64>
− Specifies the e-mail address from
which mail messages will be sent. Only one self mail address can be
configured on the Swtich.
server [<ipaddr> | <ipv6addr>]
− Specifies the IPv4 or IPv6 address
of the SMTP server. This will be the device that sends out the mail
for user. For example, 10.90.90.99.
<tcp_port_number 1-65535>
− Specifies the port number that the
Switch will connect with on the SMTP server. The range is between
1 and 65535.
add mail_receiver <mail_addr 64>
− Specifies a list of e-mail
addresses so recipients can receive e-mail messages regarding
Switch functions. Up to 8 e-mail address can be added per Switch.
delete mail_receiver <index 1-8>
− Specifies the e-mail address
index to be deleted.
Restrictions
Only Administrator and Operator-level users can issue this
command.
Example usage:
To config SMTP with self mail address ‘[email protected]’ on the Switch:
DGS-1210-28MP/ME:5# config smtp self_mail_addr [email protected]
Command: config smtp self_mail_addr [email protected]
Success.
DGS-1210-28MP/ME:5#
show smtp
Purpose
To display the SMTP server settings on the Switch.