#1
|
|||
|
|||
Track and Close multiple tabs
I have a script that will open and work with multiple tabs. I tried closing all of them if a close option is used but it crashes secureCRT 75% of the time.
Is there a better way to check if a tab has been used and close it and not touch any other tabs a user may have open? This is the part of my script I think is crashing SecureCRT. Code:
Select Case Action Case "CLOSE" On Error Resume Next If bsmTab.Session.Connected = -1 Then bsmTab.Close If csrTab.Session.Connected = -1 Then csrTab.Close If lteTab.Session.Connected = -1 Then lteTab.Close If cdmaTab.Session.Connected = -1 Then cdmaTab.Close If mwTab.Session.Connected = -1 Then mwTab.Close On Error GoTo 0 Exit Sub Case "CANCEL" If bsmTab.Session.Connected = -1 Then bsmTab.Close Exit Do If I don't use the on error goto next I get an exception every time as only some of the tabs get set most of the time. It is rare that all tabs will be open. The error is SecureCRT experienced a fatal error and must close. Version 6.7.3 (build 292)
__________________
Version 6.7.3 (build 292) |
#2
|
|||
|
|||
Hi bstedh,
Why are you using such an old version? Version 6.7.3 is 7-8 years old. ![]() Your crashing problem may be as simple as upgrading to the next maintenance release: Changes in SecureCRT 6.7.4 (Official) -- February 2, 2012 ---------------------------------------------------------
Quote:
Quote:
Quote:
Rather than a shotgun approach, I expect you would put focus on that one tab (with Activate method) and then close it (as long as it's not the tab the script was started in).
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#3
|
|||
|
|||
I will give the maintenance upgrade a try. However getting everyone else to do it would be an issue. We gets what IT puts on the putters... No more no less... and have little to no input on what they licence.
__________________
Version 6.7.3 (build 292) |
#4
|
|||
|
|||
Have to bounce between multiple devices to check alarms and connections so I wanted to have the tabs open until the user switches to another site. That way it doesn't have to log into the devices multiple times in one session. Basically each session will have a jumpbox connection which stays open and then connect to a region and site with each site having 3 to 6 devices that need to be checked each with their own command set. My script alleviates having to log into multiple management apps as each device type has its on management application. So basically I am consolidating 4 management applications into one script to have all the commands at your fingertips without bouncing around. Especially as we have to connect over a VPN and the applications are very slow on cellular connection. Using cli commands makes this super fast and easy.
__________________
Version 6.7.3 (build 292) |
#5
|
|||
|
|||
Quote:
Basically everything is built around HTML pages to display status and command options for the various devices. Right now most techs have a spreadsheet of commands for all the different devices and just copy and paste for what they need.. =] Teaching old dogs new tricks is an uphill battle.
__________________
Version 6.7.3 (build 292) |
#6
|
|||
|
|||
Hi bstedh,
Since v6.7.x is no longer in active development I can't help with the crashing issue. It sounds like you have been using at least some form of this script for awhile. If it just started crashing, then possibly it's due to changes in the script. Is there an issue outside of the crashing issue you need assistance with?
__________________
Thanks, --Brenda VanDyke Software Technical Support support@vandyke.com (505) 332-5730 |
#7
|
|||
|
|||
No, re-writing existing script to make things quicker and more reliable.... The use of more than 2 to 3 tabs at a time is the only real structural difference. I went this route to store passwords in sessions instead of in plain text. also using the session descriptions to store memory type things like last site connected to and highlighting preferences.
__________________
Version 6.7.3 (build 292) |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Display Modes | Rate This Thread |
|
|