Welcome to the VanDyke Software Forums

Join the discussion today!


Go Back   VanDyke Software Forums > Search Forums

Showing results 1 to 15 of 15
Search took 0.00 seconds.
Search: Posts Made By: ogun
Forum: Scripting 07-24-2019, 06:02 AM
Replies: 4
Views: 2,405
Posted By ogun
We do basically what you are asking for at our...

We do basically what you are asking for at our place. I wrote a python script that takes JSON data files and generates sessions accordingly.

It was posted on the forum previously...
Forum: Scripting 05-23-2019, 05:38 AM
Replies: 3
Views: 1,928
Posted By ogun
Another option as well instead of using...

Another option as well instead of using exceptions would be to use os.path.exists to check if the file is there or not. Something like this should work:


# $language = "Python"
# $interface =...
Forum: Scripting 05-07-2019, 02:53 AM
Replies: 6
Views: 3,019
Posted By ogun
The canonical way would probably be something...

The canonical way would probably be something like:

# $language = "python"
# $interface = "1.0"
#
KeyStr = ["<IP_ADDRESS>","<PREFIXLENGTH>","<HOSTNAME>"]
AssignStr =...
Forum: Scripting 04-08-2019, 02:46 AM
Replies: 5
Views: 3,236
Posted By ogun
To explain the double backslash, backslash is...

To explain the double backslash, backslash is used as an escape sequence to insert control characters into text string.

So for example "banana\n" will be banana followed by a newline.
Double...
Forum: Scripting 04-08-2019, 02:39 AM
Replies: 2
Views: 1,583
Posted By ogun
If you are looking for the full file system path,...

If you are looking for the full file system path, I use the following:


def get_config_path():
""" Find path of SecureCRTs configuration """

# This could be done using the config...
Forum: Scripting 09-03-2018, 04:04 AM
Replies: 6
Views: 3,925
Posted By ogun
Hi bgagnon. I've run some extra tests on...

Hi bgagnon.

I've run some extra tests on this with my setup. You are correct, I'm running session.Save() in a loop, this is an automated session distribution setup that I wrote.

The relevant...
Forum: Scripting 08-09-2018, 06:15 AM
Replies: 6
Views: 3,925
Posted By ogun
I also have this exact same problem. I've...

I also have this exact same problem.

I've got a script that imports sessions from a JSON source. Once I added status bar updates to indicate progress it slows down tremendously.

As far as I can...
Forum: Scripting 02-14-2018, 05:36 AM
Replies: 0
Views: 1,830
Posted By ogun
Script for centrally managed sessions

Hello all.

Just figured I would share the script we're using to share a common set of sessions.

There are three parts, a client installation script that configures a securecrt client after...
Forum: Scripting 11-11-2016, 09:11 AM
Replies: 3
Views: 4,842
Posted By ogun
Many thanks, that did the trick. I will try...

Many thanks, that did the trick.

I will try and post my code on github later to share with everybody.
Forum: Scripting 11-08-2016, 06:03 AM
Replies: 3
Views: 4,842
Posted By ogun
Reloading the session list

Hello.

We've written a script that we've used for some years now that fetches a session list from an external host and then creates sessions from there.
The scripts first deletes a folder...
Forum: Scripting 08-20-2015, 05:54 AM
Replies: 5
Views: 3,800
Posted By ogun
I have the same problem. In my case I am...

I have the same problem.

In my case I am creating sessions from a downloaded CSV file that is auto generated from our IPAM. The reason I need the full path of the sessions folder is to do house...
Forum: Scripting 01-06-2015, 03:44 AM
Replies: 6
Views: 4,368
Posted By ogun
Actually, since pexpect is a pure python module...

Actually, since pexpect is a pure python module no extra software is needed.

Download the latest pexpect code from github (https://github.com/pexpect/pexpect/archive/master.zip), unpack it...
Forum: Scripting 11-10-2014, 09:36 AM
Replies: 5
Views: 3,858
Posted By ogun
Here is an excerpt from a script I made to...

Here is an excerpt from a script I made to automate shared sessions from a database.


#$language = "Python"
#$interface = "1.0"

# Top level folder to put all sessions in.
TOPLEVEL = "Shared"...
Forum: Scripting 10-31-2013, 02:22 AM
Replies: 4
Views: 3,758
Posted By ogun
I wrote the following script for our needs. It...

I wrote the following script for our needs.
It reads a csv file with three columns:
hostname, folder, description

It then creates sessions for each in a session folder named shared, each session...
Forum: Scripting 09-23-2013, 06:42 AM
Replies: 5
Views: 8,175
Posted By ogun
If the SecureCRT python module on windows would...

If the SecureCRT python module on windows would support the socket module, you could easily use the normal python networking capabilities.

This would also allow a lot of interesting uses of the...
Showing results 1 to 15 of 15

 
Forum Jump

All times are GMT -6. The time now is 05:27 AM.