• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Reconnecting PPTP VPN
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reconnecting PPTP VPN


  • Subject: Reconnecting PPTP VPN
  • From: Peter Sichel <email@hidden>
  • Date: Thu, 18 Jun 2009 09:08:58 -0400

Hi All,

I'm looking for advice on reconnecting a PPTP VPN. I've written a server monitoring tool that probes a list of servers at regular intervals. If the underlying Internet connection uses the built-in PPTP VPN client and disconnects for whatever reason, what are my options to discern this and tell it to reconnect?

I'm familiar with the System Configuration Framework, and imagine I can check to see if the first enabled service in the Network Service Order uses PPTP (or PPP) and is currently in the disconnected state. I've also Googled and found an AppleScript snippet for telling PPTP to reconnect, but I am hoping to find a more direct way.
tell application "System Events"
tell current location of network preferences
set VPNservice to service "VPN (PPTP)"
if exists VPNservice then connect VPNservice
end tell
end tell
Is there a key in the SCF that will tell PPTP to reconnect? It would be nice if this worked consistently on both 10.4 and 10.5 .


Thanks for any advice,

- Peter Sichel
  Sustainable Softworks
  www.sustworks.com

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: check memory consumption (kernel address space) and cpu consumption by kext
  • Next by Date: Re: check memory consumption (kernel address space) and cpu consumption by kext
  • Previous by thread: Re: check memory consumption (kernel address space) and cpu consumption by kext
  • Next by thread: ESP and nat-traversal
  • Index(es):
    • Date
    • Thread