VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Logging initial rsponse from device before connection is successful (https://forums.vandyke.com/showthread.php?t=12045)

micdundee 07-15-2015 10:47 PM

Logging initial rsponse from device before connection is successful
 
Hi,
I'm trying to create a script to connect to various devices unfortunately not all the devices are accepting the connection... Due to firewall rules not configured or access list not set yet, I encounter few connection issues.

As those errors occur before the successful connection and login, is there a way to have them log into a file so I can find which devices need to be configured to allow access from my IP?

Every example I found so far, use a session logging features but I'm not sure if I can use that to log the error message before any connection is made from SecureCRT...

rtb 07-16-2015 09:17 AM

Hi micdundee,

Thanks for the post. The following example script has a good illustration of what you want to do:
https://forums.vandyke.com/showthrea...7294#post37294
The function named Connect() shows how to capture errors during connection.

Lines 22, 286 to 297 show how to write data to a log file.

Does this help you accomplish your goal?


All times are GMT -6. The time now is 07:29 AM.