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

EEM for detect route change from ospf to static

Juníperus
Level 1
Level 1

Hi,

 

I need periodocaly check status of default route (0.0.0.0/0) on my devices.

I normal situation default route from ospf via tunnel interface must be determined.

If default route changes (tunnel is down) I need notification via syslog.

 

I gteated next script:

 

event manager applet CHECK_DEFAULT_ROUTE_HQ
 event timer watchdog time 30
 action 10 cli command "show ip route 0.0.0.0"
 action 20 regexp "Tunnel" "$_cli_result" ignore match
 action 30 if $_regexp_result eq "0"
 action 40  syslog msg "default_route_changes_detected via script"
 action 50 end

But this scenario always write syslog msg "default_route_changes_detected via script".

it seems that the function (regexp) does not work correctly in my case.

 

 

0 Replies 0

Review Cisco Networking for a $25 gift card