Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > Scripting


Closed Thread
Thread Tools Rate Thread Display Modes
Old 08-02-2012, 05:44 PM
miked's Avatar
miked miked is offline
Registered User
Join Date: Feb 2004
Posts: 2,039
Post Example: Import Arbitrary Data From File To SecureCRT Sessions

This example shows how to create sessions from information in a text file (.csv format by default, but this can be edited to fit the format you have).
Watch this video to gain an understanding of what this script does, and how to go about using it.

Download the Python 3 script for SecureCRT v9.0 (Mac/Linux/Windows-with-external-Python3.8-engine-installed)
  • Requires external python 3.8.x installation - python.org or compatible.
    For help getting Python 3 working with SecureCRT v.9, please visit the following platform-specific links:
  • RDP protocol import is only supported in SecureCRT for Windows at this time.

Download the Python 2 script for SecureCRT v9.0 (Windows Only)
  • SecureCRT's limited built-in Python 2.7 script engine is used, so no external python package is needed.
  • Windows only.
  • RDP protocol import is supported.

Older Python version for SecureCRT v7.2.x - v8.7.x
Older VBScript version for SecureCRT v7.2.x - v8.7.x
Note: These older script versions will only work with SecureCRT version 7.2 through 8.7.3. These scripts are no longer being updated/maintained in any way (last updated 29 Oct, 2018). They do not support importing RDP sessions (RDP was introduced in SecureCRT v9.0)
Note: (bgagnon - 07-01-2020, 10:57 AM)
If you do not save your CSV file with ANSI encoding, you may encounter an an error when running the older/legacy/discontinued version of the script:
Error: Unknown field designation: description
Error: Unknown field designation: hostname
The extra characters seen above () are a result of the text file being saved with Unicode or any other encoding other than ANSI. The older script is only able to utilize an import file that is saved with ANSI file encoding. You should be able to reopen the source data file in your favorite editor and change the encoding to ANSI and save the file. For backup purposes, you may wish to save this change under a different name. Once you have your newly saved, ANSI-encoded text file, please attempt to run the script using the new file.
All attachments for this post:

Last edited by jdev; 06-25-2021 at 02:36 PM. Reason: Updated to reflect newer versions which work with v9.0 and supports Python 3.8 and importing RDP sessions.
Closed Thread

example script

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 07:43 AM.