[c-nsp] Cisco IOS XR EEM

M K gunner_200 at live.com
Wed Sep 3 07:00:58 EDT 2014


Hi , I have the below EEM script and am trying to do it using IOS XR



event
manager applet SLA_OUT 

 event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.2
get-type exact entry-op eq entry-val 1 exit-op eq exit-val 2 poll-interval 5

 action 1.0 syslog msg "Test"

 action 1.1 cli command "enable"

 action 1.2 cli command "configure
terminal"

 action 1.3 cli command "ip route 0.0.0.0
0.0.0.0 192.168.13.3"

 action 1.4 syslog msg "There is a problem
on our Primary connection , move all the traffic to the Secondary Line"

event
manager applet SLA_OK 

 event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.2
get-type exact entry-op eq entry-val 2 exit-op eq exit-val 1 poll-interval 5

 action 1.0 syslog msg "OK"

 action 1.1 cli command "enable"

 action 1.2 cli command "configure
terminal"

 action 1.3 cli command "no ip route
0.0.0.0 0.0.0.0 192.168.13.3"

 action 1.4 syslog msg "Our Primary
connection is functionin again , stop using the Secondary Line"



 		 	   		  


More information about the cisco-nsp mailing list