cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
564
Views
0
Helpful
0
Replies

Event Manager Applet Send Email via Secondary IP Address

cer43tcent
Level 1
Level 1

Hi all.  I have some L2 switches that have port-security enabled on them and each switch has just one IP address, its management address. I have a EEM script that'll send me an email when a violation occurs and its being sent via this management IP address.  Now that this particular management subnet is no longer allowed to the smtp server, I'm unable to receive emails.  I have a subnet not in use that is allowed to the smtp server and I'm looking at using it as secondary IP addresses on the management vlan interface.  Is it possible to configure the EEM to send the email via the secondary IP address?  Below is what I has worked prior to being blocked from the smtp server.

event manager applet port_sec_violation
 event syslog pattern "%PORT_SECURITY-2-PSECURE_VIOLATION:"
 action 1.0 cli command "enable"
 action 1.1 cli command "show logging"
 action 1.2 mail server "10.10.10.52" to "netadmin@domain.com" from "switch15@domain.com" subject "Port Security Violation" body "$_cli_result"
!
end

0 Replies 0
Review Cisco Networking products for a $25 gift card