07-04-2013 04:55 AM
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?
Solved! Go to Solution.
07-04-2013 08:54 AM
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
07-04-2013 08:54 AM
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
07-06-2013 11:02 PM
Thank you Joseph.
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