Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > General

Reply
 
Thread Tools Display Modes
  #1  
Old 07-06-2018, 02:49 AM
r.sterenborg r.sterenborg is offline
Registered User
 
Join Date: Jul 2018
Posts: 4
Auto-reconnect, tab close on logout

Hi,

A couple of days ago I installed SecureCRT-8.5.0-1689 (yes I know it's beta) and since then there's one thing that keeps annoying me. (I reinstalled Windows and forgot to backup the SecureCRT config so had to start from scratch.)

In previous versions of SecureCRT when I pressed Ctrl-d (exit), the Linux shell logs out and the tab is closed. Now I get a message saying "Press Ctrl+C to cancel or Enter to reconnect immediately", and then it reconnects when I'm not fast enough.

I searched around and found post #10428. I skipped the key/button mapping part because it feels like a workaround that I believe I should not need.

My global.ini says:

D:"Auto Reconnect"=00000000
D:"Close on Disconnect"=00000000

GUI-wise:
- "Auto reconnect" is unchecked in the Global options.
- "Close on Disconnect" is checked in the Session options.

Unless I'm misunderstanding these I'd expect SecureCRT to NOT auto-reconnect and close the tab when logging out of the shell.

How do I get this behavior back?

Thanks..
Reply With Quote
  #2  
Old 07-06-2018, 07:22 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,557
Hi r.sterenborg,

I cannot replicate those results. I still get the expected behavior with a default configuration in SecureCRT.

What specific Windows OS is SecureCRT installed on?

Does this occur to all Linux hosts you connect to?
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #3  
Old 07-06-2018, 09:00 AM
r.sterenborg r.sterenborg is offline
Registered User
 
Join Date: Jul 2018
Posts: 4
Hi Brenda,

I'm on Windows 10 build 1803.

I have this on all configured hosts. (Which is only logical because I configured them all at once by using the top folder.)

For testing I renamed Global.ini and started SecureCRT to generate a new file. I connected to a host, logged out, and got the auto-reconnect message presented.

Global.ini has:

D:"Auto Reconnect"=00000000

I checked the ini file for one of the sessions, and it has:

D:"Auto Reconnect"=00000001

Would that be the reason?
Could it be that the session settings inherited this when I imported the sessions from CSV?
Maybe I checked in the wrong place, but I didn't find a way to correct this in the session setting?
Reply With Quote
  #4  
Old 07-06-2018, 09:03 AM
r.sterenborg r.sterenborg is offline
Registered User
 
Join Date: Jul 2018
Posts: 4
I changed the session ini file to have:

D:"Auto Reconnect"=00000000

And that fixed the problem.

Is there a way to change this in SecureCRT in bulk? Otherwise I'm going to bulk edit the session files.

Thanks..
Reply With Quote
  #5  
Old 07-06-2018, 09:30 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,557
HI r.sterenborg,

Yes, in fact, we don't recommend you edit the INI file when the option *is* exposed in the GUI.


Auto Reconnect is a tri-state option, meaning it is found in both Global Options and Session Options.

When it's a filled box within Session Options (Terminal category) it means the Global Option configuration takes precedence. Otherwise, it can be a cleared box (disabled) or checked (enabled) at the session level.
You can employ the power of editing the Default session to make these changes to all of your existing and future sessions. Here are some links to tips and a video that provide more details about using the Default session to make mass changes to multiple sessions:
https://www.vandyke.com/support/tips/defaultset.html
https://www.vandyke.com/support/tips/multisessions.html
https://www.youtube.com/watch?v=5RbuZn9L48g
Note: In order for a "change" to be applied to all other sessions, the Default session's option/field you're targeting must actually be modified/different from its current value. This means that if the targeted field you want to apply to all other sessions is *already* set to the value you want, you must first change it to something *different* (and apply that "change") and then edit the Default session again to set the option to its *desired* value (and apply that "change").

Since you would be making a change that affects many sessions, the recommendation is to export your config as a backup as a best practice. That can be done from the Tools menu (Export Settings), you would just specify an XML file where the info should be exported.
__________________
Thanks,
--Brenda

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

Last edited by jdev; 07-13-2018 at 10:49 AM.
Reply With Quote
  #6  
Old 07-06-2018, 10:07 AM
bgagnon bgagnon is offline
VanDyke Technical Support
 
Join Date: Oct 2008
Posts: 3,557
Hi r.sterenborg,
Quote:
Would that be the reason?
Could it be that the session settings inherited this when I imported the sessions from CSV?
Maybe I checked in the wrong place, but I didn't find a way to correct this in the session setting?
Sorry, that was new info. When you said you had to recreate your config, I didn't realize you used the ImportArbitrary script.

Correct, per the notes in the script, there are some "desirable options" that are enabled for you. Here's the relevant section in the VBScript version:
Quote:
' Last Modified: 25 Apr, 2018
' - Implement default settings for imported sessions to exemplify
' how this can be done (Auto-reconnect, Anti-idle, Log file
' templated params, Word delims, Scrollback buffer size > 500,
' etc.)
It's line 562 in the VB script:
objConfig.SetOption "Auto Reconnect", True

And Python version of notes:
Quote:
# Last Modified: 16 May, 2018
# - Set session options for all imported sessions to reflect commonly
# desired configurations (color scheme, anti-idle, log file naming,
# larger scrollback buffer, etc.)
And it is line 797 in the Python script:
objConfig.SetOption("Auto Reconnect", True)
__________________
Thanks,
--Brenda

VanDyke Software
Technical Support
support@vandyke.com
(505) 332-5730
Reply With Quote
  #7  
Old 07-06-2018, 02:23 PM
r.sterenborg r.sterenborg is offline
Registered User
 
Join Date: Jul 2018
Posts: 4
Hi Brenda,

Yes, sorry, I should have mentioned I used the ImportArbitrary script.

Well, then I guess that explains everything. I'll be checking things out on Monday to get it corrected.

Thanks for the help!
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 09:34 AM.