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

EEM to detect SNMP event not working

xiaolche01
Level 1
Level 1

I want to detect snmp OID to check  policy-map class traffic rate and generate syslog when traffic rate is more than a number.

 

below is my applet :

event manager applet Rate-limit
 event snmp oid ".1.3.6.1.4.1.9.9.166.1.15.1.1.10.50.196608" get-type exact entry-op gt entry-val "100" poll-interval 10
 action 1.0 syslog msg "policy Rate-limit"

but i did not see the "policy rate-limit" in syslog, and i got below   information from "debug event manager  detector snmp "

Jun  1 02:12:29.134 GMT: fh_fd_snmp_process_async
Jun  1 02:12:29.134 GMT: fh_fd_snmp_process_poll_timer: re=0x3D144824, timer_type=POLL
Jun  1 02:12:29.134 GMT: fh_fd_snmp_process_poll_timer: OID unavailable, value check skipped
Jun  1 02:12:29.134 GMT: fh_fd_snmp_start_poll_timer: start_t=10000

 

i can get router snmp oid response from command line

xchen-mac:~ xchen$ snmpwalk -v 2c -c <string> -m ALL stde1002a .1.3.6.1.4.1.9.9.166.1.15.1.1.10.50.196608
SNMPv2-SMI::enterprises.9.9.166.1.15.1.1.10.50.196608 = Counter64: 112938

 

where is wrong?  please help.

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

Drop the leading '.' in your applet OID.  The OID should be 1.3.6.1.4.1.9.9.166.1.15.1.1.10.50.196608

Thanks for help. it works !

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: