12-17-2015 01:20 PM
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
!
12-18-2015 07:20 AM
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.
12-18-2015 07:49 AM
Thanks Joe!!!!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide