cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
808
Views
0
Helpful
2
Replies

Embedded Event Manager - SNMP - run TCL script

jschweng
Level 1
Level 1

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?

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

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

ok thank you i'll give it a try