VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   SSH packet loss timeout (https://forums.vandyke.com/showthread.php?t=14606)

shannonphillips 08-24-2021 04:40 PM

SSH packet loss timeout
 
Background:
I have 3k+ remote firewalls I need to login daily and grab data from. I have a well establish DB recordset and Do while loop which works great, except under one scenario:
If the remote location is currently experiencing ISP issues, the Crt.Session.Connect command will not timeout for high packet loss and will keep trying to communicate. Hence I have babysit the screen and wait for it too hang, than manually disconnect session.

"sample code"
cmd = "/SSH2 /L " & ADLgn & " /PASSWORD " & ADPW & " /ACCEPTHOSTKEYS " & vIP
Err.Number = Crt.Session.Connect (cmd,15) "sample /code"

I cannot fix the ISP issues, there a way in Secure Crt 8 or 9 to Force a timeout regardless of tcp traffic so I can continue through my loop?


All times are GMT -6. The time now is 07:45 PM.