cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
792
Views
5
Helpful
2
Replies

Cisco EEM trigger between two device, it posable?

peraocompany
Level 1
Level 1

Hello I have question, can I see message form Switch to Router for activation EEM?

I think one way use SMNP for this.

On router side i have configuration:

event manager applet snmp

event snmp-notification oid 1.3.6.1.4.1.12345.1.0 oid-val "1" op eq maxrun 20000

action 10 syslog msg "Triggered from Trap!"

Can Cisco switch send SMNP msg to Router on with special OID? for activation Router Event?

Maybe someone use another way for communication?

1 Accepted Solution

Accepted Solutions

Joe Clarke
Cisco Employee
Cisco Employee

Sure, this is possible.  You don't have to use purely customized traps, either.  You can use standard EEM traps.  From the source device, do something like:

event manager applet ospf-change

event syslog pattern "OSPF-5-ADJCHG"

action 1.0 cli command "enable"

action 2.0 cli command "debug ip ospf packet"

action 3.0 snmp-trap intdata1 424242

!

snmp-server enable traps event-manager

snmp-server host 10.1.1.1 traps public event-manager

Then on the target device:

event manager applet ospf-change

event snmp-notification oid 1.3.6.1.4.1.9.10.91.1.2.3.1.9. oid-val "424242" op eq src-ip-address 10.1.1.2

action 1.0 cli command "enable"

action 2.0 cli command "debug ip ospf packet"

!

snmp-server manager

View solution in original post

2 Replies 2

Joe Clarke
Cisco Employee
Cisco Employee

Sure, this is possible.  You don't have to use purely customized traps, either.  You can use standard EEM traps.  From the source device, do something like:

event manager applet ospf-change

event syslog pattern "OSPF-5-ADJCHG"

action 1.0 cli command "enable"

action 2.0 cli command "debug ip ospf packet"

action 3.0 snmp-trap intdata1 424242

!

snmp-server enable traps event-manager

snmp-server host 10.1.1.1 traps public event-manager

Then on the target device:

event manager applet ospf-change

event snmp-notification oid 1.3.6.1.4.1.9.10.91.1.2.3.1.9. oid-val "424242" op eq src-ip-address 10.1.1.2

action 1.0 cli command "enable"

action 2.0 cli command "debug ip ospf packet"

!

snmp-server manager

Thank you Joseph.