CLI: Send Log Messages to admin@switch.com Using
Account aaaa@netgear.com
1.
Configure an SMTP server, for example, smtp.netgear.com. Before you configure the
SMTP server, you need to have an account on SMTP server.
(Netgear Switch) (Config)#mail-server "smtp.netgear.com" port 465
(Netgear Switch) (Mail-Server)#security tlsv1
(Netgear Switch) (Mail-Server)# username
(Netgear Switch) (Mail-Server)# password
(Netgear Switch) (Mail-Server)#exit
2.
Configure logging mail. The from-addr is the source address of the email and the to-addr is
the destination address of the email.
(Netgear Switch) (Config)#logging email
(Netgear Switch) (Config)#logging email from-addr aaaa@netgear.com
(Netgear Switch) (Config)#logging email message-type urgent to-addr
admin@switch.com
(Netgear Switch) (Config)#logging email message-type non-urgent to-addr
admin@switch.com
3.
Increase the severity of traps to 3 (error). By default, it is 6 (informational).
(Netgear Switch) (Config)#logging traps 3
Managed Switches
aaaa
xxxxxx
Syslog
432