Welcome to the VanDyke Software Forums

Join the discussion today!

Go Back   VanDyke Software Forums > General

Thread Tools Display Modes
Old 06-30-2020, 12:10 PM
SajanP SajanP is offline
Registered User
Join Date: Jun 2013
Posts: 12
Programaticaly Generating Session Files

I'm on Linux and see the Session files are just text files in some Key=Value format.

I have an IPAM with IP and hostname, I was wondering if there are any issues with me simply writing a script to generate the Session files in ~/.vandyke/SecureCRT/Config/Sessions?

I could take anyone of the existing ones as an example. I'm all SSH key based login everywhere. So I'll I'd really need to change is the display name and hostname in each file and spit it out.

Is there anything I'm missing? Or would this work?

This would make it easier for co-workers potentially to quickly get setup also.
Reply With Quote
Old 06-30-2020, 12:15 PM
SajanP SajanP is offline
Registered User
Join Date: Jun 2013
Posts: 12
I suppose I can isolate the automated stuff into a folder, then on a cron just wipe that folder and regenerate from my IPAM. This would allow my SecureCRT to completely stay in sync with changes also.
Reply With Quote
Old 06-30-2020, 01:12 PM
berdmann berdmann is offline
VanDyke Technical Support
Join Date: Aug 2017
Posts: 441
Hi SajanP,

I am not very familiar with IPAM. Are you able to export your IP/Hostname list to a CSV/text file by chance?

If so, we have an example script posted that would likely work well for you to generate the desired sessions.

Please refer to the following link:
Do you think this example script would work for you?

VanDyke Software
Technical Support
(505) 332-5730
Reply With Quote

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 08:18 AM.