cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
523
Views
0
Helpful
1
Replies

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

jschweng
Level 1
Level 1

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 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

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