03-22-2016 01:27 AM
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
03-23-2016 05:19 AM
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.
03-23-2016 06:17 AM
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
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide