Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Thread Tools Rate Thread Display Modes
Old 07-15-2015, 09:47 PM
micdundee micdundee is offline
Registered User
Join Date: Jul 2015
Posts: 1
Logging initial rsponse from device before connection is successful

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...
Reply With Quote
Old 07-16-2015, 08:17 AM
rtb rtb is offline
VanDyke Technical Support
Join Date: Aug 2008
Posts: 4,305
Hi micdundee,

Thanks for the post. The following example script has a good illustration of what you want to do:
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?

VanDyke Software
Technical Support
Reply With Quote

connect , error , log , scripting

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT -6. The time now is 06:33 AM.