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