VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   Error running MultiSessionSend.py (https://forums.vandyke.com/showthread.php?t=14260)

Ulua 08-13-2020 11:30 PM

Error running MultiSessionSend.py
 
SecureCRT version 7.1.1 x64 build 264

Save both files in my Windows 10: MultiSessionSend.py and SessionList.txt in my C:\Users\xxxxxx drive.

Placed 2 IP addresses in the SessionList.txt
example:
111.222.333.444
011.022.033.044

Error Received:
111.222.333.444 was not found in the session database.

Ulua 08-13-2020 11:41 PM

Run the scripts by doing the following:
 
Scripts > Run > MultiSessionSend.py then click Run

bgagnon 08-14-2020 07:38 AM

Hi Ulua,

To be clear, those need to be existing saved sessions in SecureCRT. In other words, they should be available in the Connect dialog. Are they?

If not, what are you trying to accomplish?

As a note, v7.3.x was the first version with support for Windows 10.

If you want to make ad hoc connections to a list of IP addresses/hostnames, see this example. However, you may be hindered by objects, methods or properties used in the script that were not available in your old version. :(

Ulua 08-14-2020 08:43 AM

To be clear, those need to be existing saved sessions in SecureCRT. In other words, they should be available in the Connect dialog. Are they?
If not, what are you trying to accomplish?
-No they are not saved sessions. What I was trying to do is to login to multiple Nokia nodes, connect and find their router version. I would like to have a text file output this would be great. And logout.

Thank you,
Ulua


All times are GMT -6. The time now is 06:15 PM.