03-31-2010 03:01 PM
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?
03-31-2010 03:16 PM
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
03-31-2010 03:22 PM
ok thank you i'll give it a try
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide