
This script is for monitoring Cisco VPN tunnels using SNMP. To use it, create an active monitor using vb script and paste the code in. On the device you wish to monitor, create a new interface from the device properties general page, and give the new interface the IP address of the VPN endpoint. Then, assign the active monitor to that device and set it to use the interface you have just created.
The script works by reading the new interface IP address and then looking for this IP address in the Cisco SNMP OID 1.3.6.1.4.1.9.9.171.1.2.3.1.7. This OID lists the endpoints of all active VPN tunnels, and when a tunnel is destroyed the entry is removed. Hence the active monitor will show as up if the IP address you specified is found, and down if it is not. I have so far tested this and am using it on two separate Cisco routers (and WUG 14.1), any problems or comments please let me know!
Comments
Great script... I was able to adapt it for use with the Cisco ASA by removing the code for adding leading Zeros to the ip address octets.
Thanks
Reply to this Comment
Be the first to rate this
|
Sign in to rate this
Hi I try to use this Script with Cisco ASA 5520 / IOS 7.2(5) but it's not work, I'm not an expert with CISCO, I don't know if some one help me.
Reply to this Comment
Be the first to rate this
|
Sign in to rate this