Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Scripting

Reply
 
Thread Tools Rate Thread Display Modes
  #151  
Old 04-19-2019, 12:25 AM
msia0808 msia0808 is offline
Registered User
 
Join Date: Apr 2019
Posts: 1
How to keep all connections tab open

How to modify the script in order that existing session remains open and then it open a new session tab then repeat again until all the hosts are completed? I want to manually validate all configuration before committing the change.

Previously I have tried to comment out line 510-514, the first session did not terminate (as how I want it), then it open a new session tab but won’t enter credentials.
Do
g_objNewTab.Session.Disconnect
crt.Sleep 100
Loop While g_objNewTab.Session.Connected
Reply With Quote
  #152  
Old 04-14-2020, 10:52 AM
Ulua Ulua is offline
Registered User
 
Join Date: May 2019
Posts: 5
RunCommandsOnMultipleHostsAndLogResults.py.

Can these scripts run-in Windows 10 in a SecureCrt 7.1? Thank you...

Because I am getting these errors below:

https://docs.google.com/drawings/d/1...btCXPHu5o/edit


Ulua.

Last edited by Ulua; 04-14-2020 at 11:30 AM. Reason: Added more information.
Reply With Quote
  #153  
Old 04-14-2020, 11:28 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,309
Hi Ulua,

Offhand I do not know of any specific methods or properties used in the script that would prevent it from running successfully in SecureCRT v7.1. However, official support for Windows 10 began with SecureCRT v7.3.x.

If using a newer version is at all possible (version 8.7.1 is available for evaluation), it is recommended.
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #154  
Old 04-14-2020, 11:32 AM
Ulua Ulua is offline
Registered User
 
Join Date: May 2019
Posts: 5
Smile

Hi bgagnon,

That makes a lot of sense, that error is because of my SecureCRT version. Thank you for the quick response.

Ulua
Reply With Quote
  #155  
Old 04-14-2020, 11:46 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,309
Hi Ulua,

Sorry, I get an email as a result of your post. You must have added the info about the error after the email was sent.

I cannot open that document.

What error are you getting?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #156  
Old 06-25-2020, 05:43 AM
gmlabs gmlabs is offline
Registered User
 
Join Date: Jun 2020
Posts: 1
Running script instead of command.txt

I'm trying to run a recorded script instead of text in the command file.
I have had success adding the code just before "g_objNewTab.Screen.Send("{0}\r".format(strCommand))" , but the indent is killing me and quick cut and paste from recorded script would be nice.

Is there an easier way to add a sub that can be called ?
Reply With Quote
  #157  
Old 06-25-2020, 11:15 AM
jdev's Avatar
jdev jdev is offline
VanDyke Technical Support
 
Join Date: Nov 2003
Location: Albuquerque, NM
Posts: 998
Quote:
Originally Posted by gmlabs View Post
I'm trying to run a recorded script instead of text in the command file.
I have had success adding the code just before "g_objNewTab.Screen.Send("{0}\r".format(strCommand))" , but the indent is killing me and quick cut and paste from recorded script would be nice.

Is there an easier way to add a sub that can be called ?
There isn't any easy way to do what you want.

This script example is designed to read commands that are literal text strings that get sent (without modification) to the remote system.

--Jake
__________________
Jake Devenport
VanDyke Software
Technical Support
YouTube Channel: https://www.youtube.com/vandykesoftware
Email: support@vandyke.com
Web: https://www.vandyke.com/support
Reply With Quote
Reply

Tags
example script


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 06:04 PM.