using Embedded Event Mgr to Modify Config via SNMP and TCL scripts

Unanswered Question
Apr 8th, 2010
User Badges:

I am on 3750 with ios 12(52)SE  has EEM Version 3.2. I would like to be able to change the running configuration using EEM and snmp.  I have this code snippet which seems to work. But I need to be able to run up to 10 different TCL scripts based on 10 different SNMP queries. Its so we can add or delete specific multicast streams from an outgoing port.


is there anyway to get that to work with multiple smpb-objects and tcl scripts?



event manager applet ADD-PLAYBACK-1
event snmp-object oid 1.9.9.9.9 type gauge sync yes istable no
action 1.0 policy ADD-PLAYBACK-1.TCL
action 2.0 snmp-object-value event-id _event_id gauge 0 next-oid 1.9.9.9.9.0
action 3.0 exit 1



Thank you

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Thu, 04/08/2010 - 15:34
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

You could just create one applet policy per script, and have each one using a unique SNMP object.  For example:


event manager applet ADD-PLAYBACK-1
event snmp-object oid 1.9.9.9.9 type gauge sync yes istable no
action 1.0 policy ADD-PLAYBACK-1.TCL
action 2.0 snmp-object-value event-id _event_id gauge 0 next-oid 1.9.9.9.9.0
action 3.0 exit 1


event manager applet ADD-PLAYBACK-2
event snmp-object oid 1.9.9.9.10 type gauge sync yes istable no
action 1.0 policy ADD-PLAYBACK-2.TCL
action 2.0 snmp-object-value event-id _event_id gauge 0 next-oid 1.9.9.9.10.0
action 3.0 exit 1


...


--


Please support CSC Helps Haiti


https://supportforums.cisco.com/docs/DOC-8895

https://supportforums.cisco.com

Actions

This Discussion