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 10-31-2016, 03:14 AM
wangsp82 wangsp82 is offline
Registered User
 
Join Date: Sep 2013
Posts: 1
What's the attribute list for Config Option

Hi all,

I hope to use crt.Session.Config.SetOption, but there are no official reference book mentioning all the attribute name.

What I only know is "Protocol Name", "Hostname", "Username".

Thank you.

James
Reply With Quote
  #2  
Old 10-31-2016, 09:06 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,153
Hi James,

What version of SecureCRT are you using?

What is your preferred scripting language?

The SessionConfiguration Object (and associated GetOption() and SetOption() methods) use the entries found in a session's INI file.

Session INI files are stored in the Sessions subfolder of the configuration folder. The location of your installation's Configuration folder is found in the General / Configuration Paths category of SecureCRT's Global Options (General for versions prior to v7.2.0).

The GetOption() and SetOption() descriptions in the Scripting / Script Objects Reference / SessionConfiguration Object topic of SecureCRT's Help file contain info about which of the entries can be accessed/set via these methods.

D - DWORD (numeric)
S - String type
Z - Multi-string (array)
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 01-25-2020, 03:19 PM
scottmlew scottmlew is offline
Registered User
 
Join Date: Jan 2020
Posts: 4
It seems there are some configuration parameters that aren't in the .ini file. For example, where it the name of the private key file stored? Although I have the option set, it doesn't appear in my global or session-specific .ini file.
Reply With Quote
  #4  
Old 01-27-2020, 08:34 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 4,153
Hi scottmlew,

That's correct. Some entries specific to SSH are in the SSH2.ini file in the config folder. These are *not* presently configurable via the SessionConfig object (GetOption/SetOption).

I have added this thread to a feature request in our product enhancement database to add a script API for the ability to retrieve and set configuration options that are stored in the SSH2.ini file. Should a future release of SecureCRT include this feature, notification will be posted here.

If you prefer direct email notification, send an email to support@vandyke.com and include Feature Request - Forum Thread #12519 in the subject line or use this form from the support page of our website.
__________________
Thanks,
--Brenda

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

Tags
crt.session.config , setoption


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:47 PM.