Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 12-20-2016, 09:47 AM
atchinson atchinson is offline
Registered User
 
Join Date: Dec 2016
Posts: 2
SecureCRT Command Windows - Pass Parameters

Is it possible in the Command Window to pass parameters / variables.

It would be nice to be able to compose a command and send to all connected session but each session would get the individual adjusted parameter / variable.

Have a tab in the Session object for custom parameters and it associated value.

Session 1
Site_Number = 3

Session 2
Site_Number = 6

Session 3
Site_Number = 9

object-group network Site-Admin-Network
10."{Site_Number}".0.0 255.255.0.0

So, when the command is sent to all the sessions "{Site_Number}" is replaced with the correct Session parameter.
Reply With Quote
  #2  
Old 12-21-2016, 09:39 AM
jjh jjh is offline
VanDyke Customer Support
 
Join Date: Feb 2004
Posts: 819
Hi atchinson.

It isn't currently possible to use variables like that in
the command window. I have created an entry for you in our
feature request database. We will post something here
should a version of SecureCRT become available with the
ability to use variables. If you would like to be informed
via e-mail, please send a message to support@vandyke.com
referencing this forum thread.

To achieve what you are wanting, you would probably need to
use scripting instead of using the command window. There
are some scripting references, including our VBScript
scripting manual on the following web page:

https://www.vandyke.com/support/index.html

Thanks

JJH
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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:31 AM.