cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1199
Views
0
Helpful
1
Replies

EEM/TCL combination... or alternative...

Mario Manzano
Level 1
Level 1

Hello Everyone! ... and thanks for reading!

Without going into much detail, to keep this simple, we are trying to write a script (or any combination) that can help detect if a next-hop is unresponsive and change the ip static route accordingly...

We have an MPLS circuit and a modem on the same router, sending all of our internet out the modem with "ip route 0.0.0.0 0.0.0.0 X.X.X.X" ...

If the internet modem fails or it's default gateway does we want to modify the above route, among other things, to send internet traffic temporarily through the MPLS....

I've managed to create a TCL script to ping any given address and write to a file if it "FAILS" or "OK" .... now I'd like to issue necessary changes for the traffic to flow...

I can create an EEM applet to do so but don't know how to call it from TCL... maybe I can issue the commands from the same script?

I am learning as I go... only know enough to do simple, very basic stuff... any pointers are greatly appreciated. So far I haven't found anything rich enough for me to get educated from the basics on this.

 

Thank you and have a great day!

1 Reply 1

Dan Frey
Cisco Employee
Cisco Employee

EEM and TCL are not needed for this functionality.    Use IPSLA with object tracking to manipulate the static routes. 

http://www.cisco.com/c/en/us/td/docs/ios/dial/configuration/guide/12_2sr/dia_12_2sr_book/dia_rel_stc_rtg_bckup.html

 

 

 

 

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: