Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 22 of 22
Search took 0.00 seconds.
Search: Posts Made By: ngrison
Forum: Scripting 03-13-2020, 10:06 AM
Replies: 3
Views: 1,400
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
Thanks for the suggestion but the script does...

Thanks for the suggestion but the script does various things with logs so it can't be started/stopped.

After various tests, I ended up doing the following:

def GetMultiLinePrompt(tab):...
Forum: Scripting 06-12-2018, 02:48 AM
Replies: 7
Views: 3,381
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
Hi Eric, In fact I upgraded to 8.3.3 earlier...

Hi Eric,

In fact I upgraded to 8.3.3 earlier today before doing the measurements so this post is based on 8.3.3. I will email the script, it's a complicated one. Thank you.
Forum: Scripting 05-17-2018, 10:23 AM
Replies: 3
Views: 2,096
Posted By ngrison
Thanks for explaining the behaviour Eric. I will...

Thanks for explaining the behaviour Eric. I will continue to unlock the sessions every time I do a GetTab() then. Maybe it would be nice to add a feature in the future to allow GetTab() on locked...
Forum: Scripting 05-17-2018, 10:19 AM
Replies: 6
Views: 3,920
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
I would add my vote for this feature request. The...

I would add my vote for this feature request. The way I would really like it, you would be able to define named login/password pairs in the general preferences, and then under each session SSH2...
Forum: Scripting 10-11-2017, 02:56 AM
Replies: 1
Views: 2,151
Posted By ngrison
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
Posted By ngrison
I am looking at implementing this and one problem...

I am looking at implementing this and one problem is to get access to the Config folder on Mac since there is no registry. Do you know if there is a way to get it on OS X? Thank you.
Forum: Scripting 09-04-2017, 07:57 AM
Replies: 4
Views: 4,101
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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
Posted By ngrison
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...
Showing results 1 to 22 of 22

 
Forum Jump

All times are GMT -6. The time now is 05:02 PM.