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

Monitoring 4000 cisco routers

Ronen Benjamin
Level 1
Level 1

We are using Cisco routers model 4000

Our application has to monitor the communication periodically in order to evaluate the next hop from current station to another station and which interface is used for.

Practically, query of changes on routing table is required 

Our application is written on c++. API that is supported by our routers is required 

Thank you in advance 

2 Replies 2

balaji.bandi
Hall of Fame
Hall of Fame

Couple of question how you Monitoring.

 

1.is this application inside the LAN - then first you can check ping with Lan Interface basic reachability.

2. You can use SNMP / SSH to device to monitor other parameters.

3. you can have syslog server which you can integrate with your application based on the syslog message

4. you can run EEM Script run inside the router keep polling next hop and report back to your application server /syslog message based on that you can input make decsion.

 

some of the things we do not know at the moment from your side, what exactly is this application  ? is this NMS or remidiation or action if the device not reachable ?

 

 

BB

***** Rate All Helpful Responses *****

How to Ask The Cisco Community for Help

Hello,

 

you could use the EEM script below to monitor changes in the routing table. The script will send you an email each time a change occurs.

Action 5.0 (the syslog message) is optional. The environment variables at the beginning need to be changed to reflect your email data.

 

event manager environment _email_to yourname@yourdomain.com
event manager environment _email_server username:password@smtp.yourdomain.com
event manager environment _email_from username@mail.com
!
event manager applet ROUTING_TABLE_CHANGE_TRACKER
event routing network 0.0.0.0/0 ge 1
action 1.0 set msg "Routing table has changed: Type: $_routing_type, Network: $_routing_network, Mask/Prefix: $_routing_mask, Protocol: _routing_protocol, GW: $_routing_lastgateway, Intf: $_routing_lastinterface"
action 2.0 cli command "enable"
action 3.0 info type routername
action 4.0 mail server "$_email_server" to "$_email_to" from "$_email_from" subject "Routing table has changed on $_info_routername" body "$_cli_result"
action 5.0 syslog msg "$msg"

Review Cisco Networking for a $25 gift card