cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
600
Views
0
Helpful
5
Replies

Event Manager Applet not triggering using OID's

jeffrey-archer
Level 1
Level 1

Hi,  I am working on a router that I am upgrading from 3G services to 4G/LTE service and having issues with getting the Event Manager script listed below to run. The router will be installed into a mobile Van and will go all over the State. Depending on where it is in the State, will define which circuit it will use (Local LAN, AT&T  4G or Verizon 4G). This worked when it was running IOS c2900-universalk9-mz.SPA.151-3.T.bin. I had to upgrade to IOS c2900-universalk9-mz.SPA.155-3.M7.bin. I think the OID's may be different for the 4G cards, I read somewhere that 817 for 4G LTE and that 661 was for 3G. I can translate 1.3.6.1.4.1.9.9.661.1.1.1.10 but can't find a translation for the 25 or 26 that follows. I do know that it's checking for the RSSI level on the Cellular Cards. Can someone help me understand how this is suppose to work, why it doesn't work or tell me what I am missing? I am using AAA Authentication so I may need to add bypass and enable statements.

Thank You...........Jeff

>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>

event manager applet ATT_DOWN
 event snmp-notification oid 1.3.6.1.4.1.9.9.661.1.1.1.10.26 oid-val "-95" op lt
 action 1.0 syslog msg "shutting down tunnel 2226"
 action 2.0 cli command "conf t"
 action 3.0 cli command "interface tunnel 2226"
 action 4.0 cli command "shut"
 action 5.0 cli command "end"
event manager applet ATT_UP
 event snmp-notification oid 1.3.6.1.4.1.9.9.661.1.1.1.10.26 oid-val "-95" op gt
 action 1.0 syslog msg "bringing up tunnel 2226"
 action 2.0 cli command "conf t"
 action 3.0 cli command "interface tunnel 2226"
 action 4.0 cli command "no shut"
 action 5.0 cli command "end"
event manager applet VZW_DOWN
 event snmp-notification oid 1.3.6.1.4.1.9.9.661.1.1.1.10.25 oid-val "-95" op lt
 action 1.0 syslog msg "shutting down tunnel 1226"
 action 2.0 cli command "conf t"
 action 3.0 cli command "interface tunnel 1226"
 action 4.0 cli command "shut"
 action 5.0 cli command "end"
event manager applet VZW_UP
 event snmp-notification oid 1.3.6.1.4.1.9.9.661.1.1.1.10.25 oid-val "-95" op gt
 action 1.0 syslog msg "bringing up tunnel 1226"
 action 2.0 cli command "conf t"
 action 3.0 cli command "interface tunnel 1226"
 action 4.0 cli command "no shut"
 action 5.0 cli command "end"
event manager applet Ethernet_up
 event snmp-notification oid 1.3.6.1.4.1.9.2.2.1.1.20.3 oid-val "Link up" op eq maxrun 240
 action 1.0 syslog msg "Switching to Gig0/2 updating tunnels"
 action 1.5 cli command "conf t"
 action 2.0 cli command "interface tunnel 2226"
 action 2.5 cli command "shut"
 action 2.7 cli command "tunnel protection ipsec profile DMVPN shared"
 action 3.0 cli command "interface tunnel 1226"
 action 3.5 cli command "shut"
 action 3.7 cli command "tunnel protection ipsec profile DMVPN shared"
 action 4.0 cli command "no snmp-server enable traps c3g"
 action 4.5 wait 120
 action 4.7 syslog msg "finished_waiting"
 action 4.9 cli command "conf t"
 action 5.0 cli command "interface tunnel 2226"
 action 5.5 cli command "tunnel source G0/2"
 action 6.0 cli command "no shut"
 action 6.5 cli command "interface tunnel 1226"
 action 7.0 cli command "tunnel source G0/2"
 action 7.5 cli command "no shut"
 action 8.0 cli command "end"
event manager applet Ethernet_down
 event snmp-notification oid 1.3.6.1.4.1.9.2.2.1.1.20.3 oid-val "Link down" op eq maxrun 240
 action 1.0 syslog msg "Switching to cellular updating tunnels"
 action 1.5 cli command "conf t"
 action 2.0 cli command "interface tunnel 2226"
 action 2.5 cli command "shut"
 action 2.7 cli command "tunnel protection ipsec profile DMVPN"
 action 3.0 cli command "interface tunnel 1226"
 action 3.5 cli command "shut"
 action 3.7 cli command "tunnel protection ipsec profile DMVPN"
 action 4.0 cli command "snmp-server enable traps c3g"
 action 4.5 wait 120
 action 4.7 syslog msg "finished_waiting"
 action 5.0 cli command "interface tunnel 2226"
 action 5.5 cli command "tunnel source Cellular0/1/0"
 action 6.0 cli command "no shut"
 action 6.5 cli command "interface tunnel 1226"
 action 7.0 cli command "tunnel source Cellular0/2/0"
 action 7.5 cli command "no shut"
 action 8.0 cli command "end"

5 Replies 5

Hello,

 

before anything, no action will work with out an 'enable' action that preceeds the 'conf t':

 

action 1.1 cli command 'enable"

action 2.0 cli command "conf t"

 

I'll see if I can find the appropriate OIDs...

Hello,

 

the applicable MIB is, most likely, the CISCO-WAN-CELL-EXT-MIB (link below). I don't see a specific OID for RSSI...but for 4G, 817 instead of 661 indeed is used. What if you just exchange these numbers, keeping the rest of the OID ?

 

http://www.circitor.fr/Mibs/Html/C/CISCO-WAN-CELL-EXT-MIB.php#ciscoWanCellExtMIBLteObjectGroup

I tried with the existing 661 and then again with the 817 and both time I got the same Debug result. I removed the antenna's on one of the cards to force an event.

 

Aug  9 11:56:37.185: fh_fd_config_event_match: num_matches = 0
Aug  9 11:56:37.185:
Aug  9 11:56:37.185: fh_fd_config_event_notify:

 

I do not know if low RSSI would result in a syslog alert.

jmperlewitz
Level 1
Level 1

I am not super familiar with 3G/4G alerting mechanisms.  Do you know if low RSSI would generate syslog alerts?  If so, you could base your EEM script based on that rather than snmp.

I do not know if low RSSI would result in a syslog alert. I can't seem to find a MIB for RSSI, only RSRP and RSRQ.

Review Cisco Networking for a $25 gift card