Skip to content
Connect if ping fails
Got a problem with Viscosity or need help? Ask here!
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.
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.
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
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
Support: https://www.sparklabs.com/support
Twitter: https://twitter.com/sparklabs
2 posts
Page 1 of 1