Cisco NX-OS – Email Alert if Interface Status Changes

ciscocisco-nx-os

I have two Nexus 5548s in our data center. They have only servers and storage connected to them. Some interfaces are configured for native fiber channel while the rest are still Ethernet. Since there will only be servers and storage connected, I'd like to get alerts if an interface status changes (goes from up to down or vice versa). I was able to successfully configure some alerts using the "callhome" configuration using some of the default alert groups. For example, I configured the alert-group Environmental to email when it got a message-level 3. If I disconnect one of the power supplies (simulating power failure), it sends me an email. But I can't find how to configure an email for interface status change.

Any help is appreciated and thanks in advance.

Best Answer

You can use eem - embeded event manager. Here is nx-os configuration guide: http://www.cisco.com/c/en/us/td/docs/switches/datacenter/sw/5_x/nx-os/system_management/configuration/guide/sm_nx_os_cg/sm_12eem.html. First example shows how to send emails. With eem you can capture interface state changes and trigger events. Also nexus switches support pure python. You can write a python script which catches the int up down logs and sends notifications