cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
124
Views
0
Helpful
1
Replies
Highlighted
Beginner

The EEM script never send me an email ? Anything wrong ?

I deploied the script at switch 3750 :

 

event manager applet portdown
 

event syslog pattern "Interface GigabitEthernet1/0/24, changed state to down"
 

action 1.0 mail server "relay.xxx.com" to "aaa@xxx.com" from "bbb@xxx.com" subject "Q-Matic PortDown" body "Q-Matic"

 

 

#sh event manager history event           
No.  Job Id Proc Status   Time of Event            Event Type         Name
1    49     Actv success  Fri Oct 9 15:18:48 2015  syslog             applet: portdown 
2    50     Actv success  Fri Oct 9 15:18:49 2015  syslog             applet: portdown 
3    51     Actv success  Fri Oct 9 15:19:14 2015  syslog             applet: portdown 
4    52     Actv success  Fri Oct 9 15:19:15 2015  syslog             applet: portdown 
5    53     Actv success  Fri Oct 9 15:19:23 2015  syslog             applet: portdown 
6    54     Actv success  Fri Oct 9 15:19:24 2015  syslog             applet: portdown 
7    55     Actv success  Fri Oct 9 15:21:12 2015  syslog             applet: portdown 
8    56     Actv success  Fri Oct 9 15:21:13 2015  syslog             applet: portdown 
9    57     Actv success  Fri Oct 9 15:22:30 2015  syslog             applet: portdown 
10   58     Actv success  Fri Oct 9 15:22:31 2015  syslog             applet: portdown 


#sh event manager history event detailed 
No.  Job Id Proc Status   Time of Event            Event Type         Name
1    49     Actv success  Fri Oct 9 15:18:48 2015  syslog             applet: portdown 
   msg 
  000441: Oct  9 15:18:48 EDT: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to down
2    50     Actv success  Fri Oct 9 15:18:49 2015  syslog             applet: portdown 
   msg 
  000442: Oct  9 15:18:49 EDT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/24, changed state to down
3    51     Actv success  Fri Oct 9 15:19:14 2015  syslog             applet: portdown 
   msg 
  000453: Oct  9 15:19:14 EDT: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to down
4    52     Actv success  Fri Oct 9 15:19:15 2015  syslog             applet: portdown 
   msg 
  000454: Oct  9 15:19:15 EDT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/24, changed state to down
5    53     Actv success  Fri Oct 9 15:19:23 2015  syslog             applet: portdown 
   msg 
  000457: Oct  9 15:19:23 EDT: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to down
6    54     Actv success  Fri Oct 9 15:19:24 2015  syslog             applet: portdown 
   msg 
  000458: Oct  9 15:19:24 EDT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/24, changed state to down
7    55     Actv success  Fri Oct 9 15:21:12 2015  syslog             applet: portdown 
   msg 
  000469: Oct  9 15:21:12 EDT: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to down
8    56     Actv success  Fri Oct 9 15:21:13 2015  syslog             applet: portdown 
   msg 
  000470: Oct  9 15:21:13 EDT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/24, changed state to down
9    57     Actv success  Fri Oct 9 15:22:30 2015  syslog             applet: portdown 
   msg 
  000477: Oct  9 15:22:30 EDT: %LINEPROTO-5-UPDOWN: Line protocol on Interface GigabitEthernet1/0/24, changed state to down
10   58     Actv success  Fri Oct 9 15:22:31 2015  syslog             applet: portdown 
   msg 
  000478: Oct  9 15:22:31 EDT: %LINK-3-UPDOWN: Interface GigabitEthernet1/0/24, changed state to down

sam wang
1 REPLY 1
Hall of Fame Cisco Employee

The policy looks fine.  Most

The policy looks fine.  Most likely your SMTP relay is not accepting mail from this switch.  Check the SMTP relay logs and look at "debug event manager action mail" for more details.

CreatePlease to create content
Content for Community-Ad
July's Community Spotlight Awards