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

EEM 3.0 on Switch

Dovianto S
Level 1
Level 1
hi all,
I have problem with my eem 3.0, I have try configure eem with sla on switch 3560-x like this
!
track 100 ip sla 100 reachability
 delay down 8 up 10
!
!
!
ip sla 100
 icmp-echo 157.47.132.208 source-ip 157.47.132.44
ip sla schedule 100 life forever start-time now
ip sla reaction-configuration 100 react timeout threshold-type immediate
ip sla enable reaction-alerts
event manager applet CLEAR_1
 event ipsla operation-id 100 reaction-type timeout
 action 1.0 if $_ipsla_condition eq "Occurred"
 action 1.1  cli command "enable"
 action 1.2  cli command "conf t"
 action 1.3  cli command "interface GigabitEthernet0/20"
 action 1.4  cli command "shut"
 action 1.5  cli command "no shut"
 action 1.6  syslog msg "End of EEM"
 action 1.7 end
when I have to try running this applet with command " event manager run CLEAR_1" the message say I"Event Manager policy not registered with event none Event Detector"
please help for this problem..thanks
6 Replies 6

Joe Clarke
Cisco Employee
Cisco Employee

EEM is correct.  You have not registered this policy with the none event detector.  The policy as you've written it needs to be triggered by the IP SLA operation timing out.  To test, add a black hole route to 157.47.132.208:

ip route 157.47.132.208 255.255.255.255 null0

hi joe,

how if I want to try this applet running ? could I using command "event manager run CLEAR_1" ?

No.  As I said, you'll have to test it by causing the IP SLA operation to fail.  Black holing the traffic is the easiest way to do that.

if I using cron timer, how I know that applet running ?

event manager applet shutdown_port
 event timer cron cron-entry "15 * * * *"
 action 1.0 cli command "enable"
 action 2.0 cli command "config t"
 action 3.0 cli command "interface GigabitEthernet0/2"
 action 4.0 cli command "shut"
 action 5.0 cli command "no shut"
 action 6.0 cli command "end"
 action 7.0 syslog msg "interface GigabitEthernet0/2 has been shutdown"
!

In this case, the policy will execute at 15 minutes past the hour.  To test this, you'll need to wait for the specific times or manually set the device's clock to 15 past an hour.

Ok joe, i will testing this..and reply again,thanks

Review Cisco Networking for a $25 gift card