cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
898
Views
5
Helpful
1
Replies

EEM config to monitor ping failure

shivbk040215
Level 1
Level 1

Hello All,

Excellent forum...

I'm hoping someone can help me with my configuration...

I'm looking at setting up EEM on my switch to basically bounce a few selected ports once their is an ICMP failure.

Ideally i'll be conected to the device being monitored, and once their is a failure (ICMP failure), I'll like to trigger a reset on a few ports on the switch .

Anyt help would be greatly appreciated.

B.K

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

You can use IP SLA, object tracking, and EEM for this.  For example:

ip sla 1

icmp-echo 10.1.1.1

ip sla schedule 1 life forever start now

!

track 1 ip sla 1 reachability

!

event manager applet ping-watch

event track 1 state down

action 1.0 cli command "enable"

action 2.0 cli command "config t"

action 3.0 cli command "int range gi0/1 - 4"

action 4.0 cli command "shut"

action 5.0 cli command "end"

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: