Page 1 of 1

Connect if ping fails

Posted: Tue Jul 05, 2022 12:02 am
by eshutika
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.

Re: Connect if ping fails

Posted: Tue Jul 05, 2022 10:45 pm
by James
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