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

Using EEM to check interface status hourly with alerting

kbristow
Level 1
Level 1

Hello,

I am facing an issue where I need high visibility on a single specific interface. I am thinking of using EEM (I am very new with EEM and don't fully understand it's functionalities) 

What I am trying to accomplish is running some sort of task or script to check the status of an interface every hour. If the interface is in a down state, email user@example.com

The closest I have been able to "get" working is based on a syslog event, but that event isn't generated every hour. We would like constant notifications every hour this interface remains in a down status.

I know with EEM I can run an applet that sends an email for an interface being admin shut, a syslog entry, etc. but I am trying to get more persistent visibility on a single specific interface.

With DNA / Catalyst center, it does not appear that I can get to the level of granularity that I am looking for. Although if it is possible, I do have DNA / Catalyst center in my environment, and we have the ability to use that tool as a resource as well.

For example

Every Hour check interface Fo1/1/1 status - If status is up, end task. If status is down, email example@cisco.com

The closest I have been able to come up with is the following.

event manager applet interface_down
event syslog pattern "interface FortyGigabitEthernet1/1/1, changed state to down"
action 1.0 mail server "x.x.x.x (smtp relay)" to ".network@example.com" from ".EEM@example.com" subject "Interface Fo1/1/1 down" body "Interface Fo1/1/1 is in a down state"

However, this only works/is generated on a syslog pattern and not via an hourly check. 

Is there a way to get this to run hourly 

 



1 Reply 1

Try use  watchdog feature

MHM 

Review Cisco Networking for a $25 gift card