VanDyke Software Forums

VanDyke Software Forums (https://forums.vandyke.com/index.php)
-   Scripting (https://forums.vandyke.com/forumdisplay.php?f=14)
-   -   my first script (https://forums.vandyke.com/showthread.php?t=13400)

andtriso 02-12-2019 11:21 AM

my first script
 
Hi to all,
i'm new about scripting on secure CRT, I need to create a script to connect on different hosts and get information

I've a .txt file having inside ip address list like following
1.1.1.1
1.1.1.2
2.1.1.1
2.2.2.2
x.x.x.x
ecc....

Can someone help how to enter into .txt file get ip address then get second ip address and so on?

Thanks

berdmann 02-12-2019 11:52 AM

Hi andtriso,

Have you taken a look at our Script Examples? We have a script that demonstrates how to connect to hosts read in from a "hosts" file and for each host, send a list of commands read in from a "commands" file.

Please review the script example and let me know if you have any additional questions!

https://forums.vandyke.com/showpost....94&postcount=1


All times are GMT -6. The time now is 08:10 PM.