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

IP SLA reaction-configuration problem

haufukchan
Level 1
Level 1

I want to know how to configurate the IP SLA on cisco router. My object is every five second to trigger the connectivity from 10.1.1.1 to 10.1.1.2. If three times fail consecutively, the interface fa0/0 is admin shutdown. I have attached my configuration as below. In my lab, the router just trigger one time timeout and then admin shutdown the interface f0/0. Anyone has idea anythink worng on my configuration?

track 1 ip sla 1

ip sla 1

icmp-echo 10.1.1.1 source-ip 10.1.1.2

frequency 5

ip sla schedule 1 life forever start-time now

ip sla reaction-configuration 1 react timeout threshold-type consecutive 3 action-type trapAndTrigger

event manager applet test

event track 1 state down

action 1.0 cli command "en"

action 2.0 cli command "conf t"

action 3.0 cli command "int fa 0/0"

action 4.0 cli command "shutdown"

1 Reply 1

Hello haufukchan,

The reason your configuration is not working as you expect is due to feature behavior by itself. IP SLA reaction doesn't influence the state of track object state. It will either trigger a new IP SLA entry and/or send snmp trap for a particular reaction-configuration entry.

I would suggest you to adjust configuration according to the following:

! Enable snmp traps for syslog and ip sla syslog logging

ip sla logging traps

snmp-server enable traps syslog

! Adjust reaction-configuration to send snmp trap only

ip sla reaction-configuration 1 react timeout threshold-type consecutive 3 action-type trapOnly

! Adjust EEM applet trigger

event manager applet test

  event syslog pattern ".*OPER_TIMEOUT: condition occurred, entry number = 1"

  action 1.0 cli command "en"

  action 2.0 cli command "conf t"

  action 3.0 cli command "int fa 0/0"

  action 4.0 cli command "shutdown"

When the reaction entry will be triggered you'll see something like this:

%RTT-4-OPER_TIMEOUT: condition occurred, entry number = 1

%RTT-3-IPSLATHRESHOLD: IP SLAs(1): Threshold Occurred for timeout

Thank you

-- 
Best regards,
Dmitry Skotnikov

-- Best regards, Dmitry Skotnikov
Review Cisco Networking products for a $25 gift card