[c-nsp] Cisco IOS XR EEM

Arie Vayner (avayner) avayner at cisco.com
Wed Sep 3 09:29:01 EDT 2014


You may want to check the EEM Applet to TCL convertor that was written by Joe Clarke:
http://www.marcuscom.com/convert_applet/

Arie

-----Original Message-----
From: cisco-nsp [mailto:cisco-nsp-bounces at puck.nether.net] On Behalf Of M K
Sent: Wednesday, September 3, 2014 04:01
To: cisco-nsp at puck.nether.net
Subject: [c-nsp] Cisco IOS XR EEM

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"



 		 	   		  
_______________________________________________
cisco-nsp mailing list  cisco-nsp at puck.nether.net https://puck.nether.net/mailman/listinfo/cisco-nsp
archive at http://puck.nether.net/pipermail/cisco-nsp/



More information about the cisco-nsp mailing list