Displaying Dynamic VPN Tunnels - Cisco DMVPN

Support questions about the Network Weather Map plugin

Moderators: Developers, Moderators

Post Reply
dumline
Posts: 4
Joined: Fri Nov 21, 2014 10:44 am

Displaying Dynamic VPN Tunnels - Cisco DMVPN

Post by dumline »

Hi

Firstly thanks for the great tool Howie!

Id like to be able to display intra-vpn connections between non-hub routers in my cisco dmvpn network.

Somewhat like this - http://map.ipviking.com/

I didn't find anything in my searches...yet.

This is my initial plan:

1) Have pre-built links between my locations
- When a tunnel isn't built the link will be transparent (status = down)
- When the tunnel is built the link will be visible (status = up)

2) To determine if a tunnel is active:
- run a cron job that logs into the router
- the script will run " sh dmvpn"
- pull the resulting active tunnel IP address(s)
- apply that info against the map and show the dynamic tunnels UP or Down status

3) Display this against a geographical map of my locations


Im not sure if weathermap is the right tool for the job - Has anyone tried this before?

TIA
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Displaying Dynamic VPN Tunnels - Cisco DMVPN

Post by Howie »

So a scale with 'none' in it for 0-0 and no link outline should do most of what you need.

A tweak to hide bwlabels when the value is exactly zero might be necessary to hide those too.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
dumline
Posts: 4
Joined: Fri Nov 21, 2014 10:44 am

Re: Displaying Dynamic VPN Tunnels - Cisco DMVPN

Post by dumline »

Im getting a bit hung up on how to display these tunnels.

As they're dynamic 1 site may have from 1 to 20 tunnels to other sites, but its tricky to display as theyre all moving through the same tunnel interface.

I was reading the manual and I was thinking of using a tab-seperated text file for displaying the Targets...but im not sure if im on the right track.

My Plan:

1) I can poll my routers to find out what other routers they are currently connected to

2) use that info to dynamically create a tab-seperated text file
- this file will show which links are active (not trying to display bandwidth, just an active tunnel)
- all links are pre-built, but in a transparent state until the Target text-file activates it
- the link then goes active on the map

Am I trying to push weathermap beyond what it can do?

Also, Im pretty sure I can't pull this info with cacti's SNMP poller but if anyone knows how to please let me know :)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Displaying Dynamic VPN Tunnels - Cisco DMVPN

Post by Howie »

You are on the right track for sure.

As you say, you'd prebuild all the links, set them with a maxvalue of 1. Store a simple 0 or 1 for up or down in your text file. Have a scale where 0-0 is 'none' and 0-1 is green or whatever you want. Make sure the links have no outline colour and 'bwstyle none' so that the bandwidth boxes don't show for the invisible links.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Re: Displaying Dynamic VPN Tunnels - Cisco DMVPN

Post by Howie »

For the polling part - I've never done DMVPN, so I don't know how much of that information is available in SNMP (and even if it is, the indexes might be strange to deal with for something like that), but another possibility is RANCID and some perl to parse the output. RANCID is also a useful tool in its own right, if you don't have it.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
dumline
Posts: 4
Joined: Fri Nov 21, 2014 10:44 am

Re: Displaying Dynamic VPN Tunnels - Cisco DMVPN

Post by dumline »

Im able to pull the info I need from my router.

Im working on how to translate that to a format that weathermap can use...Im not really understanding how to use TARGETS with an external text file.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests