01-12-2015 12:59 PM
I have the following config:
track 74 ip sla 74
ip sla logging traps
!
ip sla 74
tcp-connect 2.2.1.1 179 source-ip 1.1.1.1
timeout 30
frequency 10
ip sla schedule 74 life forever start-time now
!
event manager applet DODIN_BGP_PEER_DOWN
event syslog pattern "state Up->Down"
action 1.0 info type routername
action 2.0 syslog msg A_DODIN_BGP_PEER_On "$routername"_IS_UNREACHABLE
when the event is triggered, I get an error message
HA_EM-3-FMPD_UNKNOWN_ENV:could not find environment variable:routername
HA_EM-3-FMPD_ERROR: Error executing applet DODIN_BGP_PEER_DOWN statement 2.0
what am I Missing? appreciate quick response, need a solution deployed by Friday.
TM
Solved! Go to Solution.
01-13-2015 03:28 PM
The entire msg should be wrapped in a pair of " " and not two pair. The variable $_info_routername does not get wrapped in its own "".
This should work as well.
action 2.0 syslog msg "A_DODIN_BGP_PEER_On $_info_routername _IS_UNREACHABLE"
01-13-2015 07:31 AM
action 2.0 should replace $routername with: $_info_routername
01-13-2015 02:49 PM
Thanks for your response.
I tried all of the following with no success
action 2.0 syslog msg "A_DODIN_BGP_PEER_On"$_info_routername"_IS_UNREACHABLE"
action 2.0 syslog msg "A_DODIN_BGP_PEER_On$_info_routername_IS_REACHABLE"
This one works by placing the varable on the end ....
action 1.2 syslog msg "A_BGP_PEER_FAILED_ON_$_info_routername"
This achieves the desired affect So I plan to run with this one.
Thanks Again.
01-13-2015 03:28 PM
The entire msg should be wrapped in a pair of " " and not two pair. The variable $_info_routername does not get wrapped in its own "".
This should work as well.
action 2.0 syslog msg "A_DODIN_BGP_PEER_On $_info_routername _IS_UNREACHABLE"
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