Welcome to Netcordia Connection Sign in | Join | Help
in Search

Script to check WAN VPN link is up and resolve if it is not.

Last post 12-12-2008 10:42 AM by pvogelsang. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 07-08-2008 2:48 PM

    Script to check WAN VPN link is up and resolve if it is not.

     

    We have 2 VPN Tunnels connecting our Annapolis and Pittsburgh offices. We found a bug in the Juniper Netscreen routers we are using that causes routes to be dropped on the Pittsburgh Netscreen pointing back to subnets in the Annapolis Office. Turns out the routes are all routes sitting behind our Cisco Core Switch/Router.


    We initially wrote a CCS Script to tell us when the routes were down by running a Ping from our Core Cisco router to a router in PIttsburgh. This was great and notified us when the bug reared its nasty head. However we did not know how to resolve other than rebooting the NetScreen firewall.


    Eventually we found a better way to get the routes back by forcing the Cisco 3750 to restart OSPF by issuing the command “clear ip ospf process \cmy”


    So here is the script that we wrote to run a ping from our Cisco 3750 to a Netscreen across the VPN which checks if the Netscreen has a route back the Cisco 3750. If the ping fails we then raise an issue and run the “clear ip ospf process \cmy” command to restart OSPF and get the routes back.

    [ Click Here for Script ]

    Patrick Voglesang
    VP Operations, Netcordia, Inc.
    (T) +1 410 266 6161 x309 (M) +1 724 272 1042 (F) +1 410 573 9779
    (E) pvogelsang@netcordia.com www.netcordia.com

    Filed under: , , ,
  • 12-12-2008 10:42 AM In reply to

    Re: Script to check WAN VPN link is up and resolve if it is not.

     Nice script

    Patrick Voglesang
    VP Operations, Netcordia, Inc.
    (T) +1 410 266 6161 x309 (M) +1 724 272 1042 (F) +1 410 573 9779
    (E) pvogelsang@netcordia.com www.netcordia.com

Page 1 of 1 (2 items)