Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 01-30-2013, 10:31 PM
chrnguye chrnguye is offline
Registered User
 
Join Date: Jan 2013
Posts: 1
vbscript - crt.session.connect on securecrt 7.0.3

Hi all,

I've run into a strange problem on one of the most basic functions.

Previously had securecrt version 6.7.5, and a vbscript connecting to network devices (using SSH2) to grab 'show' commands.


Below is how i use the vbscript connect function

crt.session.connect "/SSH2 /L " & user & " /PASSWORD " & passwd & " /C 3DES /M MD5 " & ip & " /AcceptHostKeys"

This WAS working ok.


Now recently, admin in our company has upgraded/patched the securecrt software to 7.0.3.

Now when my script runs, i get a 'logon popup' dialogue box - prefilled with the username supplied by the script, but the password field empty . This effectively breaks/halts my script from proceeding.


Are there any workarounds or securecrt settings adjustments to get rid of this popup box? As noted, my script was previously working when i had securecrt 6.7.5. I have not modified my script.

Thanks in advance,
Chris
Reply With Quote
  #2  
Old 01-31-2013, 07:44 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi Chris,

Thanks for the question. I am able to use your line of code from within SecureCRT 7.0.3 without issue even though the syntax is not correct. My guess is that something in addition to SecureCRT has changed.

Here is the correct syntax:
Code:
crt.session.connect "/SSH2 /L " & user & " /PASSWORD " & passwd & " /C 3DES /M MD5 /AcceptHostKeys " & ip
Would you manually connect to the device, capture trace options output and send it to me at support@vandyke.com with a subject of Attn Todd - Forum thread 10861?

To enable trace options output, click on the File pull down menu and select Trace Options. If you click the File pull down menu again you should see a check mark next to Trace Options, indicating that trace options output is now enabled.

With Trace Options enabled, you will notice debugging information displayed in the terminal window that isn't normally there by default when SecureCRT is attempting to establish a connection, and at certain times throughout the lifetime of the connection.

Once you are successfully connected, you can use the Select All and Copy options from within the Edit menu to transfer the information to the Windows clipboard, and then paste this information into a text editor and save the data as a file.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
  #3  
Old 03-06-2013, 09:52 AM
rtb rtb is offline
VanDyke Technical Support
 
Join Date: Aug 2008
Posts: 4,306
Hi All,

This issue was a result of an administrative policy that disabled saving of passwords which also prevented the command-line from working. We have a new build of SecureCRT that addresses this issue. If you would like to test it, please send a message to support@vandyke.com with a subject of Attn: Todd - forum thread 10861.

This fix should also be available in SecureCRT 7.1b2 and newer.
__________________
--Todd

VanDyke Software
Technical Support
support@vandyke.com
505-332-5730
Reply With Quote
Reply

Tags
securecrt , vbscript


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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 02:00 AM.