track 1 ip sla 1 reachability
!
track 2 ip sla 2 reachability
!
track 10 interface TenGigabitEthernet0/0/0 line-protocol
!
track 12 list boolean or
object 1
object 2
event manager session cli username "EEM"
event manager applet SHUT_IF authorization bypass
event track 12 state down
Below commands should not executed if the interface TenGigabitEthernet0/0/0 was already down”. The below commands should work only if the interface is UP.
action 1.0 cli command "enable"
action 2.0 cli command "conf t"
action 3.0 cli command "interface TenGigabitEthernet0/0/0"
action 4.0 cli command "shut"
action 5.0 cli command "end"