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

eem issue on different IOS

nvanhaute
Level 1
Level 1

hi,

I have an issue with one of my EEM on IOS 15.3(3)M7
The same EEM works great on 15.1(4)M9

any idea why ?

=======================

event manager applet tunnelUP
 event syslog pattern "LINEPROTO-5-UPDOWN: Line protocol on Interface Tunnel.*to up"
 action 100 info type routername
 action 110 regexp "([0-9]+)," "$_syslog_msg" result nominterface
 action 120 cli command "show interface Tunnel $nominterface"
 action 130 regexp "Description: ([a-zA-Z0-9\-]+)" "$_cli_result" result site
 action 200 mail server "$mail_smtp" to "$mail_to" from "$mail_from" subject "$site is back" body "$site is UP"
 action 300 cli command "end"

=============================

=>

%HA_EM-3-FMPD_UNKNOWN_ENV: fh_parse_var: could not find environment variable: site
%HA_EM-3-FMPD_ERROR: Error executing applet tunnelDOWN statement 200


thanks

Nicolas

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

It could be that the interface in question doesn't have a description, or it could be this other router is doing AAA command authorization.  Post the output of "show interface Tunnel X" For the given interface as well as the output of "debug event manager action cli" when the applet runs.

found issue !

it was caused by the "show interface tunnel..."

now it needs to be before in "enable" mode, so I just added cli command "enable" before and now it works well

Nicolas