Connect if ping fails

Got a problem with Viscosity or need help? Ask here!

eshutika

Posts: 1
Joined: Mon Jul 04, 2022 11:58 pm

Post by eshutika » Tue Jul 05, 2022 12:02 am
Hello,
I would like some help creating a script. Here is what i basically want it to do
if ping xx.yyy.com fails, then auto connect vpn .
if ping xx.yyy.com is successful, do not connect.

Basically i want to create a script that connects the vpn automatically if the user is not in the office.

James

User avatar
Posts: 2312
Joined: Thu Sep 04, 2008 9:27 pm

Post by James » Tue Jul 05, 2022 10:45 pm
Hi eshutika,

I'm afraid we don't have the support resources available to help write custom scripts, however you can find information on how to control Viscosity from your script at:
https://www.sparklabs.com/support/kb/ar ... g-windows/

You should be able to find some examples on the internet on how to call ping from a Powershell or Batch script and parse the result.

Cheers,
James
Web: https://www.sparklabs.com
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts Page 1 of 1