cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
7889
Views
0
Helpful
5
Replies

eem event snmp oid

a-macaringue
Level 1
Level 1

Good day

Can someone please explain me what the following line mean:

event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.2 get-type exact entry-op eq entry-

val "2" exit-op eq exit-val "1" poll-interval 5

If possible, please refer to an Cisco article for further searches.

Thank you

Antonio

5 Replies 5

johnwils
Cisco Employee
Cisco Employee

It polls that oid every 5 seconds and triggers off the value in that oid if the value is equal to 2 and exits if the value is equal to 1.

http://www.cisco.com/en/US/docs/ios/netmgmt/command/reference/nm_06.html#wp1157085

Thank you for your answer and the link.

Joe Clarke
Cisco Employee
Cisco Employee

This policy will monitor the rttMonCtrlOperTimeoutOccurred value for IP SLA collector number 2.  If the value is equal to 2 (meaning a timeout did not occur), then the policy actions will execute.  They will not execute again until the value of rttMonCtrlOperTimeoutOccurred becomes 1 (meaning a timeout occurred) then becomes 2 again.

Thank you Joseph.

Please have a look of full configuration:

ip sla 1

icmp-echo 22.33.9.4 source-ip 22.33.128.5

frequency 5

ip sla schedule 1 life forever start-time now

ip sla 2

icmp-echo 22.33.8.254 source-ip 22.33.128.5

timeout 2000

frequency 2

ip sla schedule 2 life forever start-time now

access-list 150 permit ip host 22.33.128.26 host 22.33.146.26

access-list 150 permit ip host 22.33.128.15 host 22.33.146.15

access-list 150 permit ip any any

access-list 151 deny   icmp host 22.33.146.5 host 22.33.9.2

access-list 151 permit ip any any

access-list 155 permit ip any 22.33.146.0 0.0.0.255

!

route-map BOSTONNLK permit 10

match ip address 150

set ip next-hop 22.33.9.4

!

route-map BOSTONNLK permit 20

match ip address 155

set ip next-hop 22.33.8.254

!

!

!

control-plane

!

event manager applet BOSTONNLKUP

event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.1 get-type exact entry-op eq entry-

val "2" exit-op eq exit-val "1" poll-interval 5

action 1.0 syslog msg " BOSTONNLKUP "

action 2.0 cli command "enable"

action 3.0 cli command "config t"

action 3.2 cli command "int  vlan 50"

action 3.3 cli command "ip policy route-map BOSTONNLK"

action 3.4 cli command "int vlan 10"

action 3.5 cli command "ip policy route-map BOSTONNLK"

action 3.6 cli command "exit"

event manager applet BOSTONNLKDown

event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.1 get-type exact entry-op eq entry-

val "1" exit-op eq exit-val "2" poll-interval 5

action 1.0 syslog msg " BOSTONNLKDown"

action 2.0 cli command "enable"

action 3.0 cli command "config t"

action 3.2 cli command "int vlan 50"

action 3.3 cli command "no ip policy route-map BOSTONNLK"

action 3.4 cli command "int vlan 10"

action 3.5 cli command "no ip policy route-map BOSTONNLK"

action 3.6 cli command "exit"

event manager applet BOSTONNLKUP2

event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.2 get-type exact entry-op eq entry-

val "2" exit-op eq exit-val "1" poll-interval 5

action 1.0 syslog msg " BOSTONNLKUP2 "

action 2.0 cli command "enable"

action 3.0 cli command "config t"

action 3.1 cli command "no access-list 150 permit ip any any"

action 3.2 cli command "access-list 150 permit ip host 22.33.128.26 host 22.33.

146.26"

action 3.3 cli command "access-list 150 permit ip host 22.33.128.15 host 22.33.

146.15"

action 3.4 cli command "exit"

event manager applet BOSTONNLKDown2

event snmp oid 1.3.6.1.4.1.9.9.42.1.2.9.1.6.2 get-type exact entry-op eq entry-

val "1" exit-op eq exit-val "2" poll-interval 5

action 1.0 syslog msg " BOSTONNLKDown2"

action 2.0 cli command "enable"

action 3.0 cli command "config t"

action 3.1 cli command " access-list 150 permit ip any any"

action 3.2 cli command "exit"

!

end

Do you see any inconsistency on this configuration?

Thank you

AM

A five second polling interval is very aggressive.  I typically recommend no lower than 10.  Is there any reason why you're not using Enhanced Object Tracking for this?  It would greatly simplify the applets, and make your reactions much quicker.