Forum: Scripting
03-13-2020, 10:06 AM
|
Replies: 3
Views: 1,400
A true Python console would be ideal but until...
A true Python console would be ideal but until then one option is to use the command window to display text console-like. Just append to it with:
crt.CommandWindow.Text = crt.CommandWindow.Text +...
|
Forum: Scripting
06-13-2018, 05:08 PM
|
Replies: 7
Views: 3,381
Thanks for the detailed explanation, it really...
Thanks for the detailed explanation, it really helps to deeply understand how the function work. I use my scripts to connect to various devices such as F5 load balancers or ASA firewalls.
Thanks...
|
Forum: Scripting
06-13-2018, 03:48 AM
|
Replies: 7
Views: 3,381
|
Forum: Scripting
06-12-2018, 02:48 AM
|
Replies: 7
Views: 3,381
Hi Eric,
My main issue is that I am working...
Hi Eric,
My main issue is that I am working with some devices that have very long prompts. So long that if the window is standard size it will be displayed over two lines, with usually just a few...
|
Forum: Scripting
06-11-2018, 09:30 AM
|
Replies: 7
Views: 3,381
ReadString() Timeout
Hi,
I am trying to capture the output of a system. Sometimes this output can be long, sometimes short, and there is no final character or character string that I can reliably use to identify the...
|
Forum: Scripting
05-31-2018, 02:17 AM
|
Replies: 2
Views: 2,455
import url lib error
Hi,
I am trying to use the python modules urllib and urllib2 in my scripts. No problem when running on 8.3.3 on OS X, they import fine and can be used, but on Windows 7 64 bits I get the following...
|
Forum: Scripting
05-17-2018, 11:14 AM
|
Replies: 6
Views: 3,920
|
Forum: Scripting
05-17-2018, 10:23 AM
|
Replies: 3
Views: 2,096
|
Forum: Scripting
05-17-2018, 10:19 AM
|
Replies: 6
Views: 3,920
crt.Session.SetStatusText() Performance
Hi all,
I have a script that imports thousands of sessions to SecureCRT. When running, I update crt.Session.SetStatusText() on each sessions with a % information. However, I have noticed that most...
|
Forum: Scripting
05-17-2018, 09:01 AM
|
Replies: 3
Views: 2,096
crt.GetTab(i) and Locked Sessions
Hi,
I have a script that runs commands on all open tabs. To make sure that the user doesn't interfere, I lock all sessions at the beginning of the script and unlock them at the end.
However,...
|
Forum: Scripting
04-14-2018, 05:11 AM
|
Replies: 2
Views: 2,669
Session Unlock documentation error
Hi,
I have noticed that the scripting documentation for 'Session > Unlock' is inaccurate (Version 8.3.2 (x64 build 1584)). For Python, it states:
object.Unlock([,prompt [,password,...
|
Forum: General
10-18-2017, 11:57 AM
|
Replies: 2
Views: 2,637
Beta 1490 Button Bar bugs
Hi,
I am using SecureCRT 8.3 beta 1490 and have noticed a couple of bugs with the button bar:
- if I create a button to run a script, it will work until I quit SecureCRT. When I relaunch, the...
|
Forum: General
10-11-2017, 03:13 AM
|
Replies: 12
Views: 11,489
|
Forum: Scripting
10-11-2017, 02:56 AM
|
Replies: 1
Views: 2,151
8.3.0 Beta: option to specify the script path
Hi,
Release notes for 8.3.0 include:
A global INI-file-only option to specify the script path has also been added
Could you shed more light on what this option is for? I can see it in the...
|
Forum: Scripting
09-04-2017, 03:20 PM
|
Replies: 4
Views: 4,101
|
Forum: Scripting
09-04-2017, 07:57 AM
|
Replies: 4
Views: 4,101
Thanks a lot for the info. I did come up with a...
Thanks a lot for the info. I did come up with a workaround at the weekend, launching a script at logon of any any session that dynamically sets the right parameters. I will try the configuration edit...
|
Forum: General
09-04-2017, 07:37 AM
|
Replies: 4
Views: 4,362
Thanks a lot for the information. It seems to...
Thanks a lot for the information. It seems to work for most fields (login script works ok now, and is correctly shown as ${VDS_CONFIG_PATH}\Scripts\CR\CR Login Script.py in the .ini file) but not for...
|
Forum: General
09-01-2017, 07:00 AM
|
Replies: 4
Views: 4,362
Platform Agnostic Paths
Hi,
I have been syncing my securecrt configuration between Mac and windows without any problem. However I am now using a few more advanced options and am having some issues with file paths.
...
|
Forum: Scripting
08-30-2017, 10:01 AM
|
Replies: 4
Views: 4,101
Change setting for all saved sessions
Hi all,
I have a little problem.
My default session is configured with an automatic login to a certain directory. All my saved sessions were created based on that default. However, when I run a...
|
Forum: Scripting
08-29-2017, 03:26 AM
|
Replies: 5
Views: 3,692
Thanks a lot Eric. I did convert your code to...
Thanks a lot Eric. I did convert your code to python but was still having some problems.
After looking into it, I found out that while "SCRIPT_TAB.Session.LogFileName" seems to impact both the...
|
Forum: Scripting
08-28-2017, 02:21 PM
|
Replies: 5
Views: 3,692
Hi,
Thanks for your response. I do parse the...
Hi,
Thanks for your response. I do parse the output data with a regex search/replace but outputting to file is an option. I have rewritten my function quickly and it is indeed a workaround, thanks...
|
Forum: Scripting
08-26-2017, 05:50 PM
|
Replies: 5
Views: 3,692
ReadString() limitations
Hi,
I have written a few python scripts to automatically collect data from various devices. The script relies on ReadString() to capture the output of a command.
This works fine for commands...
|