Linux – Network – Technology
Cisco EEM script | Routing table change – monitoring
1 2 3 4 5 6 7 8 9 |
event manager applet route-table-monitor event routing network 0.0.0.0/0 ge 1 action 0.5 set msg "Route changed: Type: $_routing_type, Network: $_routing_network, Mask/Prefix: $_routing_mask, Protocol: $_routing_protocol, GW: $_routing_lastgateway, Intf: $_routing_lastinterface" action 1.0 syslog msg "$msg" action 2.0 cli command "enable" action 4.0 info type routername action 5.0 snmp-trap strdata "Route changed: Type: $_routing_type, Network: $_routing_network, Mask/Prefix: $_routing_mask, Protocol: $_routing_protocol, GW: $_routing_lastgateway, Intf: $_routing_lastinterface" action 6.0 cli command "end" action 7.0 cli command "exit" |
Leave a Reply