cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
2206
Views
0
Helpful
2
Replies

EEM script triggered by SNMP OID

Cinthia Martinez
Cisco Employee
Cisco Employee

Hi all,

I've created an EEM script triggered by Simple Network Management Protocol (SNMP) object identifier values that generates a syslog message when the Signal to Noise Radio is out of the value permitted:

Object: cwceLteCurrSnr

OID: 1.3.6.1.4.1.9.9.817.1.1.1.1.1.3

When I install two or more EHWIC-4G-LTE card modules into the same router (Cisco 2900 ISR), the EEM script stops working. The problem is that we have the same OID for both EHWIC-4G-LTE card modules. I would like to confirm how can I correlate the OID  of the SNR (cwceLteCurrSnr) with the OID of the the physical entity (entPhysicalName)? How can I know if the information displayed corresponds to the first or the second EHWIC-4G-LTE card?

Please see below the EEM script created:

event manager applet SNR_Value

event snmp oid 1.3.6.1.4.1.9.9.817.1.1.1.1.1.3 get-type next entry-op le entry-val 10 poll-interval 1

action 1.0 cli command "enable"

action 1.1 info type snmp oid 1.3.6.1.4.1.9.9.817.1.1.1.1.1.3 get-type next

action 1.2 syslog msg "BAD SNR = $_info_snmp_value"

exit

!

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

This isn't an EEM question, but a question specific to the CISCO-WAN-CELL-EXT-MIB.  IF you look at this MIB you will see that this table is indexed by entPhysicalIndex from the ENTITY-MIB.  You will need to walk the entPhysicalTable to find the index corresponding to the card you want.  Then you will need to change the event line to contain that ID and a get-type of exact.

Thanks Joe!!!!