Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements
Webcast-Catalyst9k
New Member

Cisco EEM trigger between two device, it posable?

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
Cisco Employee

Re: Cisco EEM trigger between two device, it posable?

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

2 REPLIES
Cisco Employee

Re: Cisco EEM trigger between two device, it posable?

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

New Member

Cisco EEM trigger between two device, it posable?

Thank you Joseph.

284
Views
5
Helpful
2
Replies
CreatePlease to create content