# IP SLA and EEM Script

**URL:** https://forum.networklessons.com/t/ip-sla-and-eem-script/1334
**Category:** Lessons Discussion
**Created:** [December 29, 2016, 8:54pm UTC](https://forum.networklessons.com/t/ip-sla-and-eem-script/1334 "2016-12-29T20:54:33Z")
**Posts on this page:** 1
**Showing post:** 6

<div class="post-metadata">

### Author: ![networkeh](https://cdn-forum.networklessons.com/letter_avatar_proxy/v4/letter/n/a8b319/32.png) [@networkeh](https://forum.networklessons.com/u/networkeh)
#### Post date: [October 25, 2018, 4:33pm UTC](https://forum.networklessons.com/t/ip-sla-and-eem-script/1334/6 "2018-10-25T16:33:42Z")

</div>

Hello,  
I am using EEM to track an IP SLA and in case it’s DOWN, I would want to send an SNMP-TRAP to NMS. IP SLA and Track works perfectly, however, the SNMP traps are not being sent. Please review my code and advise if I am missing something. Thanks.

```
rt-1#debug snmp packets
SNMP packet debugging is on

rt-1#sho run | s event
snmp-server enable traps event-manager
event manager applet TRACK_IP_DOWN
 event track 1 state down
 action 1.0 syslog msg "IP SLA 100 is down"
 action 2.0 mail server "smtp-1.local" to "networkadmins@local" from "no-reply@local" subject "IP SLA 100 is down" body "IP SLA 100 is not receiving ICMP echo replies anymore"
 action 3.0 snmp-trap strdata "SNMP: IP SLA 100 is not receiving ICMP echo replies anymore"

rt-1#sho run | s snmp
snmp-server community test RO
snmp-server trap-source GigabitEthernet0/1
snmp-server location GNS3 Lab
snmp-server enable traps event-manager
snmp-server host 172.30.1.10 informs version 2c test
snmp-server host 172.30.1.10 version 2c test

```

---

_[View the full topic](https://forum.networklessons.com/t/ip-sla-and-eem-script/1334)._
