I would like to help create an automatic BAT script that will reconnect my Cisco VPN Client session in the event of an Internet disconnect.
There are two commands: command 1for connecting and command 2for disconnecting.
To monitor the connection, I would like to use ICMP (Like 5 failed pings), and if you work in a VPN, continue to forward data. If you are not using command 2to disconnect the VPN session and try to reconnect.
If possible, I would like it to loop so that it automatically connects every time WAN Link breaks.
team 1 . Client program:C:\Program Files (x86)\Cisco Systems\VPN
start vpnclient connect rcx user TESTE pwd TESTE stdin
team 2 . Client program:C:\Program Files (x86)\Cisco Systems\VPN
vpnclient disconnect
.