VanDyke Software Forums

VanDyke Software Forums (
-   Scripting (
-   -   SecureCRT /S "<path-to-Session> was not found in the session database (

prashant 01-17-2013 10:33 AM

SecureCRT /S "<path-to-Session> was not found in the session database
Hello there,
I am trying to use SecureCRT from command line. I have checked the forum about issue and found few similar posts but my issue didn't get resolved after implementing the suggested changes.

I am trying to open SecureCRT using command like

CMD Prompt>"c:\Program Files\VanDyke Software\SecureCRT\SecureCR
.exe" /S "C:\Users\<user>\AppData\Roaming\VanDyke\Config\Sessions\<session-name>"

But I get the error that session is not found in session Database. I don't understand why. The session file is not present in a sub-folder under "Sessions" folder. I would greatly appreciate any help.


miked 01-17-2013 12:03 PM

Hello Prashant,

You were very close to the answer. SecureCRT knows the configuration folder path so it only needs the path of the session within the Sessions folder. So, remove the following:
Does this command work better?
"c:\Program Files\VanDyke Software\SecureCRT\SecureCRT.exe" /S "Session Name"

AOS 01-20-2013 10:48 AM

Hi Michael,

I have similar problem, i want to run a script that is existed under path for example (Sessions/Customer/A/ABC/Sao Paolo/fw1 (ssh)

When i tried those, i got the error of session was not found in the session database;

SecureCRT /SCRIPT Sessions/Customer/A/ABC/Sao Paolo/fw1 (ssh)
SecureCRT /SCRIPT "Sessions/Customer/A/ABC/Sao Paolo/fw1 (ssh)"
SecureCRT /SCRIPT "Sessions/Customer/A/ABC/"Sao Paolo"/"fw1 (ssh)""

plz advise,
Thanks for your help

miked 01-20-2013 02:15 PM


Are you wanting to run a script, or a session?

The path you're providing looks more like a session path, so maybe you meant session. Assuming you actually meant session, not script, the name of the session is fw1 (ssh) and is located in Sessions/Customer/A/ABC/Sao Paolo, then the way to tell SecureCRT to start the session is:
SecureCRT.exe /S "/Customer/A/ABC/Sao Paolo/fw1 (ssh)"

Is this the information you were looking for?

All times are GMT -6. The time now is 12:18 PM.