cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1999
Views
0
Helpful
1
Replies

Naming Networks in EEM route table monitor

roger
Level 1
Level 1

I have the following EEM applet running on one of my core devices to monitor any changes in the routing table.

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 3.0 info type routername

action 4.0 mail server "*.*.*.*" to "roger@*********" from "Core1" subject "Routing Table Change" body "$msg  $_cli_result"

action 8.0 set msg "Route changed: Type: "

This works brilliantly however the email I get lists the networks by IP and I am trying to get it to identify them by name

Email Output

Route changed: Type: modify, Network: 10.8.4.0, Mask/Prefix: 255.255.255.0, Protocol: BGP, GW: 10.1.1.1, Intf: N/A

The script is running on a 3750

I tried putting ip host info on the switch but that did not work.

I am not sure if there is an extra line I can add to the script or if anyone else has done this?

Thanks

Roger

1 Reply 1

Joe Clarke
Cisco Employee
Cisco Employee

I don't understand the request.  Where would the network "name" come from?  Networks are unnamed on IOS.