Embedded Event Manager - SNMP - run TCL script

Unanswered Question
Mar 31st, 2010

I would like to run a tcl script on a router using snmp. I understand Embedded Event Manager can do this but haven't found what I need to run that.  Can someone point me in the right direction?

I have this problem too.
0 votes
  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Wed, 03/31/2010 - 15:16

Yeah, you could do this, but it depends on your version of IOS.  You will need EEM 3.1 or higher (15.0) to be able to intercept SNMP GET requests.  Then, you could do something like:

event manager applet snmp-trigger

event snmp-object oid 1.9.9.9.9 type gauge sync yes istable no

action 1.0 policy my_tcl_policy.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

!

snmp-server manager

Then, when you query 1.9.9.9.9.0 on the device, the Tcl policy "my_tcl_policy.tcl" should execute, and the snmp-trigger applet policy will return a value of 0.

--

Please support CSC Helps Haiti

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

https://supportforums.cisco.com

Actions

This Discussion